Skip to content

Commit

Permalink
change healthcheck command
Browse files Browse the repository at this point in the history
  • Loading branch information
masih committed Sep 19, 2023
1 parent 2e52387 commit 36a84f4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
services:
mongodb:
image: mongo:6.0
hostname: mongodb
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_AUTH_USERNAME:-root}
Expand All @@ -11,12 +12,10 @@ services:
volumes:
- ${MOTION_HOME:-$HOME/.motion}/zenko/mongodbMetadata:/data/db
healthcheck:
test:
- CMD-SHELL
- echo 'db.runCommand("ping").ok' | mongo mongo:27017/${MONGODB_DATABASE:-metadata} --quiet
test: mongo --eval 'db.runCommand("ping").ok' localhost:27017/${MONGODB_DATABASE:-metadata} --quiet
interval: 10s
timeout: 5s
retries: 30
retries: 10
start_period: 30s
motion:
image: ghcr.io/filecoin-project/motion:main
Expand Down

0 comments on commit 36a84f4

Please sign in to comment.