forked from hashgraph/hedera-mirror-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
140 lines (132 loc) · 4.14 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: "3.7"
services:
citus:
image: xinatswirlds/citus:11.2.0-alpine
deploy:
replicas: 0
environment:
PGDATA: /var/lib/postgresql/data
# These should all be changed from the default before running in production
GRAPHQL_PASSWORD: mirror_graphql_pass
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
SCHEMA_V2: "true"
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
db:
image: postgres:14-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
graphql:
image: gcr.io/mirrornode/hedera-mirror-graphql:0.77.0-SNAPSHOT
pull_policy: always
environment:
HEDERA_MIRROR_GRAPHQL_DB_HOST: db
SPRING_CONFIG_ADDITIONAL_LOCATION: file:/usr/etc/hedera-mirror-graphql/
ports:
- 8083:8083
restart: unless-stopped
tty: true
volumes:
- ./application.yml:/usr/etc/hedera-mirror-graphql/application.yml
grpc:
image: gcr.io/mirrornode/hedera-mirror-grpc:0.77.0-SNAPSHOT
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:0.77.0-SNAPSHOT
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:0.77.0-SNAPSHOT
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-alpine
ports:
- 6379:6379
restart: unless-stopped
stop_grace_period: 2m
stop_signal: SIGTERM
tty: true
rest:
image: gcr.io/mirrornode/hedera-mirror-rest:0.77.0-SNAPSHOT
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:0.77.0-SNAPSHOT
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:0.77.0-SNAPSHOT
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