-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (56 loc) · 1.6 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (56 loc) · 1.6 KB
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:
python-slave:
image: ghcr.io/untitlecms/python-sandbox:v0
volumes:
- ./CompilerContainer/Keys/authorized_keys:/config/authorized_keys
- ./CompilerContainer/SourceCode:/sourcecode
ports:
- "2222:2222"
java-slave:
image: java-slave
build:
context: ./CompilerContainer
dockerfile: Java.Dockerfile
environment:
USER_NAME: runner
volumes:
- ./CompilerContainer/Keys:/config/.ssh
- ./CompilerContainer/SourceCode:/config/sourcecode
ports:
- "2223:2222"
gcc-slave:
image: ghcr.io/untitlecms/gcc-sandbox:v0
volumes:
- ./CompilerContainer/Keys/authorized_keys:/config/authorized_keys
- ./CompilerContainer/SourceCode:/sourcecode
ports:
- "2224:2222"
runner:
image: ghcr.io/untitlecms/code-runner-service:v0
build:
context: ./
dockerfile: Dockerfile
ports:
- 4000:3000
environment:
PYTHON_SANDBOX_USER: runner
PYTHON_SANDBOX_HOST: python-slave
PYTHON_SANDBOX_PORT: 2222
PYTHON_SANDBOX_KEY: /keys/id_rsa
JAVA_SANDBOX_USER: runner
JAVA_SANDBOX_HOST: java-slave
JAVA_SANDBOX_PORT: 2222
JAVA_SANDBOX_KEY: /keys/id_rsa
GCC_SANDBOX_USER: runner
GCC_SANDBOX_HOST: gcc-slave
GCC_SANDBOX_PORT: 2222
GCC_SANDBOX_KEY: /keys/id_rsa
LOCAL_CODE_STORAGE: /sourcecodes
EXECUTION_QUOTA: 10
MAX_EXECUTE_TIME: 100
CRON_RESET_QUOTA: '0 0 * * * *'
CACHE_LIFETIME: 1
volumes:
- ./CompilerContainer/Keys:/keys
- ./CompilerContainer/SourceCode:/sourcecodes