Docker-compose: App can not connect to Postgres container Docker-compose: App can not connect to Postgres container docker docker

Docker-compose: App can not connect to Postgres container


Postgres was exiting due to its volume already containing data.

This was solved by cleaning the directory with:

docker-compose down -v