-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
65 lines (59 loc) · 1.55 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
version: '3.4'
services:
codeexecutorservice:
image: ${DOCKER_REGISTRY-}codeexecutorservice
build:
context: .
dockerfile: CodeExecutorService/Dockerfile
environment:
SLAVE_USER_NAME: anirut
SLAVE_HOST_PYTHON: python-slave
SLAVE_HOST_JAVA: java-slave
SLAVE_HOST_SHELL: shell-slave
SLAVE_HOST_GCC: gcc-slave
python-slave:
image: python-slave
build:
context: ./CompilerContainer
dockerfile: Python.Dockerfile
environment:
USER_NAME: anirut
volumes:
- ./CompilerContainer/Keys:/config/.ssh
- ./CompilerContainer/SourceCode:/config/sourcecode
restart: always
java-slave:
image: java-slave
build:
context: ./CompilerContainer
dockerfile: Java.Dockerfile
environment:
USER_NAME: anirut
volumes:
- ./CompilerContainer/Keys:/config/.ssh
- ./CompilerContainer/SourceCode:/config/sourcecode
restart: always
shell-slave:
image: shell-slave
build:
context: ./CompilerContainer
dockerfile: Shell.Dockerfile
environment:
USER_NAME: anirut
volumes:
- ./CompilerContainer/Keys:/config/.ssh
- ./CompilerContainer/SourceCode:/config/sourcecode
restart: always
gcc-slave:
image: gcc-slave
build:
context: ./CompilerContainer
dockerfile: GCC.Dockerfile
environment:
USER_NAME: anirut
ports:
- "2222:2222"
volumes:
- ./CompilerContainer/Keys:/config/.ssh
- ./CompilerContainer/SourceCode:/config/sourcecode
restart: always