container-server/services/wireguard/docker-compose.yml

30 lines
630 B
YAML
Raw Permalink Normal View History

2023-12-16 20:39:14 +01:00
version: '3.7'
# https://docs.linuxserver.io/images/docker-wireguard
# https://github.com/linuxserver/docker-wireguard/
networks:
wireguard:
services:
wireguard:
image: lscr.io/linuxserver/wireguard:latest
container_name: wireguard
restart: "${RESTART:-no}"
domainname: ${BASE_DOMAIN}
cap_add:
- NET_ADMIN
environment:
- USER_UID=1000
- USER_GID=1000
- TZ=${TIMEZONE}
- LOG_CONFS=false
- PEERS=${WIREGUARD_PEERS}
ports:
- '${WIREGUARD_VPN_PORT}:51820/udp'
volumes:
- ${BASE_DIR:-/srv}/wireguard/config:/config
networks:
- wireguard