Tweak network settings

This commit is contained in:
Colin Hebert
2023-03-04 16:10:29 +11:00
parent ddcccb1b82
commit 887a107ae0

View File

@@ -39,20 +39,15 @@ services:
PUID: ${NASCOMPOSE_UID?} PUID: ${NASCOMPOSE_UID?}
PGID: ${NASCOMPOSE_GID?} PGID: ${NASCOMPOSE_GID?}
VPN_ENABLED: true VPN_ENABLED: true
VPN_LAN_NETWORK: 192.168.0.0/16 VPN_LAN_NETWORK: 192.168.0.0/23
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
sysctls: sysctls:
net.ipv4.conf.all.src_valid_mark: 1 net.ipv4.conf.all.src_valid_mark: 1
networks: networks:
- reverse-proxy - reverse-proxy
- torrents
devices: devices:
- /dev/net/tun:/dev/net/tun - /dev/net/tun:/dev/net/tun
dns:
# Work around DNS blocks in various regions
- 1.1.1.1
- 1.0.0.1
volumes: volumes:
- ${NASCOMPOSE_SERVICES?}/torrents/volumes/qbittorrent_config/:/config/ - ${NASCOMPOSE_SERVICES?}/torrents/volumes/qbittorrent_config/:/config/
- ${NASCOMPOSE_DATA?}/torrents/:/data/ - ${NASCOMPOSE_DATA?}/torrents/:/data/