-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathdocker-compose-indexer-dev.yml
59 lines (55 loc) · 1.46 KB
/
docker-compose-indexer-dev.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
version: "3.4"
services:
indexer:
image: hydra-indexer:latest
restart: unless-stopped
env_file:
- .env
environment:
- DB_NAME=indexer-db
- DB_USER=postgres
- DB_PASS=postgres
- DB_HOST=db
- DB_PORT=5432
- INDEXER_WORKERS=5
- REDIS_URI=redis://redis:6379/0
- DEBUG=index*
# - BLOCK_HEIGHT=0 <- Block height the indexer starts from. 0 by default
# - WS_PROVIDER_ENDPOINT_URI=wss://<node RPC endpoint>
# Provide type definitions if the node runtime uses non-standard types.
# - TYPES_JSON=type-defs.json
#volumes:
# - <host path to type defs>:/home/hydra/packages/hydra-indexer/type-defs.json
depends_on:
- db
command: >
sh -c "yarn db:bootstrap && yarn start:prod"
indexer-api-gateway:
image: hydra-indexer-gateway:latest
restart: unless-stopped
environment:
- WARTHOG_STARTER_DB_DATABASE=indexer-db
- WARTHOG_STARTER_DB_HOST=db
- WARTHOG_STARTER_DB_PASSWORD=${DB_PASS}
- WARTHOG_STARTER_DB_PORT=${DB_PORT}
- WARTHOG_STARTER_DB_USERNAME=${DB_USER}
- WARTHOG_STARTER_REDIS_URI=redis://redis:6379/0
- PORT=4000
ports:
- "4001:4000"
depends_on:
- redis
- db
- indexer
db:
image: postgres:12
restart: always
ports:
- "5432"
environment:
POSTGRES_PASSWORD: postgres
redis:
image: redis:6.0-alpine
restart: always
ports:
- "6379"