forked from hashgraph/hedera-mirror-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (34 loc) · 933 Bytes
/
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
version: '3.3'
services:
mirror-node-postgres:
image: postgres:11.4-alpine
restart: unless-stopped
stop_grace_period: 2m
stop_signal: SIGTERM
tty: true
env_file:
- config/.env
volumes:
- ./MirrorNodePostgresData:/var/lib/postgresql/data
ports:
- 5433:5432
mirror-node-backend:
image: hederahashgraph/mirror-node
restart: unless-stopped
environment:
- HEDERA_MIRROR_CONFIG_PATH=/usr/etc/mirror-node/config.json
- HEDERA_MIRROR_DB_URL=jdbc:postgresql://mirror-node-postgres:5432/${POSTGRES_DB}
volumes:
- ./MirrorNodeData:/var/lib/mirror-node
- ./config:/usr/etc/mirror-node
# this runs the REST API for mirror node
mirror-node-api:
image: hederahashgraph/mirror-node-api
restart: unless-stopped
environment:
- DB_HOST=mirror-node-postgres
tty: true
env_file:
- config/.env
ports:
- 5551:5551