- 277
- 17
- Operating system
- macOS
- Mobile operating system
- iOS
so all published ports moved to gluetun container....and each service will know which port after moving them?Nah, the publised ports need to move from the idvidual services to the gluten container, as all other containers will share the network namespace of the gluten container.
You can only publish ports when the bridge network is used - which is only the case for the gluten container.
---
Update - publish button remains disabled when moving ports to gluetun.
Code:
sonarr:
image: linuxserver/sonarr:latest
network_mode: service:gluetun
restart: always
container_name: sonarr-stack2
environment:
- PGID=100
- PUID=1032
volumes:
- /volumeUSB1/usbshare/sonarr:/media-store/sonarr:rw
- /volume1/docker/media-center-config/sonarr:/config:rw
gluetun:
image: qmcgaw/gluetun
container_name: gluetun
network_mode: bridge
cap_add:
- NET_ADMIN
ports:
- 8888:8888/tcp # HTTP proxy
- 8989:8989 #sonarr
- 8388:8388/tcp # Shadowsocks
- 8388:8388/udp # Shadowsocks
- 8000:8000/tcp # Built-in HTTP control server
volumes: