-
Notifications
You must be signed in to change notification settings - Fork 88
/
docker-compose.yml
74 lines (71 loc) · 2.02 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.2'
services:
kbs:
build:
context: .
dockerfile: kbs/docker/coco-as-grpc/Dockerfile
#image: ghcr.io/confidential-containers/key-broker-service:latest
command: [
"/usr/local/bin/kbs",
"--config-file",
"/etc/kbs-config.toml",
]
restart: always # keep the server running
ports:
- "8080:8080"
volumes:
- ./kbs/data/kbs-storage:/opt/confidential-containers/kbs/repository:rw
- ./kbs/config/public.pub:/opt/confidential-containers/kbs/user-keys/public.pub
- ./kbs/config/docker-compose/kbs-config.toml:/etc/kbs-config.toml
depends_on:
- as
as:
build:
context: .
dockerfile: attestation-service/docker/as-grpc/Dockerfile
#image: ghcr.io/confidential-containers/attestation-service:latest
ports:
- "50004:50004"
restart: always
volumes:
- ./kbs/data/attestation-service:/opt/confidential-containers/attestation-service:rw
- ./kbs/config/as-config.json:/etc/as-config.json:rw
- ./kbs/config/sgx_default_qcnl.conf:/etc/sgx_default_qcnl.conf:rw
command: [
"grpc-as",
"--socket",
"0.0.0.0:50004",
"--config-file",
"/etc/as-config.json"
]
depends_on:
- rvps
rvps:
#image: ghcr.io/confidential-containers/reference-value-provider-service:latest
build:
context: .
dockerfile: rvps/docker/Dockerfile
restart: always # keep the server running
ports:
- "50003:50003"
volumes:
- ./kbs/data/reference-values:/opt/confidential-containers/attestation-service/reference_values:rw
- ./kbs/config/rvps.json:/etc/rvps.json:rw
keyprovider:
image: ghcr.io/confidential-containers/coco-keyprovider:latest
restart: always
ports:
- "50000:50000"
volumes:
- ./kbs/config/private.key:/etc/private.key
command: [
"coco_keyprovider",
"--socket",
"0.0.0.0:50000",
"--kbs",
"http://kbs:8080",
"--auth-private-key",
"/etc/private.key"
]
depends_on:
- kbs