-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.test.yml
91 lines (84 loc) · 1.73 KB
/
docker-compose.test.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
version: "3"
services:
bootstrap:
hostname: bootstrap
image: enigmampc/worker_sw:${DOCKER_TAG}
external_links:
- contract
- km
depends_on:
- contract
- km
environment:
- ENIGMA_ENV
- SGX_MODE
- MIN_CONFIRMATIONS
- BOOTSTRAP="TRUE"
- BOOTSTRAP_ID=B1
- LOG_LEVEL
expose:
- "10300" # libp2p port
- "8080" # what is this?
- "3346" # gateway port
- "9229" # nodejs debugger
worker:
hostname: worker
external_links:
- contract
- km
image: enigmampc/worker_sw:${DOCKER_TAG}
depends_on:
- contract
- km
environment:
- ENIGMA_ENV
- SGX_MODE
- MIN_CONFIRMATIONS
- LOG_LEVEL
expose:
- "9229" # nodejs debugger
- "3346" # gateway port
- "10300" # libp2p
contract:
hostname: contract
external_links:
- km
image: enigmampc/contract:${DOCKER_TAG}
environment:
- SGX_MODE
- ENIGMA_ENV
- AUTO_MINER
- BLOCK_TIME
- TIME_BETWEEN_BLOCKS
- LOG_LEVEL
expose:
- "8081" # contract discovery service
- "9545" # ethereum node port
- "8001" # faucet port
km:
hostname: km
external_links:
- contract
image: enigmampc/key_management_sw:${DOCKER_TAG}
environment:
- ENIGMA_ENV
- SGX_MODE
- MIN_CONFIRMATIONS
- LOG_LEVEL
expose:
- "3040" # JSON RPC port
- "8081" # KM address discovery
client:
hostname: client
external_links:
- contract
- km
- bootstrap
image: enigmampc/client:${DOCKER_TAG}
stdin_open: true
tty: true
depends_on:
- contract
environment:
- ENIGMA_ENV
- SGX_MODE