|
|
@@ -29,7 +29,7 @@ services:
|
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
|
|
depends_on:
|
|
|
mongo:
|
|
|
- condition: service_healthy
|
|
|
+ condition: service_started
|
|
|
gcs:
|
|
|
condition: service_healthy
|
|
|
user: node
|
|
|
@@ -46,10 +46,15 @@ services:
|
|
|
mongo:
|
|
|
image: mongo:6.0.13
|
|
|
command: --replSet overleaf
|
|
|
- healthcheck:
|
|
|
- test: "mongosh --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
|
|
|
- interval: 1s
|
|
|
- retries: 20
|
|
|
+ volumes:
|
|
|
+ - ../../bin/shared/mongodb-init-replica-set.js:/docker-entrypoint-initdb.d/mongodb-init-replica-set.js
|
|
|
+ environment:
|
|
|
+ MONGO_INITDB_DATABASE: sharelatex
|
|
|
+ extra_hosts:
|
|
|
+ # Required when using the automatic database setup for initializing the
|
|
|
+ # replica set. This override is not needed when running the setup after
|
|
|
+ # starting up mongo.
|
|
|
+ - mongo:127.0.0.1
|
|
|
gcs:
|
|
|
image: fsouza/fake-gcs-server:1.45.2
|
|
|
command: ["--port=9090", "--scheme=http"]
|