Closed mahogl closed 2 years ago
Check this page for a complete tutorial on how to set that up: https://www.omnistream.cloud/tips-tricks/custom-containers
I have used that guide for setting up other custom containers, and the concept i good. My problem is with radarr4k/sonarr4k/ if i look at the example on https://www.omnistream.cloud/tips-tricks/custom-containers for radarr4k it uses the same port as the "ordinary" radarr docker instance so dont think that would work right?
radarr4k: image: lscr.io/linuxserver/radarr container_name: radarr4k hostname: radarr4k domainname: ${MYDOMAIN} restart: unless-stopped depends_on: traefik: condition: service_healthy omnimount: condition: service_healthy environment:
radarr4k.${MYDOMAIN}
)So if someone have a working radarr4k.yaml i could use as an base, i know this is not supported, but i would appreciate the help.
Think i might have figure it out, will test som more and report back
I got one step closer, but for som reason i get "bad gatway 502" error from cloudflare when it tries to redirect me to sonarr4k.mydomain.com. I get the authentication step from Traefik, but after that i get the 502 error.
sonarr4k.yaml: #
# sonarr4k: image: lscr.io/linuxserver/sonarr container_name: sonarr4k hostname: sonarr4k domainname: ${MYDOMAIN} restart: unless-stopped depends_on: traefik: condition: service_healthy omnimount: condition: service_healthy environment:
sonarr4k.${MYDOMAIN}
)You shouldn't add or change any of the ports... that's the thing about Traefik: it routes things internally and only talks to the outside world using one single port (443).
So you can add as many *arr containers manually as you like and they can all use the same port. Same goes for all other containers, for example I have 3 Apache websites running all using port 80.
As @TechPerplexed said, the issue is:
You're bypassing Traefik by opening a port to the main system. Don't do that. Elminate the Ports section entirely.
Additionally, the port INSIDE the containers is wrong unless you've actually reconfigured the app to run on a different port (if so, this wasn't done on through the above configurations). Again, this is not necessary and where your trouble is. You can have 10 web servers running in Docker with each container using ports 80 and 443 (as an example) and each serving up different URLs which Traefik would then route accordingly. This is essentially the same thing except with Radarr/Sonarr using their assigned web ports.
As such the Traefik loadbalancer ports will remain at 8989 (Sonarr) and 7878 (Radarr).
You are correct, I was thinking wrongly about this. My thought was that it would be an port conflict if both instances was running on the same port on the backend. But its not since each docker instance has its own IP. Why make it complicated when it is easy, sorry to bother you with this mistake.
Leaving the sonarr4k/radarr4k.yamel below, if someone is doing my mistake or wonder how the config should look like.
sonarr4k.yaml #
# sonarr4k: image: lscr.io/linuxserver/sonarr container_name: sonarr4k hostname: sonarr4k domainname: ${MYDOMAIN} restart: unless-stopped depends_on: traefik: condition: service_healthy omnimount: condition: service_healthy environment:
sonarr4k.${MYDOMAIN}
)radarr4k.yaml #
# radarr4k: image: lscr.io/linuxserver/radarr:latest container_name: radarr4k hostname: radarr4k domainname: ${MYDOMAIN} restart: unless-stopped depends_on: traefik: condition: service_healthy omnimount: condition: service_healthy environment:
radarr4k.${MYDOMAIN}
)It'll probably be good information for new users, so thanks for posting this issue 😊
Hi again,
I have some problems getting my own custom radarr4k/sonarr4k containers so if someone could i share and updated radarr4k/sonarr4k.yaml. The example omnistream.cloud - custom docker containers, looks like it uses the same ports as Radarr itself. I know this is not supported, but i had to ask instead of banging my head into the wall.
I have tried different configurations without success the application just keeps on restarting.
radarr4k logs:
radarr4k.yaml (i changed the radarr config.xml to run on port 7879) `#
Radarr4k - Movie catalog and management
# radarr4k: image: lscr.io/linuxserver/radarr:latest container_name: radarr4k hostname: radarr4k domainname: ${MYDOMAIN} restart: unless-stopped depends_on: traefik: condition: service_healthy omnimount: condition: service_healthy environment:
radarr4k.${MYDOMAIN}
)