-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
52 lines (49 loc) · 1.05 KB
/
docker-compose.yaml
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
version: '3'
services:
code_judge:
build: ./code_judge
depends_on:
- redis
environment:
NODE_ENV: development
MONGO_URI: ${WORKER_MONGO_URI}
REDIS_URI: redis://redis
TESTING_DIR: $PWD/code_judge/test
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./code_judge:/usr/src/app
command: npm run dev
server:
build: ./server
depends_on:
- redis
- code_judge
ports:
- 5000:5000
environment:
NODE_ENV: development
SECRET_OR_KEY: ${SECRET_OR_KEY}
PRODUCTION_URI: http://client:3000
MONGO_URI: ${MONGO_URI}
REDIS_URI: redis://redis
REDIS_HOST: redis
DOCKERIZED: 'true'
volumes:
- ./server:/usr/src/app
command: npm run dev
client:
build: ./client
depends_on:
- server
- code_judge
ports:
- 3000:3000
environment:
NODE_ENV: development
stdin_open: true
volumes:
- ./client:/usr/src/app
redis:
image: redis:5.0.8-alpine
ports:
- 6379:6379