Skip to content

Commit

Permalink
chore: update docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
Fritz Seitz committed Dec 11, 2023
1 parent 9414522 commit 59a0f71
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,18 @@ services:
- mongodb
- mailhog
mongodb:
image: "mongo:latest"
image: mongo:7
container_name: mongodb
ports:
- 27017:27017
- '27017:27017'
command: mongod --replSet rs0
healthcheck:
test: |
mongosh --eval "try { rs.status().ok } catch (e) { rs.initiate({ _id: 'rs0', members: [{ _id: 0, host: 'localhost:27017' }] }).ok }"
start_period: 0s
interval: 500ms
timeout: 5s
retries: 5
mailhog:
image: "mailhog/mailhog:latest"
ports:
Expand Down

0 comments on commit 59a0f71

Please sign in to comment.