mirror of
https://github.com/mr-vercetti/homeserver.git
synced 2025-01-18 16:25:35 +01:00
31 lines
709 B
YAML
31 lines
709 B
YAML
services:
|
|
wireguard:
|
|
image: lscr.io/linuxserver/wireguard
|
|
container_name: wireguard
|
|
networks:
|
|
- wireguard
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_MODULE
|
|
environment:
|
|
- PUID=${PUID}
|
|
- PGID=${PGID}
|
|
- TZ=${TIMEZONE}
|
|
- SERVERURL=${WG_URL}
|
|
- SERVERPORT=51820
|
|
- PEERS=${WG_PEERS}
|
|
- PEERDNS=auto
|
|
- ALLOWEDIPS=${WG_ALLOWEDIPS}
|
|
volumes:
|
|
- ${APPS_DIR}/wireguard:/config
|
|
- /lib/modules:/lib/modules
|
|
ports:
|
|
- 51820:51820/udp
|
|
sysctls:
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
wireguard:
|
|
name: wireguard
|