set up wireguard manually

This commit is contained in:
Colin Hebert
2023-03-04 21:00:24 +11:00
parent 887a107ae0
commit 01208f4703

View File

@@ -59,6 +59,26 @@ services:
traefik.enable: true
traefik.http.routers.qbittorrent.middlewares: authelia@file
wireguard:
hostname: wireguard
image: linuxserver/wireguard
environment:
PUID: ${NASCOMPOSE_UID?}
PGID: ${NASCOMPOSE_GID?}
cap_add:
- NET_ADMIN
sysctls:
net.ipv4.conf.all.src_valid_mark: 1
networks:
- reverse-proxy
configs:
- source: qbittorrent_vpn_settings
target: /config/wg0.conf
restart: unless-stopped
labels:
traefik.enable: true
traefik.http.routers.wireguard.middlewares: authelia@file
networks:
torrents:
name: torrents