|
@@ -89,11 +89,16 @@ services:
|
|
|
- history-v1-buckets:/buckets
|
|
- history-v1-buckets:/buckets
|
|
|
|
|
|
|
|
mongo:
|
|
mongo:
|
|
|
- image: mongo:4.4
|
|
|
|
|
|
|
+ image: mongo:5
|
|
|
|
|
+ command: --replSet overleaf
|
|
|
ports:
|
|
ports:
|
|
|
- "127.0.0.1:27017:27017" # for debugging
|
|
- "127.0.0.1:27017:27017" # for debugging
|
|
|
volumes:
|
|
volumes:
|
|
|
- mongo-data:/data/db
|
|
- mongo-data:/data/db
|
|
|
|
|
+ healthcheck:
|
|
|
|
|
+ test: 'test $$(mongosh --eval "rs.initiate({ _id: "overleaf", members: [ { _id: 0, host: "mongo:27017" } ] }).ok || rs.status().ok" --quiet) -eq 1'
|
|
|
|
|
+ interval: 30s
|
|
|
|
|
+ start_period: 30s
|
|
|
|
|
|
|
|
notifications:
|
|
notifications:
|
|
|
build:
|
|
build:
|