25 lines
618 B
Plaintext
Raw Normal View History

2021-09-21 15:54:46 -06:00
image: ghcr.io/linuxserver/wireguard
2021-09-21 14:01:51 -06:00
volumes:
2023-04-23 18:14:06 -06:00
- /etc/lixonet/${netname}/.config/wireguard:/config
2021-09-21 14:01:51 -06:00
- /lib/modules:/lib/modules
2021-09-21 18:29:35 -06:00
- /usr/src:/usr/src
2021-09-21 14:01:51 -06:00
environment:
- RUNMODE=server
- NETNAME=${netname}
- TZ=${TZ:-GMT}
- SERVERPORT=${wg_port:-51820}
- ALLOWEDIPS=${network_address}/${global_prefix:-16}
2021-09-21 19:40:32 -06:00
- PUID=431
- PGID=431
2021-09-21 14:01:51 -06:00
cap_add:
- NET_ADMIN
- SYS_MODULE
restart: always
depends_on:
- tinc
2021-09-21 19:55:17 -06:00
network_mode: 'service:tinc'
2021-09-21 14:01:51 -06:00
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv4.conf.all.rp_filter=2
2023-04-12 20:07:45 -06:00