From a2d81f3ebdd3f108e37f9ce73aa409bf12aec407 Mon Sep 17 00:00:00 2001 From: pipistrello Date: Mon, 5 Dec 2022 12:03:41 +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 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..6e46ea9 --- /dev/null +++ b/wireguard/docker-compose.yaml @@ -0,0 +1,27 @@ +--- +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=auto #optional + - SERVERPORT=51820 #optional + - PEERS=4 #optional + - PEERDNS=auto #optional + - INTERNAL_SUBNET=10.13.13.0 #optional + - ALLOWEDIPS=0.0.0.0/0 #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