-
-
Notifications
You must be signed in to change notification settings - Fork 286
/
Copy pathdocker-compose.yml
37 lines (35 loc) · 1.11 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
services:
wg-easy:
image: ghcr.io/wg-easy/wg-easy:13
container_name: wg-easy
hostname: wireguard-easy
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE
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
- WG_ALLOWED_IPS=0.0.0.0/0, ::/0
- WG_DEVICE=eth0
ports:
- 51820:51820/udp # wireguard vpn
- 51821:51821/tcp # admin web ui
expose:
- 51820/udp # wireguard vpn
- 51821/tcp # admin web ui
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wg-easy:/etc/wireguard
#networks:
# - proxy
#labels:
# - traefik.enable=true
# - traefik.docker.network=proxy
# - traefik.http.routers.wireguard.rule=Host(`vpn.example.com`)
# - traefik.http.services.wireguard.loadbalancer.server.port=51821
# # Part for local lan services only
# - traefik.http.routers.wireguard.middlewares=local-ipwhitelist@file
#networks:
# proxy:
# external: true