ports config section:
ports: - '5433:5432'
5432 container port to
5433 host port. However within the docker network the db is still accessible on the
5432 port, so you need to change your
.env file to use
If you don’t need other apps to access db from the host you may omit this
ports section at all (you’ll still be able to connect to it using e.g.
CLICK HERE to find out more related problems solutions.