mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 21:23:45 +01:00
27 lines
642 B
YAML
27 lines
642 B
YAML
services:
|
|
mongo:
|
|
image: mongo:${MONGO_VERSION}
|
|
container_name: mongo
|
|
hostname: mongo
|
|
restart: always
|
|
healthcheck:
|
|
test: "mongosh --quiet --eval 'rs.hello().setName ? rs.hello().setName : rs.initiate({_id: \"overleaf\",members:[{_id: 0, host:\"mongo:27017\"}]})'"
|
|
interval: 10s
|
|
timeout: 10s
|
|
retries: 5
|
|
command: "--replSet overleaf"
|
|
environment:
|
|
GLIBC_TUNABLES: glibc.cpu.hwcaps=-SHSTK
|
|
volumes:
|
|
- ./data_db:/data/db
|
|
- ./backup:/backup
|
|
|
|
networks:
|
|
- overleaf-network
|
|
extra_hosts:
|
|
- "mongo:127.0.0.1"
|
|
|
|
networks:
|
|
overleaf-network:
|
|
external: true
|