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 using the setup under .examples/docker-compose/with-nginx-proxy/mariadb/fpm/ but using my own instance of nginx-proxy and lets-encrypt-companion. The setup for both of those are practically identical to what is in the docker-compose.yml in this example so I took them out. My current docker-compose.yml is currently this:
It seems that i can start the containers without issue and they all show up under docker container ls but upon attempting to open the nextcloud page I receive a 502 bad gateway error and in the logs for the app container I see the error nginx: [emerg] host not found in upstream "app:9000" in /etc/nginx/nginx.conf:31. The nginx.conf file has not been changed at all. Has anyone else had this issue?
The text was updated successfully, but these errors were encountered:
I also had this issue. Have you tried to restart your proxy? nginx does not check the ip of the application container after nginx has started. So if the application conatiner gets a new ip your proxy still tries to connect to the old ip. That was the problem in my case.
You have to make sure, that the nextcloud-fpm container (app) and the webserver (web) share the same network. Docker compose implicitly adds a network called default to all containers as long as there is none otherwise specified.
The web container has also to be in the proxy network, so that outside connections can reach the service.
Since you have specified a network, you have to manually add the default network to the container.
I'm using the setup under
.examples/docker-compose/with-nginx-proxy/mariadb/fpm/
but using my own instance ofnginx-proxy
andlets-encrypt-companion
. The setup for both of those are practically identical to what is in thedocker-compose.yml
in this example so I took them out. My currentdocker-compose.yml
is currently this:It seems that i can start the containers without issue and they all show up under
docker container ls
but upon attempting to open the nextcloud page I receive a 502 bad gateway error and in the logs for theapp
container I see the errornginx: [emerg] host not found in upstream "app:9000" in /etc/nginx/nginx.conf:31
. The nginx.conf file has not been changed at all. Has anyone else had this issue?The text was updated successfully, but these errors were encountered: