mirror of
https://github.com/ghndrx/docker-compose.git
synced 2026-02-10 06:45:14 +00:00
28 lines
620 B
YAML
28 lines
620 B
YAML
version: '3'
|
|
|
|
services:
|
|
wireguard:
|
|
image: linuxserver/wireguard
|
|
container_name: wireguard
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_MODULE
|
|
environment:
|
|
- PUID=${PUID}
|
|
- PGID=${PGID}
|
|
- TZ=${TZ}
|
|
- SERVERURL=${SERVERURL}
|
|
- SERVERPORT=${SERVERPORT}
|
|
- PEERS=${PEERS}
|
|
- INTERNAL_SUBNET=${INTERNAL_SUBNET}
|
|
- ALLOWEDIPS=${ALLOWEDIPS}
|
|
- DNS=${DNS}
|
|
volumes:
|
|
- ${CONFIG_DIR}:/config
|
|
- /lib/modules:/lib/modules
|
|
ports:
|
|
- ${SERVERPORT}:${SERVERPORT}/udp
|
|
sysctls:
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
restart: unless-stopped
|