forked from hashgraph/hedera-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (45 loc) · 1.52 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
version: "3.3"
services:
node_0:
container_name: node_0
image: ${REGISTRY_PREFIX}services-node:${TAG}
environment:
- NODE_ID=0
volumes:
- "./hedera-node/configuration/compose:/opt/hedera/services/config-mount"
- "./compose-network/node0/saved:/opt/hedera/services/data/saved"
- "./compose-network/node0/output:/opt/hedera/services/output"
ports:
- 50213:50211
node_1:
container_name: node_1
image: ${REGISTRY_PREFIX}services-node:${TAG}
environment:
- NODE_ID=1
volumes:
- "./hedera-node/configuration/compose:/opt/hedera/services/config-mount"
- "./compose-network/node1/saved:/opt/hedera/services/data/saved"
- "./compose-network/node1/output:/opt/hedera/services/output"
ports:
- 50214:50211
node_2:
container_name: node_2
image: ${REGISTRY_PREFIX}services-node:${TAG}
environment:
- NODE_ID=2
volumes:
- "./hedera-node/configuration/compose:/opt/hedera/services/config-mount"
- "./compose-network/node2/saved:/opt/hedera/services/data/saved"
- "./compose-network/node2/output:/opt/hedera/services/output"
ports:
- 50215:50211
postgres:
container_name: 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"
- "./hedera-node/configuration/compose/init.db:/docker-entrypoint-initdb.d"