1
0
Files
wireguard/compose.yml
Kappeh 5ffdd52376
All checks were successful
Deploy / Deploy (push) Successful in 17s
Enable diun
2026-04-02 00:12:57 +01:00

60 lines
1.3 KiB
YAML

services:
init:
image: busybox:1.37.0
user: root:root
command: /init.sh
restart: no
network_mode: none
volumes:
- ./init.sh:/init.sh:ro
# Used for resolving user and group names within the init script
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
# Mount all named volumes so they can be initialised
- config:/config:rw
labels:
diun.enable: "true"
diun.watch_repo: "true"
diun.include_tags: "latest"
wireguard:
image: linuxserver/wireguard:1.0.20250521
restart: unless-stopped
depends_on:
init:
condition: service_completed_successfully
restart: true
cap_add:
- NET_ADMIN
# - SYS_MODULE
networks:
- wireguard_network
ports:
- 51820:51820/udp
environment:
PUID: "2024"
PGID: "2024"
TZ: "Etc/UTC"
SERVERURL: "wireguard.kappeh.org"
SERVERPORT: "51820"
PEERS: "tetra"
PEERDNS: "auto"
# INTERNAL_SUBNET: "10.0.0.0"
# ALLOWEDIPS: "0.0.0.0/0"
PERSISTENTKEEPALIVE_PEERS: "all"
LOG_CONFS: "true"
volumes:
- config:/config
# - /lib/modules:/lib/modules
labels:
diun.enable: "true"
diun.watch_repo: "true"
diun.include_tags: "latest"
networks:
wireguard_network:
driver: bridge
volumes:
config: