fix(docker): Simplify MongoDB healthcheck and add troubleshooting

This commit is contained in:
goose 2026-02-15 14:25:45 -03:00
parent b218594b53
commit b068579671
2 changed files with 139 additions and 3 deletions

View file

@ -35,12 +35,11 @@ services:
networks:
- normogen-network
healthcheck:
test: |
mongosh --eval "db.adminCommand('ping').ok" --quiet
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 5s
retries: 5
start_period: 40s
start_period: 60s
volumes:
mongodb_dev_data:
driver: local