39 lines
718 B
YAML
39 lines
718 B
YAML
services:
|
|
|
|
### WIREGUARD
|
|
|
|
wireguard:
|
|
image: lscr.io/linuxserver/wireguard
|
|
container_name: wireguard
|
|
healthcheck:
|
|
test: [ "CMD", "ping", "-c", "1", "10.13.13.1" ]
|
|
timeout: 10s
|
|
interval: 5s
|
|
retries: 3
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_MODULE
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
volumes:
|
|
- ./wireguard/config/wg0.conf:/config/wg0.conf
|
|
- /lib/modules:/lib/modules
|
|
# Expose prometheus port
|
|
expose:
|
|
- 9090
|
|
ports:
|
|
- 51820:51820/udp
|
|
sysctls:
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
restart: unless-stopped
|
|
networks:
|
|
- chains
|
|
- monitoring
|
|
|
|
### NETWORK
|
|
|
|
networks:
|
|
monitoring:
|
|
driver: bridge
|