2024-11-07 11:25:05 +01:00
|
|
|
services:
|
|
|
|
wireguard-dashboard:
|
2025-09-17 15:20:01 +02:00
|
|
|
# Since the github organisation we recommend the ghcr.io.
|
|
|
|
# Alternatively we also still push to docker.io under donaldzou/wgdashboard.
|
|
|
|
# Both share the exact same tags. So they should be interchangable.
|
|
|
|
image: ghcr.io/wgdashboard/wgdashboard:latest
|
|
|
|
|
|
|
|
# Make sure to set the restart policy. Because for a VPN its important to come back IF it crashes.
|
2024-11-07 11:25:05 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
container_name: wgdashboard
|
2025-09-17 15:20:01 +02:00
|
|
|
|
|
|
|
# Environment variables can be used to configure certain values at startup. Without having to configure it from the dashboard.
|
|
|
|
# By default its all disabled, but uncomment the following lines to apply these. (uncommenting is removing the # character)
|
|
|
|
# Refer to the documentation on https://wgdashboard.dev/ for more info on what everything means.
|
2025-02-06 10:55:07 +01:00
|
|
|
#environment:
|
2024-06-05 20:27:24 +02:00
|
|
|
#- tz= # <--- Set container timezone, default: Europe/Amsterdam.
|
2024-11-07 11:25:05 +01:00
|
|
|
#- public_ip= # <--- Set public IP to ensure the correct one is chosen, defaulting to the IP give by ifconfig.me.
|
2025-02-06 10:55:07 +01:00
|
|
|
#- wgd_port= # <--- Set the port WGDashboard will use for its web-server.
|
2025-09-17 15:20:01 +02:00
|
|
|
|
|
|
|
# The following section, ports is very important for exposing more than one Wireguard/AmneziaWireguard interfaces.
|
|
|
|
# Once you create a new configuration and assign a port in the dashboard, don't forget to add it to the ports as well.
|
|
|
|
# Quick-tip: most Wireguard VPN tunnels use UDP. WGDashboard uses HTTP, so tcp.
|
2024-11-07 11:25:05 +01:00
|
|
|
ports:
|
2025-02-06 10:55:07 +01:00
|
|
|
- 10086:10086/tcp
|
2024-11-07 11:25:05 +01:00
|
|
|
- 51820:51820/udp
|
2025-09-17 15:20:01 +02:00
|
|
|
|
|
|
|
# Volumes can be configured however you'd like. The default is using docker volumes.
|
|
|
|
# If you want to use local paths, replace the path before the : with your path.
|
2024-11-07 11:25:05 +01:00
|
|
|
volumes:
|
2025-05-01 16:38:19 +02:00
|
|
|
- aconf:/etc/amnezia/amneziawg
|
2024-11-07 11:25:05 +01:00
|
|
|
- conf:/etc/wireguard
|
|
|
|
- data:/data
|
2025-09-17 15:20:01 +02:00
|
|
|
|
|
|
|
# Needed for network administration.
|
2024-11-07 11:25:05 +01:00
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
|
2025-09-17 15:20:01 +02:00
|
|
|
# The following configuration is linked to the above default volumes.
|
2024-11-07 11:25:05 +01:00
|
|
|
volumes:
|
2025-05-01 16:15:55 +02:00
|
|
|
aconf:
|
2024-11-07 11:25:05 +01:00
|
|
|
conf:
|
|
|
|
data:
|