-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
111 lines (108 loc) · 2.86 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
107
108
109
110
111
version: '3.5'
services:
network-db:
image: postgres
ports:
- ${POSTGRES_PORT:-5433}:5432
environment:
POSTGRES_DB: ${POSTGRES_DB:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-root}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
webserver:
image: indy-explorer
depends_on:
- network-db
command: "bash -c 'sleep 100; ./scripts/start_webserver.sh;'"
environment:
- ANONYMOUS=${ANONYMOUS}
- DOCKERHOST=${DOCKERHOST}
- GENESIS_URL=${GENESIS_URL}
- HEADER_BRAND=${HEADER_BRAND:-Hyperledger Indy}
- IP=${IP}
- IPS=${IPS}
- LEDGER_CACHE_PATH=${LEDGER_CACHE_PATH}
- LEDGER_INSTANCE_NAME=${LEDGER_INSTANCE_NAME:-localhost}
- LEDGER_SEED=${LEDGER_SEED}
- LOG_LEVEL=${LOG_LEVEL}
- MAX_FETCH=${MAX_FETCH:-50000}
- POSTGRES_DB=${POSTGRES_DB:-postgres}
- POSTGRES_HOST=${POSTGRES_HOST:-network-db}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-root}
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- REGISTER_NEW_DIDS=${REGISTER_NEW_DIDS:-True}
- RESYNC_TIME=${RESYNC_TIME:-120000}
- RUST_LOG=${RUST_LOG}
volumes:
- ./packages/model:/home/indy/packages/model
- ./packages/client:/home/indy/packages/client
- webserver-cli:/home/indy/.indy-cli
- node1-data:/home/indy/ledger
ports:
- ${WEB_SERVER_HOST_PORT:-9000}:8000
- 4000:4000
node1:
image: indy-explorer-node
command: "bash -c './scripts/start_node.sh 1'"
ports:
- 9701:9701
- 9702:9702
environment:
- IP=${IP}
- IPS=${IPS}
- DOCKERHOST=${DOCKERHOST}
- LOG_LEVEL=${LOG_LEVEL}
- RUST_LOG=${RUST_LOG}
volumes:
- node1-data:/home/indy/ledger
node2:
image: indy-explorer-node
command: "bash -c './scripts/start_node.sh 2'"
ports:
- 9703:9703
- 9704:9704
environment:
- IP=${IP}
- IPS=${IPS}
- DOCKERHOST=${DOCKERHOST}
- LOG_LEVEL=${LOG_LEVEL}
- RUST_LOG=${RUST_LOG}
volumes:
- node2-data:/home/indy/ledger
node3:
image: indy-explorer-node
command: "bash -c './scripts/start_node.sh 3'"
ports:
- 9705:9705
- 9706:9706
environment:
- IP=${IP}
- IPS=${IPS}
- DOCKERHOST=${DOCKERHOST}
- LOG_LEVEL=${LOG_LEVEL}
- RUST_LOG=${RUST_LOG}
volumes:
- node3-data:/home/indy/ledger
node4:
image: indy-explorer-node
command: "bash -c './scripts/start_node.sh 4'"
ports:
- 9707:9707
- 9708:9708
environment:
- IP=${IP}
- IPS=${IPS}
- DOCKERHOST=${DOCKERHOST}
- LOG_LEVEL=${LOG_LEVEL}
- RUST_LOG=${RUST_LOG}
volumes:
- node4-data:/home/indy/ledger
volumes:
client-data:
webserver-cli:
webserver-ledger:
node1-data:
node2-data:
node3-data:
node4-data:
nodes-data: