-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 1.22 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
version: "3.8"
services:
scheduler:
image: ocurrent/ocluster-scheduler:live
command:
- --secrets-dir=/capnp-secrets
- --capnp-secret-key-file=/capnp-secrets/key.cap
- --capnp-listen-address=tcp:0.0.0.0:9000
- --capnp-public-address=tcp:scheduler:9000
- --state-dir=/var/lib/ocluster-scheduler
- --pools=solver
- --default-clients=docker
init: true
ports:
- "9000:9000"
volumes:
- 'scheduler-data:/var/lib/ocluster-scheduler'
- 'capnp-secrets:/capnp-secrets'
solver-worker:
# image: ocurrent/ocluster-worker:live
build:
dockerfile: Dockerfile
context: .
command:
- run-cluster
- --connect=/capnp-secrets/pool-solver.cap
- --name=solver-1
- --capacity=10 # The number of builds that can run in parallel
#- --internal-workers=15 # The number of internal-workers that handle solve per platform
- --cache-dir=/var/lib/solver-service
- --verbose
init: true
restart: on-failure # (wait for the scheduler to write the pool cap)
volumes:
- 'worker-cache:/var/lib/solver-service'
- 'capnp-secrets:/capnp-secrets:ro'
volumes:
worker-cache:
scheduler-data:
capnp-secrets: