monica
monica copied to clipboard
Docker installation using nginx-proxy-self-signed-ssl example cause 502 bad gateway
Bug: Installed docker version using the nginx-proxy-self-signed-ssl docker-compose example. When trying to access monica's web page a 502 bad gateway page was received.
Solution that worked for me: The nginx reverse proxy couldn't connect to the monica app. In the nginx.conf the upstream server uses port 9000. That means we should be using the fpm version of the monica app.
So in the docker-compose.yml the line 'image: monica-app' should be changed to 'image: monica:fpm'
Old docker-compose.yml: app: build: ./app image: monica-app env_file: .env
New docker-compose.yml: app: build: ./app image: monica:fpm env_file: .env environment: