fix(docker): Simplify MongoDB healthcheck and add troubleshooting
This commit is contained in:
parent
b218594b53
commit
b068579671
2 changed files with 139 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue