forked from LearningLocker/learninglocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
124 lines (112 loc) · 2.02 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3.5'
volumes:
mongodb: {}
learninglocker-dist: {}
services:
builder:
build:
context: .
target: builder
networks:
- learninglocker
api:
build:
context: .
target: api
container_name: learninglocker-api
depends_on:
- mongodb
- redis
ports:
- "127.0.0.1:8888:8080"
networks:
- learninglocker
env_file:
- ./.env
worker:
build:
context: .
target: worker
depends_on:
- mongodb
- redis
- api
networks:
- learninglocker
env_file:
- ./.env
scheduler:
build:
context: .
target: scheduler
depends_on:
- mongodb
- redis
- worker
networks:
- learninglocker
env_file:
- ./.env
clientserver:
build:
context: .
target: clientserver
container_name: learninglocker-clientserver
volumes:
- learninglocker-dist:/learninglocker/public/
depends_on:
- mongodb
ports:
- "127.0.0.1:3001:3000"
networks:
- learninglocker
env_file:
- ./.env
cli:
build:
context: .
target: cli
depends_on:
- mongodb
networks:
- learninglocker
command: node server migrateMongo --up
env_file:
- ./.env
mongodb:
image: mongo:4.0
volumes:
- mongodb:/data/db:Z
networks:
- learninglocker
redis:
image: redis:6.2
networks:
- learninglocker
nginx:
build:
context: .
target: nginx
volumes:
- ./nginx.conf.example:/etc/nginx/conf.d/default.conf
depends_on:
- clientserver
- api
- xapi
ports:
- "127.0.0.1:81:80"
networks:
- learninglocker
env_file:
- ./.env
xapi:
# requires building the xapi image from thexapi-service repository
container_name: learninglocker-xapi
image: xapi-service_xapi
ports:
- "127.0.0.1:8080:8081"
networks:
- learninglocker
networks:
learninglocker:
driver: bridge