You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm managing my whole server with docker-compose, and as such the container names frontend, backend and proxy can be confusing/conflicting with the rest of my setup. I manually changed the compose file, but realized that those names are hard-coded into the images.
To me it would make a whole lot of sense to be able to run LibrePhotos with different container names, especially with environment variables like BACKEND_HOST already in the backend compose config that suggest that it would be configurable.
The text was updated successfully, but these errors were encountered:
Just wanted to chime in here about how I got this working with custom container names.
I inserted librephotos in my custom docker compose file that has all my other apps, and as such did not want to have them named frontend, etc.
After changing the container names to librephotos-frontend, etc. I ran into the problem that the proxy could not find the backend. I then copied the nginx conf file and modified it to reference librephotos-backend wherever backend was. I then mounted the nginx conf file through a docker volume to /etc/nginx/nginx.conf in the librephotos proxy container.
You also need to make sure that you have the correct BACKEND_HOST variable set in your environment for the librephotos-backend container, otherwise you will run into the issue in LibrePhotos/librephotos#152.
This does mean I will have to keep an eye on any nginx conf changes and make them on my custom file before I docker pull in any new changes, but this is fine since it is worth it to have all my apps on one master docker compose file. Everything seems to be working now.
I'm managing my whole server with docker-compose, and as such the container names
frontend
,backend
andproxy
can be confusing/conflicting with the rest of my setup. I manually changed the compose file, but realized that those names are hard-coded into the images.To me it would make a whole lot of sense to be able to run LibrePhotos with different container names, especially with environment variables like
BACKEND_HOST
already in the backend compose config that suggest that it would be configurable.The text was updated successfully, but these errors were encountered: