-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
189 lines (174 loc) · 5.5 KB
/
docker-compose.yaml
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
services:
chain:
container_name: chain
image: ghcr.io/foundry-rs/foundry:latest
ports: ["${CHAIN_RPC}:8545"]
command: ["anvil --host=0.0.0.0 --chain-id=1337 --base-fee=0"]
healthcheck: { interval: 1s, retries: 10, test: cast block }
ipfs:
container_name: ipfs
image: ipfs/kubo:v0.27.0
ports: ["${IPFS_RPC}:5001"]
healthcheck: { interval: 1s, retries: 10, test: ipfs id }
postgres:
container_name: postgres
image: postgres:14.5-alpine
ports: ["${POSTGRES}:5432"]
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
volumes:
- ./postgres/setup.sql:/docker-entrypoint-initdb.d/setup.sql:ro
environment:
POSTGRES_INITDB_ARGS: "--encoding UTF8 --locale=C"
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: postgres
healthcheck: { interval: 1s, retries: 10, test: pg_isready -U postgres }
graph-node:
container_name: graph-node
build: { context: "graph-node" }
depends_on:
chain: { condition: service_healthy }
ipfs: { condition: service_healthy }
postgres: { condition: service_healthy }
stop_signal: SIGKILL
ports:
- ${GRAPH_NODE_GRAPHQL}:8000
- ${GRAPH_NODE_ADMIN}:8020
- ${GRAPH_NODE_STATUS}:8030
- ${GRAPH_NODE_METRICS}:8040
volumes:
- ./.env:/opt/.env:ro
healthcheck:
{ interval: 1s, retries: 10, test: curl -f http://127.0.0.1:8030 }
graph-contracts:
container_name: graph-contracts
build: { context: graph-contracts }
depends_on:
graph-node: { condition: service_healthy }
volumes:
- ./.env:/opt/.env:ro
- ./contracts.json:/opt/contracts.json:ro
tap-contracts:
container_name: tap-contracts
build: { context: tap-contracts }
depends_on:
graph-contracts: { condition: service_completed_successfully }
volumes:
- ./.env:/opt/.env:ro
- ./contracts.json:/opt/contracts.json:ro
block-oracle:
container_name: block-oracle
build: { context: block-oracle }
depends_on:
tap-contracts: { condition: service_completed_successfully }
stop_signal: SIGKILL
volumes:
- ./.env:/opt/.env:ro
- ./contracts.json:/opt/contracts.json:ro
healthcheck:
interval: 1s
retries: 600
test: curl -f http://127.0.0.1:9090/metrics
indexer-agent:
container_name: indexer-agent
build: { context: indexer-agent }
depends_on:
block-oracle: { condition: service_healthy }
ports: ["${INDEXER_MANAGEMENT}:7600"]
stop_signal: SIGKILL
volumes:
- ./.env:/opt/.env:ro
- ./contracts.json:/opt/contracts.json:ro
healthcheck:
interval: 10s
retries: 600
test: curl -f http://127.0.0.1:7600/
subgraph-deploy:
container_name: subgraph-deploy
build: { context: subgraph-deploy }
depends_on:
indexer-agent: { condition: service_healthy }
volumes:
- ./.env:/opt/.env:ro
- ./contracts.json:/opt/contracts.json:ro
indexer-service-ts:
container_name: indexer-service-ts
build: { context: indexer-service-ts }
depends_on:
subgraph-deploy: { condition: service_completed_successfully }
restart: unless-stopped # recover from segfaults on startup
ports: ["${INDEXER_SERVICE}:7601"]
stop_signal: SIGKILL
volumes:
- ./.env:/opt/.env:ro
- ./contracts.json:/opt/contracts.json:ro
gateway:
container_name: gateway
build: { context: gateway }
depends_on:
subgraph-deploy: { condition: service_completed_successfully }
ports: ["${GATEWAY}:7700"]
stop_signal: SIGKILL
volumes:
- ./.env:/opt/.env:ro
- ./contracts.json:/opt/contracts.json:ro
redpanda:
container_name: redpanda
image: docker.redpanda.com/redpandadata/redpanda:v23.3.5
ports:
- ${REDPANDA_KAFKA}:9092
- ${REDPANDA_ADMIN}:9644
- ${REDPANDA_PANDAPROXY}:8082
- ${REDPANDA_SCHEMA_REGISTRY}:8081
command:
- redpanda start
- --smp 1
- --memory 1G
- --mode dev-container
- --default-log-level=info
- --kafka-addr 0.0.0.0:9092
- --advertise-kafka-addr redpanda:9092
- --pandaproxy-addr 0.0.0.0:8082
- --schema-registry-addr 0.0.0.0:8081
healthcheck:
interval: 1s
retries: 600
test: rpk topic list --brokers="localhost:9092"
tap-escrow-manager:
container_name: tap-escrow-manager
build: { context: tap-escrow-manager }
depends_on:
redpanda: { condition: service_healthy }
subgraph-deploy: { condition: service_completed_successfully }
stop_signal: SIGKILL
volumes:
- ./.env:/opt/.env:ro
- ./contracts.json:/opt/contracts.json:ro
tap-agent:
container_name: tap-agent
build: { context: tap-agent }
depends_on:
indexer-agent: { condition: service_healthy }
stop_signal: SIGKILL
volumes:
- ./.env:/opt/.env:ro
- ./contracts.json:/opt/contracts.json:ro
tap-aggregator:
container_name: tap-aggregator
build: { context: tap-aggregator }
depends_on:
tap-contracts: { condition: service_completed_successfully }
ports: ["${TAP_AGGREGATOR}:7610"]
stop_signal: SIGKILL
volumes:
- ./.env:/opt/.env:ro
- ./contracts.json:/opt/contracts.json:ro
indexer-service-rs:
container_name: indexer-service-rs
build: { context: indexer-service-rs }
depends_on:
indexer-agent: { condition: service_healthy }
ports: ["${INDEXER_SERVICE_RS}:7602"]
stop_signal: SIGKILL
volumes:
- ./.env:/opt/.env:ro
- ./contracts.json:/opt/contracts.json:ro