22 lines
426 B
YAML
22 lines
426 B
YAML
services:
|
|
wireguard:
|
|
image: lscr.io/linuxserver/wireguard:1.0.20260223
|
|
container_name: wireguard
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_MODULE
|
|
volumes:
|
|
- ./data/wireguard:/config
|
|
ports:
|
|
- 51820:51820/udp
|
|
sysctls:
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
- net.ipv4.ip_forward=1
|
|
|
|
networks:
|
|
proxy:
|
|
name: proxy
|
|
external: true
|