40 lines
996 B
YAML
40 lines
996 B
YAML
version: "3"
|
|
services:
|
|
wg-easy:
|
|
image: weejewel/wg-easy
|
|
container_name: wireguard_wg-easy
|
|
restart: "no"
|
|
logging:
|
|
driver: loki
|
|
options:
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
loki-batch-size: "50"
|
|
loki-retries: "1"
|
|
loki-timeout: "2s"
|
|
keep-file: "true"
|
|
env_file:
|
|
- ./project.env
|
|
#- ../../../homelab.env
|
|
#- ../../host.env
|
|
|
|
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=lan-only@file
|
|
|
|
networks:
|
|
web:
|
|
external: true |