Postgres docker-compose
This is a common configuration for a dockerized database
|
|
Explanations:
- ports : usually it’s suitable to set port to listen localhost. This prevents remote connections to your database
- healthcheck: remember to configure healthcheck so you could control order of container startup.