fix(docker): Fix MongoDB healthcheck configuration
This commit is contained in:
parent
d63f160af3
commit
b218594b53
2 changed files with 63 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue