homelab/fighter/config/wireguard/docker-compose.yml
Joey Hafner 1109cfd9e6
All checks were successful
Deploy to Fighter / Deploy (push) Successful in 17s
Deploy to Druid / Deploy (push) Successful in 18s
Deploy to Fighter / Notify (push) Successful in 2s
Deploy to Druid / Notify (push) Successful in 9s
Update all compose files to 3.9 spec
2024-02-15 02:09:59 -08:00

32 lines
829 B
YAML

version: '3.9'
services:
wg-easy:
image: weejewel/wg-easy
container_name: wireguard_wg-easy
restart: "no"
env_file:
- path: ./wireguard.env
required: true
- path: ./wireguard_secrets.env
required: false
ports:
- 53820:51820/udp
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.net`)
- traefik.http.routers.wg-easy.tls.certresolver=lets-encrypt
- traefik.http.services.wg-easy.loadbalancer.server.port=51821
- traefik.http.routers.wg-easy.middlewares=traefik-forward-auth@file
networks:
web:
external: true