fix WireGuard

This commit is contained in:
peaklabs-dev
2024-10-22 12:56:33 +02:00
parent ee5b511ec7
commit 608de0b145
2 changed files with 19 additions and 6 deletions

View File

@@ -3,24 +3,23 @@
# tags: wireguard,vpn,web,admin
# logo: svgs/wireguard.svg
# port: 8000
services:
wg-easy:
image: ghcr.io/wg-easy/wg-easy
image: ghcr.io/wg-easy/wg-easy:latest
environment:
- SERVICE_FQDN_WIREGUARDEASY_8000
- LANG=en
- WG_HOST=$SERVICE_FQDN_WIREGUARDEASY
- WG_HOST=${SERVICE_FQDN_WIREGUARDEASY}
- LANG=${LANG:-en}
- PORT=8000
- WG_PORT=51820
volumes:
- wg-easy:/etc/wireguard
ports:
- "51820:51820/udp"
- "8000:8000/tcp"
- 51820:51820/udp
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv4.ip_forward=1
restart: unless-stopped