22 lines
582 B
YAML
22 lines
582 B
YAML
services:
|
|
wireguard:
|
|
image: lscr.io/linuxserver/wireguard:latest
|
|
container_name: wireguard
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_MODULE
|
|
network_mode: host
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Europe/Berlin
|
|
- SERVERURL=178.105.95.195 # Hier deine echte Hetzner-IP eintragen
|
|
- SERVERPORT=51820
|
|
- PEERS=nasi,glados # Das erstellt automatisch die Config für das NAS
|
|
- PEERDNS=auto
|
|
- INTERNAL_NM=10.13.13.0/24
|
|
volumes:
|
|
- ./config:/config
|
|
- /lib/modules:/lib/modules
|
|
restart: unless-stopped
|