2022-08-03 00:43:17 -07:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
wg-easy:
|
|
|
|
image: weejewel/wg-easy
|
|
|
|
container_name: wireguard_wg-easy
|
|
|
|
restart: "no"
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
ports:
|
2022-08-03 00:45:28 -07:00
|
|
|
- 53820:51820/udp
|
2022-08-03 00:43:17 -07:00
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
volumes:
|
|
|
|
- ${DOCKER_DATA}/wg-easy:/etc/wireguard
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- SYS_MODULE
|
|
|
|
sysctls:
|
|
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
|
|
- net.ipv4.ip_forward=1
|
|
|
|
labels:
|
|
|
|
- traefik.http.routers.wg-easy.rule=Host(`vpn.jafner.tools`)
|
|
|
|
- traefik.http.routers.wg-easy.tls.certresolver=lets-encrypt
|
2022-11-14 14:18:44 -08:00
|
|
|
- traefik.http.routers.wg-easy.tls.options=tls12@file
|
|
|
|
- traefik.http.routers.wg-easy.middlewares=securityheaders@file
|
2022-08-03 00:43:17 -07:00
|
|
|
- traefik.http.services.wg-easy.loadbalancer.server.port=51821
|
|
|
|
|
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|