Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 authored Jan 4, 2024
1 parent c787584 commit 453bb1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion development/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ services:
# chown 999:999 /etc/mongo/replica.key
healthcheck:
# test: echo 'db.stats().ok' | mongosh localhost:27017/test --quiet
test: echo "try { rs.status() } catch (err) { rs.initiate() }" | mongosh localhost:27017/test --quiet
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',host:'mongodb-dev:27017'}) }" | mongosh --port 27017 --quiet
interval: 60s
timeout: 10s
retries: 2
Expand Down

0 comments on commit 453bb1f

Please sign in to comment.