Setting Machine Learning URL in environment variables #14739
Replies: 4 comments
-
You can use a config file. If you go to the settings page, you can export your current settings as a JSON file. You can mount this file into the server container and set the path within the container through the |
Beta Was this translation helpful? Give feedback.
-
I appreciate your response. I quite understand your solution and it should work. But ML URL is just a small part of the whole config. In my experience, this can easily break the future installations if the format is changed or new default settings are added or existing default settings are removed/changed, etc. Having this URL as an environment variable will provide much more flexible solution. It's like database or redis host/port env variables. Just my personal preference/opinion. |
Beta Was this translation helpful? Give feedback.
-
+1 from me, allowing this to be an environment variable will support dynamic deployments (Nomad, K8s, etc.). The support is already present to specify the database and Redis hosts by environment variables, which makes it look like an oversight to be unable to configure the machine learning host this way. |
Beta Was this translation helpful? Give feedback.
-
There is in fact an env var for this, called |
Beta Was this translation helpful? Give feedback.
-
Is there any way to set the URL of machine learning in the docker environment variables? I'm trying to automate the initial setup/config as much as possible, but couldn't find any such setting here: https://immich.app/docs/install/environment-variables/
Any help is really appreciated. Thanks!
UPDATE: The reason why I need to override the default is that I'm running the machine learning container in another machine.
Beta Was this translation helpful? Give feedback.
All reactions