-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
60 lines (56 loc) · 1.69 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
version: "3.6"
services:
indexer:
image: ghcr.io/dipdup-io/starknet-indexer:${TAG:-master}
build:
dockerfile: build/Dockerfile
context: .
env_file:
- .env
restart: always
ports:
- 127.0.0.1:7779:7779
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme}
depends_on:
- db
- hasura
logging: &starknet-indexer-logging
options:
max-size: 10m
max-file: "5"
volumes:
- /etc/starknet:/etc/starknet
db:
image: postgres:15
restart: always
volumes:
- db:/var/lib/postgresql/data
ports:
- 127.0.0.1:${POSTGRES_PORT:-5432}:5432
environment:
- POSTGRES_HOST=${POSTGRES_HOST:-db}
- POSTGRES_USER=${POSTGRES_USER:-dipdup}
- POSTGRES_DB=${POSTGRES_DB:-starknet}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-dipdup} -d ${POSTGRES_DB:-starknet}"]
interval: 10s
timeout: 5s
retries: 5
logging: *starknet-indexer-logging
hasura:
image: hasura/graphql-engine:v2.28.0
ports:
- 127.0.0.1:8080:8080
restart: always
environment:
- HASURA_GRAPHQL_DATABASE_URL=postgres://${POSTGRES_USER:-dipdup}:${POSTGRES_PASSWORD:-changeme}@${HASURA_POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-starknet}
- HASURA_GRAPHQL_ENABLE_CONSOLE=true
- HASURA_GRAPHQL_DEV_MODE=true
- HASURA_GRAPHQL_ENABLED_LOG_TYPES=startup, http-log, webhook-log, websocket-log, query-log
- HASURA_GRAPHQL_ADMIN_SECRET=${ADMIN_SECRET:-changeme}
- HASURA_GRAPHQL_UNAUTHORIZED_ROLE=user
logging: *starknet-indexer-logging
volumes:
db: