2023-02-15 21:45:31 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
wg-easy:
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- SYS_MODULE
|
|
|
|
container_name: wg-easy
|
|
|
|
environment:
|
|
|
|
- WG_HOST=vpn.example.com # your hostname or ip address
|
|
|
|
- PASSWORD=MyStrongPasswordForWebUi # change this
|
|
|
|
- WG_DEFAULT_DNS=1.1.1.1,8.8.8.8 # add your local dns like pihole
|
2024-01-17 09:19:43 +00:00
|
|
|
- WG_ALLOWED_IPS=0.0.0.0/0, ::/0
|
|
|
|
- WG_DEVICE=eth0
|
2023-02-15 21:45:31 +00:00
|
|
|
hostname: wireguard-easy
|
2024-08-13 10:44:52 +00:00
|
|
|
image: ghcr.io/wg-easy/wg-easy:13
|
2023-02-15 21:45:31 +00:00
|
|
|
ports:
|
|
|
|
- 51820:51820/udp #VPN
|
|
|
|
- 51821:51821/tcp #WEBGUI
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wg-easy:/etc/wireguard
|
2023-02-26 03:02:26 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
# labels:
|
|
|
|
# - traefik.enable=true
|
|
|
|
# - traefik.http.routers.wireguard.rule=Host(`vpn.example.com`)
|
|
|
|
# - traefik.http.services.wireguard.loadbalancer.server.port=51821
|
|
|
|
# - traefik.docker.network=proxy
|
|
|
|
# # Part for local lan services only
|
|
|
|
# - traefik.http.routers.wireguard.middlewares=local-ipwhitelist@file
|
2023-02-26 03:02:26 +00:00
|
|
|
|
|
|
|
#networks:
|
|
|
|
# proxy:
|
|
|
|
# external: true
|