container-server/services/wireguard/docker-compose.yml
Carsten Sprung 7f5755b537 fix: Remove hostnames from docker-compose configs (#76)
- [x] This fixes services being not reachable from inside their own container
- [x] Container name must be different to URL hostname

Reviewed-on: #76
2024-09-30 17:27:30 +02:00

29 lines
630 B
YAML

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