-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
74 lines (74 loc) · 1.7 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
version: '3.7'
services:
db:
image: postgres:11
environment:
POSTGRES_USER: root
POSTGRES_HOST_AUTH_METHOD: trust
init-db:
image: jjs:latest
command:
- "jjs-setup"
- "--install-dir=/opt/jjs"
- "--data-dir=/var/lib/jjs"
- "--setup-config"
- "--sample-contest"
- "--db-url=postgres://db:5432/jjs"
- "--toolchains"
- "--touch=/var/lib/jjs/done.txt"
depends_on:
- db
environment:
RUST_LOG: debug
JJS_WAIT: tcp://db:5432
volumes:
- type: 'volume'
source: jjs_data
target: /var/lib/jjs
security_opt:
- seccomp=unconfined
apiserver:
image: jjs:latest
environment:
DATABASE_URL: postgres://db:5432/jjs
JJS_SYSROOT: /var/lib/jjs
JJS_PATH: /opt/jjs
JJS_WAIT: file:///var/lib/jjs/done.txt
JJS_HOST: "0.0.0.0"
RUST_LOG: info,apiserver=debug,util=debug,apiserver_engine=debug
JJS_SELF_ADDR: apiserver
command:
- jjs-apiserver
depends_on:
- db
- init-db
volumes:
- type: 'volume'
source: jjs_data
target: /var/lib/jjs
ports:
- "1779:1779"
invoker:
image: jjs:latest
privileged: true
command:
- /bin/jjs-invoker
environment:
DATABASE_URL: postgres://db:5432/jjs
JJS_SYSROOT: /var/lib/jjs
JJS_PATH: /opt/jjs
JJS_WAIT: file:///var/lib/jjs/done.txt
RUST_LOG: info,invoker=debug,util=debug,svaluer=debug
RUST_BACKTRACE: full
RUST_LIB_BACKTRACE: 1
command:
- jjs-invoker
depends_on:
- db
- init-db
volumes:
- type: 'volume'
source: jjs_data
target: /var/lib/jjs
volumes:
jjs_data: