Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed Jan 5, 2024
1 parent 19ce1b2 commit 1d355e4
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({_id:'rs0',members:[{_id:0,host:'mongodb-dev'}]}) }" | mongosh --port 27017 --quiet
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'localhost'}]}) }" | mongosh localhost:27017/test --quiet
interval: 60s
timeout: 10s
retries: 2
Expand Down

0 comments on commit 1d355e4

Please sign in to comment.