mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Added mongo healthcheck to docker-compose (#636)
This commit is contained in:
parent
f3e1f01a97
commit
c23c2f3447
2 changed files with 11 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
version: '2'
|
version: '2.2'
|
||||||
services:
|
services:
|
||||||
sharelatex:
|
sharelatex:
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
version: '2'
|
version: '2.2'
|
||||||
services:
|
services:
|
||||||
sharelatex:
|
sharelatex:
|
||||||
restart: always
|
restart: always
|
||||||
image: sharelatex/sharelatex
|
image: sharelatex/sharelatex
|
||||||
container_name: sharelatex
|
container_name: sharelatex
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongo
|
mongo:
|
||||||
- redis
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_started
|
||||||
privileged: true
|
privileged: true
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
|
@ -93,6 +95,11 @@ services:
|
||||||
- 27017
|
- 27017
|
||||||
volumes:
|
volumes:
|
||||||
- ~/mongo_data:/data/db
|
- ~/mongo_data:/data/db
|
||||||
|
healthcheck:
|
||||||
|
test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
restart: always
|
restart: always
|
||||||
|
|
Loading…
Reference in a new issue