-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
59 lines (59 loc) · 1.88 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
version: "3.8"
services:
scheduler:
image: ocurrent/ocluster-scheduler:live
platform: linux
command:
- --secrets-dir=/capnp-secrets
- --capnp-secret-key-file=/capnp-secrets/key.pem
- --capnp-listen-address=tcp:0.0.0.0:9000
- --capnp-public-address=tcp:scheduler:9000
- --pools=linux-x86_64,linux-arm64,linux-ppc64
- --state-dir=/var/lib/ocluster-scheduler
- --default-clients=base-builder
init: true
ports:
- "9000:9000"
volumes:
- 'scheduler-data:/var/lib/ocluster-scheduler'
- 'capnp-secrets:/capnp-secrets'
base-builder:
build: .
command:
- --confirm=harmless
- --submission-service=/capnp-secrets/submit-base-builder.cap
init: true
restart: on-failure # (wait for the scheduler to write the submission cap)
ports:
- "8080:8080"
volumes:
- 'base-builder-data:/var/lib/ocurrent'
- "capnp-secrets:/capnp-secrets"
worker:
build:
dockerfile: docker/worker/Dockerfile
context: .
platform: linux
command:
- --connect=/capnp-secrets/pool-linux-x86_64.cap
# - --connect=/capnp-secrets/pool-linux-arm64.cap # NOTE replace with arm64 if running on macos/arm64
- --name=local
- --allow-push=ocurrentbuilder/staging,ocurrent/opam-staging
- --capacity=1
- --state-dir=/var/lib/ocluster
- --obuilder-store=rsync:/var/cache/obuilder
- --rsync-mode=hardlink
- --obuilder-healthcheck=0
- --verbose
init: true
privileged: true # required for the Docker in Docker container to work
restart: on-failure # (wait for the scheduler to write the pool cap)
volumes:
- 'worker-data:/var/lib/ocluster'
- '/var/run/docker.sock:/var/run/docker.sock'
- 'capnp-secrets:/capnp-secrets:ro'
volumes:
base-builder-data:
worker-data:
scheduler-data:
capnp-secrets: