-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
81 lines (78 loc) · 2.26 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
75
76
77
78
79
80
81
version: '3.2'
services:
kbs:
# build:
# context: .
# dockerfile: Dockerfile.kbs
image: trustee-registry.cn-hangzhou.cr.aliyuncs.com/instance/kbs: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: Dockerfile.as-grpc
image: trustee-registry.cn-hangzhou.cr.aliyuncs.com/instance/as:latest
ports:
- "50004:50004"
restart: always
environment:
RUST_LOG: debug
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
as-restful:
# build:
# context: .
# dockerfile: Dockerfile.as-restful
image: trustee-registry.cn-hangzhou.cr.aliyuncs.com/instance/as-restful:latest
ports:
- "50005:50005"
restart: always
environment:
RUST_LOG: debug
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: [
"restful-as",
"--socket",
"0.0.0.0:50005",
"--config-file",
"/etc/as-config.json"
]
depends_on:
- rvps
rvps:
image: trustee-registry.cn-hangzhou.cr.aliyuncs.com/instance/rvps:latest
# build:
# context: .
# dockerfile: Dockerfile.rvps
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