I\'m working with a docker service using docker-compose, and I have a service that depends on anther.
I\'ve used the depends_on key, but the service with t
depends_on
You are probably looking for docker compose healthcheck
healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 10s timeout: 5s retries: 5
There is a good reference here as well: https://github.com/peter-evans/docker-compose-healthcheck