-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
82 lines (75 loc) · 1.36 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
version: "1.0"
services:
api_server:
build: ./backend/api
restart: always
environment:
- NODE_ENV=production
- PORT=8001
ports:
- 8001:8001
depends_on:
- mongo
- redis
volumes:
- type: bind
source: ./backend/api
target: /api
frontend_server:
build: ./frontend
restart: always
environment:
- PORT=3000
ports:
- 3000:3000
depends_on:
- api_server
volumes:
- type: bind
source: ./frontend
target: /frontend
checker:
build: ./checker
restart: always
environment:
- PORT=9000
depends_on:
- api_server
- mongo
- redis
volumes:
- type: bind
source: ./checker
target: /checker
# code_evaluator:
# build: ./backend/code_evaluator
# environment:
# - PORT=8083
# ports:
# - 8083:8083
# depends_on:
# - redis
# - mongo
mongo_express:
image: mongo-express
restart: always
env_file:
- ./backend/webconfig.env
ports:
- 8081:8081
depends_on:
- mongo
mongo:
image: mongo:latest
restart: always
env_file:
- ./backend/webconfig.env
ports:
- 27017:27017
volumes:
- ./backend/data:/data/db
redis:
image: redis:latest
restart: always
ports:
- 6379:6379