2023-09-26 09:53:42 +02:00
|
|
|
services:
|
|
|
|
wireguard:
|
|
|
|
container_name: wireguard
|
|
|
|
image: lscr.io/linuxserver/wireguard:latest
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- $DATA/wireguard:/config
|
|
|
|
- /lib/modules:/lib/modules
|
|
|
|
ports:
|
|
|
|
- 51822:51820/udp
|
|
|
|
environment:
|
|
|
|
- TZ=Europe/Paris
|
|
|
|
- SERVERURL=vpn.bhasher.com
|
|
|
|
- SERVERPORT=51822
|
|
|
|
- PEERS=10
|
|
|
|
- PEERDNS=auto
|
2023-10-11 16:46:38 +02:00
|
|
|
- INTERNAL_SUBNET=10.15.14.0
|
2023-09-26 09:53:42 +02:00
|
|
|
- ALLOWEDIPS=0.0.0.0/0
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- SYS_MODULE
|
|
|
|
sysctls:
|
|
|
|
- net.ipv4.conf.all.src_valid_mark=1
|