From 847da7f078ee9a60ce7d9ee68433600368f69dab Mon Sep 17 00:00:00 2001 From: Marc Blatter Date: Tue, 21 Oct 2025 08:38:33 +0000 Subject: [PATCH] compose_support.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Initiale Version des WireGuard VPN Docker Container für den Fernzugriff --- compose_support.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 compose_support.yaml diff --git a/compose_support.yaml b/compose_support.yaml new file mode 100644 index 0000000..0961b8f --- /dev/null +++ b/compose_support.yaml @@ -0,0 +1,28 @@ +version: "3.9" + +services: + wireguard: + image: linuxserver/wireguard + container_name: wireguard + cap_add: + - NET_ADMIN + - SYS_MODULE + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Zurich + - SERVERURL=busybox.ch # public IP + - SERVERPORT=51820 + - PEERS=1 # Anzahl initialer Clients + - PEERDNS=auto + - INTERNAL_SUBNET=10.50.0.0/24 # Subnetz für VPN-Clients + - ALLOWEDIPS=192.168.100.0/24 # Zielnetz, das Clients über VPN erreichen sollen + - PERSISTENTKEEPALIVE_PEERS=all # hält Tunnel offen (optional) + volumes: + - /opt/wireguard/config:/config + - /lib/modules:/lib/modules + ports: + - 51820:51820/udp + sysctls: + net.ipv4.ip_forward: 1 # aktiviert IP-Forwarding im Container + restart: unless-stopped \ No newline at end of file