Allow to specify the host/ports
mpapamanz opened this issue · comments
Hello,
it would be great to be able to control the Host/port that immich and the ml use
Immich has similar env https://immich.app/docs/install/environment-variables#ports
Something like creating and being able to set these 4 environment variables
IMMICH_HOST (currently set to 0.0.0.0)
IMMICH_PORT (currently set to 8080)
IMMICH_ML_HOST (Currently set to 0.0.0.0)
IMMICH_ML_PORT (Currently set to 3003)
You should be able to just add these variables and set them to what you desire?
These variables don't exist. In the Docker compose by Immich there are only IMMICH_HOST and IMMICH_PORT but in docker-immich none of them exist.
I edited the issue clarifying that they need to be created, thank you for flagging!
why not use IMMICH_MACHINE_LEARNING_URL and SERVER_PORT. @martabal I dont see a way to specify a sort of IMMICH_HOST
?
Currently, there's no way to specify the host or the port for the machine learning.
Here's how we start the machine-learning service:
exec \
cd /app/immich/machine-learning s6-setuidgid abc \
gunicorn app.main:app \
....
-b 0.0.0.0:3003 \
...
Here's how it's done upstream:
gunicorn app.main:app \
...
-b "$IMMICH_HOST":"$IMMICH_PORT" \
...
We can probably have different envs for the machine learning
IMMICH_MACHINE_LEARNING_URL
is for ml service?
IMMICH_MACHINE_LEARNING_URL
is for ml service?
Not really, it's the env used by the microservices to communicate with the machine-learning