Set network_mode to host for multiple services in docker-compose.yaml
This commit is contained in:
@@ -2,6 +2,7 @@ services:
|
||||
homarr:
|
||||
image: ghcr.io/ajnart/homarr:latest
|
||||
restart: always
|
||||
network_mode: host
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ${DATA_PATH}/homarr/configs:/app/data/configs
|
||||
@@ -12,6 +13,7 @@ services:
|
||||
|
||||
transmission:
|
||||
image: haugene/transmission-openvpn
|
||||
network_mode: host
|
||||
restart: always
|
||||
privileged: true
|
||||
ports:
|
||||
@@ -28,13 +30,14 @@ services:
|
||||
volumes:
|
||||
- ./vpn:/etc/openvpn/custom
|
||||
- ${DATA_PATH}/downloads:/downloads
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
# - /etc/localtime:/etc/localtime:ro
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
|
||||
radarr:
|
||||
image: linuxserver/radarr
|
||||
restart: always
|
||||
network_mode: host
|
||||
ports:
|
||||
- '${PORT_RADARR}:7878'
|
||||
environment:
|
||||
@@ -49,6 +52,7 @@ services:
|
||||
sonarr:
|
||||
image: linuxserver/sonarr
|
||||
restart: always
|
||||
network_mode: host
|
||||
ports:
|
||||
- '${PORT_SONARR}:8989'
|
||||
environment:
|
||||
@@ -63,6 +67,7 @@ services:
|
||||
prowlarr:
|
||||
image: linuxserver/prowlarr
|
||||
restart: always
|
||||
network_mode: host
|
||||
ports:
|
||||
- '${PORT_PROWLARR}:9696'
|
||||
cap_add:
|
||||
@@ -77,6 +82,7 @@ services:
|
||||
flaresolverr:
|
||||
# DockerHub mirror flaresolverr/flaresolverr:latest
|
||||
image: ghcr.io/flaresolverr/flaresolverr:latest
|
||||
network_mode: host
|
||||
environment:
|
||||
- LOG_LEVEL=${LOG_LEVEL:-info}
|
||||
- LOG_HTML=${LOG_HTML:-false}
|
||||
|
||||
Reference in New Issue
Block a user