forked from michzimny/learninglocker2-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
93 lines (86 loc) · 2.69 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '2'
services:
mongo:
image: mongo:3.4
restart: unless-stopped
volumes:
- "${DATA_LOCATION}/mongo:/data/db"
redis:
image: redis:4-alpine
restart: unless-stopped
xapi:
image: learninglocker/xapi-service:2.2.7
restart: unless-stopped
environment:
- MONGO_URL=mongodb://mongo:27017/learninglocker_v2
- REDIS_URL=redis://redis:6379/0
- VIRTUAL_HOST=xapi.${DOMAIN_NAME}
- VIRTUAL_PORT=8081
- LETSENCRYPT_HOST=xapi.${DOMAIN_NAME}
expose:
- 8081
depends_on:
- mongo
- redis
api:
image: slidewiki/learninglocker2-docker:${DOCKER_TAG}
environment:
- DOMAIN_NAME
- APP_SECRET
- SMTP_HOST
- SMTP_PORT
- SMTP_USER
- SMTP_PASS
- SMTP_IGNORE_TLS
- MONGO_URL=mongodb://mongo:27017/learninglocker_v2
- VIRTUAL_HOST=api.${DOMAIN_NAME}
- VIRTUAL_PORT=8080
- LETSENCRYPT_HOST=api.${DOMAIN_NAME}
command: "node api/dist/server"
restart: unless-stopped
depends_on:
- mongo
- redis
volumes:
- "${DATA_LOCATION}/app-storage:/opt/learninglocker/storage"
ui:
image: slidewiki/learninglocker2-docker:${DOCKER_TAG}
environment:
- DOMAIN_NAME
- APP_SECRET
- SMTP_HOST
- SMTP_PORT
- SMTP_USER
- SMTP_PASS
- MONGO_URL=mongodb://mongo:27017/learninglocker_v2
- VIRTUAL_HOST=${DOMAIN_NAME}
- VIRTUAL_PORT=3000
- LETSENCRYPT_HOST=${DOMAIN_NAME}
command: "./entrypoint-ui.sh"
restart: unless-stopped
depends_on:
- mongo
- redis
- api
volumes:
- "${DATA_LOCATION}/app-storage:/opt/learninglocker/storage"
worker:
image: slidewiki/learninglocker2-docker:${DOCKER_TAG}
environment:
- DOMAIN_NAME
- APP_SECRET
- SMTP_HOST
- SMTP_PORT
- SMTP_USER
- SMTP_PASS
- MONGO_URL=mongodb://mongo:27017/learninglocker_v2
command: "node worker/dist/server"
restart: unless-stopped
depends_on:
- mongo
- redis
volumes:
- "${DATA_LOCATION}/app-storage:/opt/learninglocker/storage"