1
0

Add wireguard container
All checks were successful
Deploy / Deploy (push) Successful in 18s

This commit is contained in:
2026-04-01 22:34:12 +01:00
parent 557741e682
commit 2299598183
3 changed files with 100 additions and 0 deletions

51
compose.yml Normal file
View File

@@ -0,0 +1,51 @@
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
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
networks:
wireguard_network:
driver: bridge
volumes:
config: