Skip to content

Commit

Permalink
Add a healthcheck for MongoDB in compose
Browse files Browse the repository at this point in the history
  • Loading branch information
sajith committed Mar 15, 2024
1 parent cf0117d commit 5f39dca
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ services:
- type: volume
source: mongodb
target: /data/db:Z
# healthcheck:
# test: ["CMD", "mongo", "--eval", "db.version()"]
# interval: 10s
# timeout: 5s
# retries: 3
healthcheck:
test: ["CMD", "mongosh", "localhost:${MONGO_PORT}/test", "--quiet"]

sdx-controller:
image: sdx-controller
Expand Down

0 comments on commit 5f39dca

Please sign in to comment.