forked from hashgraph/hedera-mirror-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
103 lines (96 loc) · 2.9 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
version: "3.7"
services:
db:
image: postgres:14.2-alpine
environment:
PGDATA: /var/lib/postgresql/data
POSTGRES_HOST_AUTH_METHOD: scram-sha-256
POSTGRES_INITDB_ARGS: --auth-host=scram-sha-256
# These should all be changed from the default before running in production
GRPC_PASSWORD: mirror_grpc_pass
IMPORTER_PASSWORD: mirror_importer_pass
OWNER_PASSWORD: mirror_node_pass
POSTGRES_PASSWORD: postgres_password
REST_PASSWORD: mirror_api_pass
ROSETTA_PASSWORD: mirror_rosetta_pass
ports:
- 5432:5432
restart: unless-stopped
stop_grace_period: 2m
stop_signal: SIGTERM
tty: true
volumes:
- ./db:/var/lib/postgresql/data
- ./hedera-mirror-importer/src/main/resources/db/scripts/init.sh:/docker-entrypoint-initdb.d/init.sh
grpc:
image: gcr.io/mirrornode/hedera-mirror-grpc:main
pull_policy: always
restart: unless-stopped
environment:
HEDERA_MIRROR_GRPC_DB_HOST: db
SPRING_CONFIG_ADDITIONAL_LOCATION: file:/usr/etc/hedera-mirror-grpc/
SPRING_REDIS_HOST: redis
ports:
- 5600:5600
volumes:
- ./application.yml:/usr/etc/hedera-mirror-grpc/application.yml
importer:
image: gcr.io/mirrornode/hedera-mirror-importer:main
pull_policy: always
restart: unless-stopped
environment:
HEDERA_MIRROR_IMPORTER_DB_HOST: db
SPRING_CONFIG_ADDITIONAL_LOCATION: file:/usr/etc/hedera-mirror-importer/
SPRING_REDIS_HOST: redis
volumes:
- ./application.yml:/usr/etc/hedera-mirror-importer/application.yml
monitor:
deploy:
replicas: 0
image: gcr.io/mirrornode/hedera-mirror-monitor:main
pull_policy: always
restart: unless-stopped
environment:
SPRING_CONFIG_ADDITIONAL_LOCATION: file:/usr/etc/hedera-mirror-monitor/
volumes:
- ./application.yml:/usr/etc/hedera-mirror-monitor/application.yml
redis:
image: redis:6.2.6-alpine
ports:
- 6379:6379
restart: unless-stopped
stop_grace_period: 2m
stop_signal: SIGTERM
tty: true
rest:
image: gcr.io/mirrornode/hedera-mirror-rest:main
pull_policy: always
environment:
HEDERA_MIRROR_REST_DB_HOST: db
ports:
- 5551:5551
restart: unless-stopped
tty: true
rosetta:
image: gcr.io/mirrornode/hedera-mirror-rosetta:main
pull_policy: always
environment:
HEDERA_MIRROR_ROSETTA_DB_HOST: db
ports:
- 5700:5700
restart: unless-stopped
tty: true
volumes:
- ./application.yml:/src/hedera-mirror-rosetta/application.yml
web3:
image: gcr.io/mirrornode/hedera-mirror-web3:main
pull_policy: always
environment:
HEDERA_MIRROR_WEB3_DB_HOST: db
SPRING_CONFIG_ADDITIONAL_LOCATION: file:/usr/etc/hedera-mirror-web3/
ports:
- 8545:8545
restart: unless-stopped
tty: true
volumes:
- ./application.yml:/usr/etc/hedera-mirror-web3/application.yml