2022-02-08 17:00:27 -08:00
|
|
|
version: "3"
|
|
|
|
services:
|
2022-04-28 12:24:05 -07:00
|
|
|
wg-easy:
|
|
|
|
image: weejewel/wg-easy
|
|
|
|
container_name: wireguard_wg-easy
|
2022-07-13 10:47:27 -07:00
|
|
|
restart: "no"
|
2022-07-13 13:00:28 -07:00
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
2022-07-13 13:07:22 -07:00
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
2022-07-13 13:06:22 -07:00
|
|
|
loki-batch-size: 50
|
2022-07-13 13:00:28 -07:00
|
|
|
loki-retries: 1
|
2022-07-13 13:07:22 -07:00
|
|
|
loki-timeout: 2s
|
2022-07-13 13:08:02 -07:00
|
|
|
loki-labels: "com.docker.compose.project,com.docker.compose.service"
|
2022-04-28 12:43:51 -07:00
|
|
|
env_file:
|
2022-05-11 01:16:15 -07:00
|
|
|
- .env
|
2022-04-28 12:24:05 -07:00
|
|
|
ports:
|
2022-04-28 12:38:57 -07:00
|
|
|
- 53820:51820/udp
|
2022-04-28 12:26:37 -07:00
|
|
|
networks:
|
|
|
|
- web
|
2022-04-28 12:24:05 -07:00
|
|
|
volumes:
|
2022-04-28 12:54:24 -07:00
|
|
|
- ${DOCKER_DATA}/wg-easy:/etc/wireguard
|
2022-04-28 12:24:05 -07:00
|
|
|
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
|
2022-04-28 12:26:37 -07:00
|
|
|
- traefik.http.services.wg-easy.loadbalancer.server.port=51821
|
2022-07-08 22:57:08 -07:00
|
|
|
- traefik.http.routers.wg-easy.middlewares=authentik@file
|
2022-04-28 12:26:37 -07:00
|
|
|
|
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|