From 105e2e6a049deadba41a54072f9ed1a903da0073 Mon Sep 17 00:00:00 2001 From: pipistrello Date: Wed, 14 Dec 2022 14:36:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB(=D0=B0)=20?= =?UTF-8?q?'wireguard/docker-compose.yaml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wireguard/docker-compose.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 wireguard/docker-compose.yaml diff --git a/wireguard/docker-compose.yaml b/wireguard/docker-compose.yaml new file mode 100644 index 0000000..70938d3 --- /dev/null +++ b/wireguard/docker-compose.yaml @@ -0,0 +1,28 @@ + +--- +version: "2.1" +services: + wireguard: + image: lscr.io/linuxserver/wireguard + container_name: wireguard + cap_add: + - NET_ADMIN + - SYS_MODULE + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/London + - SERVERURL=vpn.technohim.com #optional + - SERVERPORT=51820 #optional + - PEERS=4 #optional + - PEERDNS=auto #optional + #- INTERNAL_SUBNET=172.21.0.0/16 #optional + #- ALLOWEDIPS=172.21.0.0/16 #optional + volumes: + - /mnt/containers/wireguard/container-data:/config + - /lib/modules:/lib/modules + ports: + - 51820:51820/udp + sysctls: + - net.ipv4.conf.all.src_valid_mark=1 + restart: unless-stopped \ No newline at end of file