-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.cli-hw.yml
99 lines (90 loc) · 1.85 KB
/
docker-compose.cli-hw.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
version: '3'
services:
contract:
image: enigmampc/enigma_contract:${DOCKER_TAG}
stdin_open: true
tty: true
networks:
- net
hostname: contract
entrypoint:
- /bin/bash
- -c
- ./launch_ganache.bash; bash
environment:
- SGX_MODE
volumes:
- "${BUILD_CONTRACTS_PATH}:/root/enigma-contract/build/contracts"
- "shared:/root/.enigma"
ports:
- "9545:9545"
p2p:
image: enigmampc/enigma_p2p:${DOCKER_TAG}
stdin_open: true
tty: true
networks:
- net
hostname: p2p
entrypoint:
- /bin/bash
- -c
- ./start_worker.bash; bash
environment:
- NETWORK=${COMPOSE_PROJECT_NAME}
- NODES
volumes:
- "${BUILD_CONTRACTS_PATH}:/root/enigma-p2p/test/ethereum/scripts/build/contracts"
expose:
- "3346"
client:
image: enigmampc/enigma_contract:${DOCKER_TAG}
stdin_open: true
tty: true
networks:
- net
hostname: client
entrypoint:
- /bin/bash
- -c
- ./login_workers.bash; bash
environment:
- NETWORK=${COMPOSE_PROJECT_NAME}
- NODES
- SGX_MODE
volumes:
- "${BUILD_CONTRACTS_PATH}:/root/enigma-contract/build/contracts"
core:
image: enigmampc/enigma_core_hw:${DOCKER_TAG}
stdin_open: true
tty: true
hostname: core
networks:
- net
devices:
- "/dev/isgx:/dev/isgx"
km:
image: enigmampc/enigma_km_hw:${DOCKER_TAG}
stdin_open: true
tty: true
hostname: km
networks:
- net
volumes:
- "shared:/root/.enigma"
devices:
- "/dev/isgx:/dev/isgx"
nginx:
image: nginx:latest
hostname: nginx
volumes:
- "./config/nginx.conf:/etc/nginx/nginx.conf:ro"
depends_on:
- p2p
ports:
- "3333:3333"
networks:
- net
networks:
net:
volumes:
shared: