Externalize DB not working (502 bad gateway from nginx)

I've been attempting to externalize our DB by following the instructions laid out in this guide: Configure and migrate to an external database | Retool Docs. However, once I make the changes in the docker.env file and restart retool with sudo docker-compose up -d, it throws a 502 bad gateway from nginx error. Any advice how I can get past? Thanks!

1 Like

Hey @acfreund! Welcome back to the community.

If possible, it would be super helpful to see your docker-compose.yml file! There's a lot of variability in a Retool deployment that is most easily communicated by just sharing the source material.

On your end, though, I do recommend looking at logs for the api and jobs-runner containers. You can run the command sudo docker-compose logs container_name -f in order to display and follow the logs for a given container. This should hopefully give us more insight into the exact nature of the error.

1 Like