Existing docker compose stack interference
I only have a single system available, and currently have about 20 containers in my docker compose stack. (including swag with ngnix for reverse SSL proxy). I am trying to add immich to this and incorporating it all into my existing .env file and compose.yaml. (Am I doing that wrong? Can (should) you run multiple docker compose files on a single machine?)
I think the biggest hang-up I have is that I already have 3-4 services that are using port 3000 and 3001 within the stack (they get mapped to different public ports, so no issue in that usage). Based upon the environment variables available I added this to my .env file:
PORT=3030
SERVER_PORT=3031
MICROSERVICES_PORT=3032
MACHINE_LEARNING_PORT=3033
However when I run docker ps, it still shows the immich services listening on port 3001 (both micro and server), and 3000 for web. How do I fix that?
11 Replies
And the immich section from my docker-compose.yaml
docker ps output
Those value are for internal services, unless you have a very custom setup, i.e running the server on a different domain then you would touch those. The only thing that you should modify is the
UPLOAD_LOCATION
to point to a storage location on your server where the photos will be uploaded toHi guys, I am new here and not sure if I can ask here or not. I am using portainer to install it and followed exact steps mentioned from the instructions online. I have never installed a stack, always a container docker. While installing i changed all url only like this
IMMICH_WEB_URL=http://192.168.1.3:3000
. @Alex as you said above, should I not modify anything but only UPLOAD_LOCATION.Correct you shouldn’t change those settings, just the UPLOAD_LOCATION is enough
Ok thank you.
I finally figured out how to fix this. I updated the immich-proxy environments to:
- IMMICH_SERVER_URL=http://immich_server:3001
- IMMICH_WEB_URL=http://immich_web:3000
This will use the docker internal DNS to get the correct container and port. (This should maybe be the default URLs in the docker-compose.yml file)
Ya that's right. I was fiddling with this which made it not browse-able.
Also I am installing now again and it looks like new version environment variables have changed and they removed all URLs now, so no more confusion.
yep, we got some cases with the same confusion as yours so we want to make it more straight forward
👍
Thank you