forked from ten-protocol/go-ten
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
106 lines (103 loc) · 2.91 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# This compose requires SGX capable CPU
version: "3.9"
networks:
default:
name: node_network
services:
host:
networks:
- default
ports:
- "80:80"
- "81:81"
- "6061:6061"
- "10000:10000"
environment:
- MGMTCONTRACTADDR=some_address
- PKSTRING=some_string
- L1HOST=some_host
- L1PORT=some_port
- ISGENESIS=some_bool
- NODETYPE=some_string
- PROFILERENABLED=some_bool
- P2PPUBLICADDRESS=some_string
- LOGLEVEL=some_int
labels:
com.datadoghq.ad.check_names: '["openmetrics"]'
com.datadoghq.ad.init_configs: '[{}]'
com.datadoghq.ad.instances: |
[
{
"openmetrics_endpoint": "http://host:14000/debug/metrics/prometheus",
"namespace": "host",
"metrics": [
".*"
]
}
]
image: "${DOCKER_HOST_IMAGE}"
entrypoint: [
"/home/obscuro/go-obscuro/go/host/main/main",
"--l1NodeHost=$L1HOST",
"--l1NodePort=$L1PORT",
"--enclaveRPCAddresses=enclave:11000",
"--managementContractAddress=$MGMTCONTRACTADDR",
"--privateKey=$PKSTRING",
"--clientRPCHost=0.0.0.0",
"--isGenesis=$ISGENESIS",
"--nodeType=$NODETYPE",
"--logLevel=$LOGLEVEL",
"--logPath=sys_out",
"--profilerEnabled=$PROFILERENABLED",
"--p2pPublicAddress=$P2PPUBLICADDRESS"
]
enclave:
devices:
- /dev/sgx_enclave
- /dev/sgx_provision
networks:
- default
ports:
- "6060:6060"
environment:
- OE_SIMULATION=0
- MGMTCONTRACTADDR=some_address
- HOSTID=some_address
- NODETYPE=some_string
- PROFILERENABLED=some_bool
- P2PPUBLICADDRESS=some_string
- LOGLEVEL=some_int
- SEQUENCERID=some_address
- PCCS_ADDR
image: "${DOCKER_ENCLAVE_IMAGE}"
entrypoint: [
"/home/obscuro/go-obscuro/go/enclave/main/entry.sh",
"ego", "run", "/home/obscuro/go-obscuro/go/enclave/main/main",
"--hostID=$HOSTID",
"--address=:11000",
"--nodeType=$NODETYPE",
"--managementContractAddress=$MGMTCONTRACTADDR",
"--hostAddress=host:10000",
"--willAttest",
"--useInMemoryDB=false",
"--edgelessDBHost=edgelessdb",
"--profilerEnabled=$PROFILERENABLED",
"--hostAddress=$P2PPUBLICADDRESS",
"--logPath=sys_out",
"--logLevel=$LOGLEVEL",
"--sequencerID=$SEQUENCERID",
"--messageBusAddress=$MSGBUSCONTRACTADDR"
]
edgelessdb:
devices:
- /dev/sgx_enclave
- /dev/sgx_provision
networks:
- default
environment:
- EDG_EDB_CERT_DNS=edgelessdb
- PCCS_ADDR
ports:
- "3306:3306"
- "8080:8080"
image: ghcr.io/edgelesssys/edgelessdb-sgx-4gb:v0.3.2