Closed Glynax closed 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.
If you post your docker run/compose sample, can give you some edits to show you what you should be adjusting
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:
9090:9090 restart: unless-stopped
readarr2: image: lscr.io/linuxserver/readarr:develop container_name: readarr2 environment:
plexToken=gUj
volumes:
/opt/readarr-extended/custom-cont-init.d:/custom-cont-init.d
ports:
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
Yeah that worked, thanks :)
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