-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
103 lines (95 loc) · 1.94 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
94
95
96
97
98
99
100
101
102
103
version: "3.7"
services:
mongo:
image: mongo:latest
restart: unless-stopped
volumes:
- mongo-data:/data/db
redis:
image: redis:latest
restart: unless-stopped
xapi:
build:
context: ./xapi-service
# command: "yarn start"
restart: unless-stopped
environment:
- MONGO_URL
- MONGO_DB
- REDIS_URL
depends_on:
- mongo
- redis
volumes:
- xapi-storage:/usr/src/app/storage
api:
environment: &app-variable-environments
- FS_AWS_S3_ACCESS_KEY_ID
- FS_AWS_S3_SECRET_ACCESS_KEY
- FS_AWS_S3_REGION
- FS_AWS_S3_BUCKET
- MONGO_URL
- MONGO_DB
- REDIS_HOST
- REDIS_PORT
- REDIS_DB
- UI_PORT
- API_PORT
- DOMAIN_NAME
- APP_SECRET
- SMTP_HOST
- SMTP_PORT
- SMTP_SECURED
- SMTP_USER
- SMTP_PASS
build:
context: ./app
image: learninglocker2-app:${DOCKER_TAG}
command: "node api/dist/server"
restart: unless-stopped
depends_on:
- mongo
- redis
volumes:
- app-storage:/opt/learninglocker/storage
ui:
image: learninglocker2-app:${DOCKER_TAG}
environment:
- UI_PORT
- API_PORT
- DOMAIN_NAME
command: "./entrypoint-ui.sh"
restart: unless-stopped
depends_on:
- mongo
- redis
- api
volumes:
- ui-logs:/opt/learninglocker/logs
worker:
environment: *app-variable-environments
image: learninglocker2-app:${DOCKER_TAG}
command: "node worker/dist/server"
restart: unless-stopped
depends_on:
- mongo
- redis
volumes:
- app-storage:/opt/learninglocker/storage
nginx:
build:
context: ./nginx
image: learninglocker2-nginx:${DOCKER_TAG}
environment:
- DOMAIN_NAME
restart: unless-stopped
depends_on:
- ui
- xapi
ports:
- 80:80
volumes:
xapi-storage:
mongo-data:
ui-logs:
app-storage: