Compare commits

..
30 Commits
Author SHA1 Message Date
dependabot[bot] 7c5090e13d build(deps): bump python in /docker
Bumps python from 3.14-alpine3.23 to 3.15-alpine3.23.

---
updated-dependencies:
- dependency-name: python
  dependency-version: 3.15-alpine3.23
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:50:21 +00:00
dependabot[bot] 22cbe06ccf build(deps-dev): bump vite from 8.0.16 to 8.3.5 in /src/static/client
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 8.0.16 to 8.3.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v8.3.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.1.4
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:24:30 +00:00
daanselen 742eea4c3b Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/src/static/app/development/vueuse/core-14.3.0' into development 2026-10-25 23:22:29 +01:00
daanselen 4dd00038c2 Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/src/static/app/development/vue-router-5.1.0' into development 2026-10-25 23:22:21 +01:00
dependabot[bot] 4eae2470e4 build(deps): bump @vueuse/core from 14.3.0 to 15.0.0 in /src/static/app
Bumps [@vueuse/core](https://github.com/vueuse/vueuse/tree/HEAD/packages/core) from 14.3.0 to 15.0.0.
- [Release notes](https://github.com/vueuse/vueuse/releases)
- [Commits](https://github.com/vueuse/vueuse/commits/v15.0.0/packages/core)

---
updated-dependencies:
- dependency-name: "@vueuse/core"
  dependency-version: 14.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:20:19 +00:00
dependabot[bot] 75bee2e8b5 build(deps): bump vue-router from 5.0.6 to 5.4.0 in /src/static/app
Bumps [vue-router](https://github.com/vuejs/router) from 5.0.6 to 5.4.0.
- [Release notes](https://github.com/vuejs/router/releases)
- [Commits](https://github.com/vuejs/router/compare/v5.0.6...v5.4.0)

---
updated-dependencies:
- dependency-name: vue-router
  dependency-version: 5.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:18:41 +00:00
dependabot[bot] 2532e03340 build(deps): bump uuid from 14.0.0 to 14.0.3 in /src/static/client
Bumps [uuid](https://github.com/uuidjs/uuid) from 14.0.0 to 14.0.3.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v14.0.0...v14.0.3)

---
updated-dependencies:
- dependency-name: uuid
  dependency-version: 14.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:17:50 +00:00
daanselen b652c0b0e5 Merge remote-tracking branch 'origin/dependabot/pip/src/development/sqlalchemy-2.0.52' into development 2026-10-25 23:15:10 +01:00
daanselen 2f3ae0542b Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/src/static/client/development/vitejs/plugin-vue-6.0.7' into development 2026-10-25 23:13:48 +01:00
daanselen f9d232eb8f Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/src/static/client/development/vite-plugin-vue-devtools-8.1.5' into development 2026-10-25 23:13:42 +01:00
daanselen a480cc489d Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/src/static/client/development/vue-3.5.39' into development 2026-10-25 23:13:34 +01:00
dependabot[bot] 2662782fba build(deps): bump sqlalchemy from 2.0.51 to 2.1.6 in /src
Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 2.0.51 to 2.1.6.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES.rst)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

---
updated-dependencies:
- dependency-name: sqlalchemy
  dependency-version: 2.0.52
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:13:27 +00:00
daanselen d01cbc67cf Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/src/static/app/development/vitejs/plugin-vue-6.0.7' into development 2026-10-25 23:12:55 +01:00
daanselen c549ced8a0 Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/src/static/app/development/is-cidr-7.0.0' into development 2026-10-25 23:12:49 +01:00
daanselen b0623d15de Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/src/static/app/development/fuse.js-7.5.0' into development 2026-10-25 23:12:45 +01:00
daanselen 428c95abc6 Merge remote-tracking branch 'origin/dependabot/pip/src/development/tzlocal-5.4.4' into development 2026-10-25 23:10:51 +01:00
daanselen c3afe13f13 Merge remote-tracking branch 'origin/dependabot/pip/src/development/pydantic-2.13.5' into development 2026-10-25 23:09:27 +01:00
daanselen 27d7aa4f86 Merge remote-tracking branch 'origin/dependabot/pip/src/development/psycopg-3.3.5' into development 2026-10-25 23:09:22 +01:00
daanselen d165b3ac0a Merge remote-tracking branch 'origin/dependabot/pip/src/development/gunicorn-26.2.0' into development 2026-10-25 23:09:17 +01:00
dependabot[bot] 4970210060 build(deps-dev): bump @vitejs/plugin-vue in /src/static/client
Bumps [@vitejs/plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/HEAD/packages/plugin-vue) from 6.0.6 to 6.0.10.
- [Release notes](https://github.com/vitejs/vite-plugin-vue/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-vue/blob/main/packages/plugin-vue/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-vue/commits/[email protected]/packages/plugin-vue)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-vue"
  dependency-version: 6.0.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:03:14 +00:00
dependabot[bot] ab4db229c0 build(deps-dev): bump @vitejs/plugin-vue in /src/static/app
Bumps [@vitejs/plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/HEAD/packages/plugin-vue) from 6.0.6 to 6.0.10.
- [Release notes](https://github.com/vitejs/vite-plugin-vue/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-vue/blob/main/packages/plugin-vue/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-vue/commits/[email protected]/packages/plugin-vue)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-vue"
  dependency-version: 6.0.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:03:14 +00:00
dependabot[bot] 9e3a4fb815 build(deps): bump fuse.js from 7.3.0 to 7.5.0 in /src/static/app
Bumps [fuse.js](https://github.com/krisk/Fuse) from 7.3.0 to 7.5.0.
- [Release notes](https://github.com/krisk/Fuse/releases)
- [Changelog](https://github.com/krisk/Fuse/blob/main/CHANGELOG.md)
- [Commits](https://github.com/krisk/Fuse/compare/v7.3.0...v7.5.0)

---
updated-dependencies:
- dependency-name: fuse.js
  dependency-version: 7.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:02:43 +00:00
dependabot[bot] 81943b84b6 build(deps): bump gunicorn from 26.0.0 to 26.2.0 in /src
Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 26.0.0 to 26.2.0.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/26.0.0...26.2.0)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-version: 26.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:02:40 +00:00
dependabot[bot] 0083b78fbe build(deps): bump tzlocal from 5.3.1 to 5.4.5 in /src
Bumps [tzlocal](https://github.com/regebro/tzlocal) from 5.3.1 to 5.4.5.
- [Changelog](https://github.com/regebro/tzlocal/blob/master/CHANGES.txt)
- [Commits](https://github.com/regebro/tzlocal/compare/5.3.1...5.4.5)

---
updated-dependencies:
- dependency-name: tzlocal
  dependency-version: 5.4.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:02:37 +00:00
dependabot[bot] ed82978a89 build(deps): bump is-cidr from 6.0.3 to 7.0.3 in /src/static/app
Bumps [is-cidr](https://github.com/silverwind/is-cidr) from 6.0.3 to 7.0.3.
- [Release notes](https://github.com/silverwind/is-cidr/releases)
- [Commits](https://github.com/silverwind/is-cidr/compare/6.0.3...7.0.3)

---
updated-dependencies:
- dependency-name: is-cidr
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:02:30 +00:00
dependabot[bot] 0d81bccf99 build(deps-dev): bump vite-plugin-vue-devtools in /src/static/client
Bumps [vite-plugin-vue-devtools](https://github.com/vuejs/devtools/tree/HEAD/packages/vite) from 8.1.2 to 8.2.1.
- [Release notes](https://github.com/vuejs/devtools/releases)
- [Commits](https://github.com/vuejs/devtools/commits/v8.2.1/packages/vite)

---
updated-dependencies:
- dependency-name: vite-plugin-vue-devtools
  dependency-version: 8.1.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:02:25 +00:00
dependabot[bot] 2945e2f75d build(deps): bump vue from 3.5.35 to 3.5.44 in /src/static/client
Bumps [vue](https://github.com/vuejs/core) from 3.5.35 to 3.5.44.
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vuejs/core/compare/v3.5.35...v3.5.44)

---
updated-dependencies:
- dependency-name: vue
  dependency-version: 3.5.39
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:02:15 +00:00
dependabot[bot] a8e972b0d8 build(deps): bump pydantic from 2.13.4 to 2.14.1 in /src
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.13.4 to 2.14.1.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v2.13.4...v2.14.1)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-version: 2.13.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:01:51 +00:00
dependabot[bot] 8a5bf9f061 build(deps): bump golang in /docker
Bumps golang from 1.26-alpine3.23 to 1.27-alpine3.23.

---
updated-dependencies:
- dependency-name: golang
  dependency-version: 1.27-alpine3.23
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:01:40 +00:00
dependabot[bot] bda1f71f24 build(deps): bump psycopg from 3.3.4 to 3.3.6 in /src
Bumps [psycopg](https://github.com/psycopg/psycopg) from 3.3.4 to 3.3.6.
- [Changelog](https://github.com/psycopg/psycopg/blob/master/docs/news.rst)
- [Commits](https://github.com/psycopg/psycopg/compare/3.3.4...3.3.6)

---
updated-dependencies:
- dependency-name: psycopg
  dependency-version: 3.3.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-10-25 22:01:11 +00:00
3 changed files with 84 additions and 46 deletions
+3 -8
View File
@@ -1,14 +1,9 @@
.git
.github
*.md
tests/
docs/
*.md
**/node_modules
**/venv
**/__pycache__
**/*.pyc
src/db
src/wg-dashboard.ini
src/static/app
src/static/client
+76
View File
@@ -0,0 +1,76 @@
FROM golang:1.24 AS awg-go
RUN git clone https://github.com/WGDashboard/amneziawg-go /awg
WORKDIR /awg
RUN go mod download && \
go mod verify && \
go build -ldflags '-linkmode external -extldflags "-fno-PIC -static"' -v -o /usr/bin
FROM alpine:latest AS awg-tools
RUN apk update && apk add --no-cache \
make git build-base linux-headers \
&& git clone https://github.com/WGDashboard/amneziawg-tools \
&& cd amneziawg-tools/src \
&& make \
&& chmod +x wg*
FROM alpine:latest
LABEL maintainer="[email protected]"
RUN apk update && apk add --no-cache \
iproute2 iptables bash curl wget unzip procps sudo \
tzdata wireguard-tools python3 py3-psutil py3-bcrypt openresolv
COPY --from=awg-go /usr/bin/amneziawg-go /usr/bin/amneziawg-go
COPY --from=awg-tools /amneziawg-tools/src/wg /usr/bin/awg
COPY --from=awg-tools /amneziawg-tools/src/wg-quick/linux.bash /usr/bin/awg-quick
# Declaring environment variables, change Peernet to an address you like, standard is a 24 bit subnet.
ARG wg_net="10.0.0.1" \
wg_port="51820"
# Following ENV variables are changable on container runtime because /entrypoint.sh handles that. See compose.yaml for more info.
ENV TZ="Europe/Amsterdam" \
global_dns="9.9.9.9" \
wgd_port="10086" \
public_ip=""
# Using WGDASH -- like wg_net functionally as a ARG command. But it is needed in entrypoint.sh so it needs to be exported as environment variable.
ENV WGDASH=/opt/wgdashboard
# Doing WireGuard Dashboard installation measures. Modify the git clone command to get the preferred version, with a specific branch for example.
RUN mkdir /data \
&& mkdir /configs \
&& mkdir -p ${WGDASH}/src \
&& mkdir -p /etc/amnezia/amneziawg
COPY ./src ${WGDASH}/src
# Generate basic WireGuard interface. Echoing the WireGuard interface config for readability, adjust if you want it for efficiency.
# Also setting the pipefail option, verbose: https://github.com/hadolint/hadolint/wiki/DL4006.
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN out_adapt=$(ip -o -4 route show to default | awk '{print $NF}') \
&& echo -e "[Interface]\n\
Address = ${wg_net}/24\n\
PrivateKey =\n\
PostUp = iptables -t nat -I POSTROUTING 1 -s ${wg_net}/24 -o ${out_adapt} -j MASQUERADE\n\
PostUp = iptables -I FORWARD -i wg0 -o wg0 -j DROP\n\
PreDown = iptables -t nat -D POSTROUTING -s ${wg_net}/24 -o ${out_adapt} -j MASQUERADE\n\
PreDown = iptables -D FORWARD -i wg0 -o wg0 -j DROP\n\
ListenPort = ${wg_port}\n\
SaveConfig = true\n\
DNS = ${global_dns}" > /configs/wg0.conf.template \
&& chmod 600 /configs/wg0.conf.template
# Defining a way for Docker to check the health of the container. In this case: checking the gunicorn process.
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD sh -c 'pgrep gunicorn > /dev/null && pgrep tail > /dev/null' || exit 1
# Copy the basic entrypoint.sh script.
COPY ./docker/entrypoint.sh /entrypoint.sh
# Exposing the default WireGuard Dashboard port for web access.
EXPOSE 10086
WORKDIR $WGDASH
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
+5 -38
View File
@@ -4,7 +4,7 @@
#
# Pull the current golang-alpine image.
FROM golang:1.26-alpine3.24 AS awg-go
FROM golang:1.27-alpine3.23 AS awg-go
# Install build-dependencies.
RUN apk add --no-cache \
@@ -55,7 +55,7 @@ RUN make && chmod +x wg*
#
# Use the python-alpine image for building pip dependencies
FROM python:3.15-alpine3.24 AS pip-builder
FROM python:3.15-alpine3.23 AS pip-builder
ARG TARGETPLATFORM
@@ -85,32 +85,13 @@ RUN . /opt/wgdashboard/src/venv/bin/activate && \
pip3 install --upgrade pip && \
pip3 install -r /opt/wgdashboard/src/requirements.txt
#
# WGDashboard FRONTEND BUILDING
# Base: Node Alpine
#
FROM node:26-alpine3.24 AS frontend-builder
WORKDIR /workspace
# Copy frontend source, package files and lockfiles
COPY ./src/static/ ./
# Build the admin frontend
WORKDIR /workspace/app
RUN npm ci && npm run build
# Build the client frontend
WORKDIR /workspace/client
RUN npm ci && npm run build
#
# WGDashboard RUNNING STAGE
# Base: Alpine
#
# Running with the python-alpine image.
FROM python:3.15-alpine3.24 AS final
FROM python:3.15-alpine3.23 AS final
LABEL maintainer="[email protected]"
# Install only the runtime dependencies
@@ -140,25 +121,11 @@ ENV TZ="Europe/Amsterdam" \
RUN mkdir /data /configs -p ${WGDASH}/src /etc/amnezia/amneziawg \
&& echo "name_servers=${global_dns}" >> /etc/resolvconf.conf
# Copy application source
# Copy the venv and source files from local compiled locations or repos
COPY ./src ${WGDASH}/src
# Copy Python dependencies
COPY --from=pip-builder \
/opt/wgdashboard/src/venv \
${WGDASH}/src/venv
RUN rm -rf ${WGDASH}/src/static/dist \
${WGDASH}/src/static/app \
${WGDASH}/src/static/client
COPY --from=frontend-builder \
/workspace/dist/ \
${WGDASH}/src/static/dist/
COPY --from=pip-builder /opt/wgdashboard/src/venv /opt/wgdashboard/src/venv
COPY ./docker/wg0.conf.template /tmp/wg0.conf.template
COPY ./docker/wg-dashboard-oidc-providers.json.template /tmp/wg-dashboard-oidc-providers.json.template
# Copy in the runtime script, essential.
COPY ./docker/entrypoint.sh /entrypoint.sh