-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
104 lines (95 loc) · 2.08 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
x-defaults: &defaults
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
dragonfly:
condition: service_healthy
build: &build
context: .
dockerfile: Dockerfile
args: &build-args
DATABASE_URL: ${DATABASE_URL}
TENDERMINT_URL: ${TENDERMINT_URL}
CACHE_URL: ${CACHE_URL}
WEBSERVER_PORT: ${WEBSERVER_PORT}
environment: &env-vars
<<: *build-args
command: "./service \
--tendermint-url ${TENDERMINT_URL} \
--database-url ${DATABASE_URL}"
extra_hosts:
- "host.docker.internal:host-gateway"
include:
- docker-compose-db.yml
services:
chain:
<<: *defaults
image: namada/chain-indexer
command: "./service \
--tendermint-url ${TENDERMINT_URL} \
--database-url ${DATABASE_URL} \
--initial-query-retry-time=15"
build:
<<: *build
args:
<<: *build-args
PACKAGE: chain
governance:
<<: *defaults
image: namada/governance-indexer
build:
<<: *build
args:
<<: *build-args
PACKAGE: governance
pos:
<<: *defaults
image: namada/pos-indexer
build:
<<: *build
args:
<<: *build-args
PACKAGE: pos
rewards:
<<: *defaults
image: namada/rewards-indexer
build:
<<: *build
args:
<<: *build-args
PACKAGE: rewards
parameters:
<<: *defaults
image: namada/parameters-indexer
build:
<<: *build
args:
<<: *build-args
PACKAGE: parameters
transactions:
<<: *defaults
image: namada/transaction-indexer
build:
<<: *build
args:
<<: *build-args
PACKAGE: transactions
webserver:
image: namada/webserver-indexer
build:
context: .
dockerfile: Dockerfile
args:
PACKAGE: webserver
command: "./service"
ports:
- ${WEBSERVER_PORT}:5001
environment:
<<: *env-vars
healthcheck:
test: curl --fail http://localhost:5001/health || exit 1
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped