fix(docker): Fix MongoDB healthcheck configuration

This commit is contained in:
goose 2026-02-15 14:16:08 -03:00
parent d63f160af3
commit b218594b53
2 changed files with 63 additions and 2 deletions

View file

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