Skip to content

Commit

Permalink
fix docker compose
Browse files Browse the repository at this point in the history
now docker compose sets up replica set using mongosh, mongo is no longer
available on mongodb 6.0
  • Loading branch information
daneryl committed Jan 8, 2025
1 parent 78042c1 commit bd6bf3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
container_name: mongoreplicaset_start_script
depends_on:
- mongo
entrypoint: [ "bash", "-c", "sleep 1 && mongo --host mongo:27017 --eval 'rs.initiate();cfg = rs.config(); cfg.members[0].host = \"localhost:27017\";rs.reconfig(cfg, {force:true})'"]
entrypoint: [ "bash", "-c", "sleep 1 && mongosh --host mongo:27017 --eval 'rs.initiate();cfg = rs.config(); cfg.members[0].host = \"localhost:27017\";rs.reconfig(cfg, {force:true})'"]

redis:
image: 'redis:5.0.14'
Expand Down

0 comments on commit bd6bf3b

Please sign in to comment.