docker compose up -d ran in ~/signup and reported both containers as started. Only one is still running. Find out why:
sh
docker compose ps -a
docker compose logs webOpen the file:
Make two changes:
- Give
dbahealthcheckthat runspg_isready -U postgresevery2s, withtimeout: 3sandretries: 10. - Replace the short
depends_onlist onwebwith the long form:db:and, under it,condition: service_healthy.
Check the file, then apply it:
sh
docker compose config
docker compose up -d
docker compose ps
curl -s localhost:8000Run docker compose up -d once more and read the status Compose prints for signup-db-1.