2022-06-18 14:12:12 +02:00
|
|
|
---
|
|
|
|
version: '3.9'
|
2022-10-07 09:56:50 +02:00
|
|
|
|
2022-06-18 14:12:12 +02:00
|
|
|
services:
|
|
|
|
wireguard:
|
2022-10-07 09:56:50 +02:00
|
|
|
image: linuxserver/wireguard:v1.0.20210914-ls81
|
2022-06-18 14:12:12 +02:00
|
|
|
container_name: wireguard
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- SYS_MODULE
|
|
|
|
security_opt:
|
|
|
|
- label:disable
|
|
|
|
environment:
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
|
|
|
- TZ=Europe/Berlin
|
|
|
|
volumes:
|
|
|
|
- ./wg0.conf:/config/wg0.conf:ro,z
|
|
|
|
- /lib/modules:/lib/modules:ro
|
|
|
|
ports:
|
|
|
|
- 51820:51820/udp
|
|
|
|
sysctls:
|
|
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
|
|
- net.ipv6.conf.all.disable_ipv6=0
|
|
|
|
restart: unless-stopped
|
2022-10-07 09:56:50 +02:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- gateway
|
|
|
|
- internal_services
|
|
|
|
|
|
|
|
networks:
|
|
|
|
gateway:
|
|
|
|
external: true
|
|
|
|
internal_services:
|
|
|
|
name: internal_services
|
|
|
|
internal: true
|
2022-08-08 23:55:41 +02:00
|
|
|
...
|