RandomNinjaAtk / arr-scripts

Extended Container Scripts - Automation scripts to make life easier!
GNU General Public License v3.0
656 stars 66 forks source link

Using non standard ports because those ports were already taken in my setup. #31

Closed Glynax closed 1 year ago

Glynax commented 1 year ago

Alright I think I see where it's breaking, my readarrs are using port 9090 and 9191 because the expected ports were already in use by something else

verifyApiAccess () { until false do arrApiTest="" arrApiVersion="" if [ "$arrPort" == "8989" ] || [ "$arrPort" == "7878" ]; then arrApiVersion="v3" elif [ "$arrPort" == "8686" ] || [ "$arrPort" == "8787" ]; then arrApiVersion="v1" fi arrApiTest=$(curl -s "$arrUrl/api/$arrApiVersion/system/status?apikey=$arrApiKey" | jq -r .instanceName) if [ "$arrApiTest" == "$arrName" ]; then break else log "$arrName is not ready, sleeping until valid response..." sleep 1 fi done }

Originally posted by @Glynax in https://github.com/RandomNinjaAtk/arr-scripts/issues/22#issuecomment-1639239577

RandomNinjaAtk commented 1 year ago

Since this is designed for docker, you shouldn’t be changing the softwares ports. You should just be adjusting the docker port mapping to change the port, which doesn’t break functionality.

RandomNinjaAtk commented 1 year ago

If you post your docker run/compose sample, can give you some edits to show you what you should be adjusting

Glynax commented 1 year ago

If you post your docker run/compose sample, can give you some edits to show you what you should be adjusting

I almost get what you mean, but I'm never sure which is which in the compose is what, is the left the out of container port or the inside of container port?


version: "2.1" services: readarr: image: lscr.io/linuxserver/readarr:develop container_name: readarr environment:

RandomNinjaAtk commented 1 year ago

Always best to read the providers documentation: Example: https://docs.linuxserver.io/images/docker-lidarr#parameters

So based on your config, I believe it should look like this: Top:

ports:
  - 9090:8787

Bottom:

ports:
  - 9191:8787
Glynax commented 1 year ago

Yeah that worked, thanks :)