-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
71 lines (64 loc) · 1.91 KB
/
docker-compose.yml
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
version: '2.2'
services:
sharelatex:
restart: always
image: worksasintended/overleaf_ldap
container_name: sharelatex
depends_on:
mongo:
condition: service_healthy
redis:
condition: service_started
privileged: false
ports:
- 80:80
links:
- mongo
- redis
# volumes:
# - ~/sharelatex_data:/var/lib/sharelatex
environment:
SHARELATEX_APP_NAME: Overleaf Community Edition
SHARELATEX_MONGO_URL: mongodb://mongo/sharelatex
ADMIN_MAIL: [email protected]
DOMAIN: example.com
LDAP_SERVER: ldaps://my-server.com:636
LDAP_BIND_DN: cn=asdf,ou=asdf,dc=asdf
LDAP_BIND_PW: itsasecret
# Same property, unfortunately with different names in
# different locations
SHARELATEX_REDIS_HOST: redis
REDIS_HOST: redis
ENABLED_LINKED_FILE_TYPES: 'url,project_file'
# Enables Thumbnail generation using ImageMagick
ENABLE_CONVERSIONS: 'true'
mongo:
restart: always
image: mongo
container_name: mongo
ports:
- 27017
# volumes:
# - ~/mongo_data:/data/db
healthcheck:
test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
redis:
restart: always
image: redis
container_name: redis
ports:
- 6379
# volumes:
# - ~/redis_data:/data
# nginx-proxy:
# image: jwilder/nginx-proxy
# container_name: nginx-proxy
# ports:
# #- "80:80"
# - "443:443"
# volumes:
# - /var/run/docker.sock:/tmp/docker.sock:ro
# - /home/sharelatex/tmp:/etc/nginx/certs