diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..23e6513 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,22 @@ +version: "2.1" +services: + wireguard: + image: linuxserver/wireguard + container_name: wireguard + cap_add: + - NET_ADMIN + - SYS_MODULE + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Rome + - SERVERPORT=51820 # optional + - PEERS=5 # optional, this will create 5 configurations + volumes: + - /home/cf/wireguard/config:/config + - /lib/modules:/lib/modules + ports: + - 51820:51820/udp + sysctls: + - net.ipv4.conf.all.src_valid_mark=1 + restart: always \ No newline at end of file