Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (71 loc) · 1.95 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (71 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
services:
sharelatex:
restart: always
build: ./docker/sharelatex
container_name: sharelatex
platform: ${DOCKER_PLATFORM:-linux/amd64}
depends_on:
mongo:
condition: service_healthy
redis:
condition: service_started
ports:
- 80:80
stop_grace_period: 60s
volumes:
- ./data/sharelatex:/var/lib/overleaf
environment:
OVERLEAF_APP_NAME: Overleaf Community Edition
OVERLEAF_MONGO_URL: mongodb://mongo/sharelatex
OVERLEAF_REDIS_HOST: redis
REDIS_HOST: redis
ENABLED_LINKED_FILE_TYPES: "project_file,project_output_file"
ENABLE_CONVERSIONS: "true"
EMAIL_CONFIRMATION_DISABLED: "true"
OVERLEAF_INVITE_TOKEN_SECRET: ${OVERLEAF_INVITE_TOKEN_SECRET:?rode make setup}
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost/login"]
interval: 15s
timeout: 5s
retries: 6
start_period: 60s
mongo:
restart: always
image: mongo:8.0
container_name: mongo
platform: ${DOCKER_PLATFORM:-linux/amd64}
command: "--replSet overleaf"
volumes:
- ./data/mongo:/data/db
- ./config/mongodb-init-replica-set.js:/docker-entrypoint-initdb.d/mongodb-init-replica-set.js:ro
environment:
MONGO_INITDB_DATABASE: sharelatex
extra_hosts:
- mongo:127.0.0.1
healthcheck:
test: echo 'db.stats().ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
redis:
restart: always
image: redis:6.2
container_name: redis
platform: ${DOCKER_PLATFORM:-linux/amd64}
volumes:
- ./data/redis:/data
sync:
build: ./docker/sync
container_name: overleaf-sync
restart: unless-stopped
profiles: [cron]
user: "${DOCKER_UID:-1000}:${DOCKER_GID:-1000}"
volumes:
- ./:/repo
env_file:
- .env
environment:
OVERLEAF_URL: http://sharelatex
depends_on:
sharelatex:
condition: service_healthy