-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (42 loc) · 1.41 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
version: "3.3"
services:
node_0:
image: ${REGISTRY_PREFIX:-buidlerlabs/}hedera-services:${TAG:-latest}
depends_on:
- postgres
environment:
- NODE_ID=0
volumes:
- "./config:/opt/hedera/services/config-mount"
- "./compose-network/node0/saved:/opt/hedera/services/data/saved"
- "./compose-network/node0/output:/opt/hedera/services/output"
node_1:
image: ${REGISTRY_PREFIX:-buidlerlabs/}hedera-services:${TAG:-latest}
depends_on:
- postgres
environment:
- NODE_ID=1
volumes:
- "./config:/opt/hedera/services/config-mount"
- "./compose-network/node1/saved:/opt/hedera/services/data/saved"
- "./compose-network/node1/output:/opt/hedera/services/output"
node_2:
image: ${REGISTRY_PREFIX:-buidlerlabs/}hedera-services:${TAG:-latest}
depends_on:
- postgres
environment:
- NODE_ID=2
volumes:
- "./config:/opt/hedera/services/config-mount"
- "./compose-network/node2/saved:/opt/hedera/services/data/saved"
- "./compose-network/node2/output:/opt/hedera/services/output"
postgres:
hostname: hedera-postgres
image: postgres:10.9-alpine
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=swirlds
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- "./compose-network/pgdata:/var/lib/postgresql/data/pgdata"
- "./config/init.db:/docker-entrypoint-initdb.d"