-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
75 lines (70 loc) · 1.68 KB
/
compose.yaml
File metadata and controls
75 lines (70 loc) · 1.68 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
66
67
68
69
70
71
72
73
74
services:
website:
build: website
expose:
- 3000
depends_on:
evaluator:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "localhost:3000"]
interval: 5s
timeout: 5s
retries: 5
start_interval: 1s
start_period: 5s
environment:
CODERUNNER_BACKEND_URL: http://evaluator:7800
CODERUNNER_BACKEND_API_PATH: /api/v1/evaluate
website-proxy:
build: website_proxy
environment:
- WEBSITE_PROXY_NGINX_STATUS_TOKEN=super_secret # Change in prod!
ports:
- 127.0.0.1:80:80
depends_on:
website:
condition: service_healthy
evaluator:
build: evaluator
# seems needed for nsjail
privileged: true
ports:
- 7800:7800
environment:
- RUST_LOG=debug
- REDIS_LINKS_HOST=redis://links-valkey:7900
healthcheck:
test: ["CMD", "curl", "-f", "localhost:7800/liveness"]
interval: 5s
timeout: 10s
retries: 5
start_interval: 1s
start_period: 10s
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
cgroup: host
depends_on:
links-valkey:
condition: service_healthy
statserver:
build: statserver
environment:
- PORT=9898
- WEBSITE_PROXY_NGINX_STATUS_TOKEN=super_secret # Change in prod!
- REDIS_LINKS_HOST=links-valkey
- REDIS_LINKS_PORT=7900
ports:
- "127.0.0.1:9898:9898"
links-valkey:
build: valkey
environment:
- PORT=7900
- CONFIG_NAME=links
healthcheck:
test: ["CMD-SHELL", "valkey-cli", "-p", "$$PORT", "ping"]
interval: 5s
timeout: 10s
retries: 5
start_interval: 1s
start_period: 10s