-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
209 lines (202 loc) · 4.73 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
version: "3.5"
services:
cardano-node:
image: naviocean/cardano-node:latest
networks: [cardano]
restart: on-failure
stop_signal: SIGINT
stop_grace_period: 10s
ports:
- 3001:3001
volumes:
- type: volume
source: node-ipc
target: /cardano/socket
- type: volume
source: node-data
target: /cardano/db
- type: bind
source: ./configs
target: /cardano/configs
read_only: true
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
environment:
- HOSTNAME=explorer.hawking.network
- NETWORK=testnet
- CNODE_PORT=3001
command: ["start-relay.sh"]
cardano-monitor:
image: naviocean/cardano-monitor:latest
depends_on:
- cardano-node
ports:
- 9090:9090
volumes:
- type: volume
source: monitor-db
target: /cardano/data
networks: [cardano]
restart: on-failure
stop_grace_period: 10s
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
environment:
- WEB_PORT:9090
command: ["start-monitoring.sh"]
postgres:
image: postgres:13-alpine
secrets:
- postgres_db
- postgres_password
- postgres_user
shm_size: "2gb"
volumes:
- type: volume
source: postgres-data
target: /var/lib/postgresql/data
networks: [cardano]
restart: on-failure
environment:
- POSTGRES_LOGGING=true
- POSTGRES_DB_FILE=/run/secrets/postgres_db
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
- POSTGRES_USER_FILE=/run/secrets/postgres_user
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
cardano-db-sync:
image: inputoutput/cardano-db-sync:${CARDANO_DB_SYNC_VERSION:-9.0.0}
command:
[
"--config",
"/config/cardano-db-sync/config.json",
"--socket-path",
"/node-ipc/node.socket",
"--state-dir",
"/data",
]
depends_on:
- cardano-node
- postgres
secrets:
- postgres_password
- postgres_user
- postgres_db
volumes:
- type: bind
source: ./configs/${NETWORK:-testnet}/${NETWORK:-testnet}-db-sync-config.json
target: /config/cardano-db-sync/config.json
- type: volume
source: db-sync-data
target: /data
- type: volume
source: node-ipc
target: /node-ipc
networks: [cardano]
restart: on-failure
environment:
- EXTENDED=true
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- NETWORK=testnet
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
hasura:
image: naviocean/cardano-graphql-hasura:latest
depends_on:
- postgres
networks: [cardano]
restart: on-failure
secrets:
- postgres_db
- postgres_password
- postgres_user
environment:
- HASURA_GRAPHQL_ENABLE_CONSOLE=true
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
cardano-graphql:
image: naviocean/cardano-graphql:latest
ports:
- 3100:3100
depends_on:
- postgres
- cardano-node
volumes:
- type: volume
source: node-ipc
target: /node-ipc
- type: bind
source: ./configs
target: /configs
read_only: true
restart: on-failure
networks: [cardano]
secrets:
- postgres_db
- postgres_password
- postgres_user
environment:
- NETWORK=testnet
- METADATA_SERVER_URI=https://tokens.cardano.org
- HASURA_URI=http://hasura:8080
- ALLOW_INTROSPECTION=true
- CACHE_ENABLED=true
- LOGGER_MIN_SEVERITY=${LOGGER_MIN_SEVERITY:-info}
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
cardano-explorer:
image: naviocean/cardano-explorer:latest
depends_on:
- cardano-graphql
ports:
- 4000:4000
networks: [cardano]
restart: on-failure
environment:
- CARDANO_NETWORK=testnet
- GRAPHQL_API_PROTOCOL=http
- GRAPHQL_API_HOST=192.168.1.219
- GRAPHQL_API_PORT=3100
- GRAPHQL_API_PATH=graphql
- DEBUG=true
- PORT=4000
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
secrets:
postgres_db:
file: ./configs/secrets/postgres_db
postgres_password:
file: ./configs/secrets/postgres_password
postgres_user:
file: ./configs/secrets/postgres_user
volumes:
node-data: {}
node-ipc: {}
monitor-db: {}
postgres-data: {}
db-sync-data: {}
networks:
cardano:
driver: bridge