-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (72 loc) · 1.95 KB
/
docker-compose.yml
File metadata and controls
77 lines (72 loc) · 1.95 KB
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
networks:
default:
name: tfgrid_bknd
external: true
services:
cockroachdb:
image: cockroachdb/cockroach:v22.2.15
restart: always
ports:
- "127.0.0.1:26257:26257"
- "127.0.0.1:8080:8080"
command: start-single-node --insecure
volumes:
- /cockroach/cockroach-data
cockroachdb-init:
depends_on:
- cockroachdb
image: cockroachdb/cockroach:v22.2.15
volumes:
- ./setup_db.sh:/setup_db.sh
entrypoint: "/bin/bash"
command: /setup_db.sh
restart: on-failure
ingest:
depends_on:
cockroachdb-init:
condition: service_completed_successfully
restart: on-failure
image: subsquid/substrate-ingest:1
volumes:
- "./typesBundle.json:/configs/typesBundle.json"
command:
[
"-e",
"${WS_ENDPOINT}",
"-c",
"20",
"--out",
"postgres://root@cockroachdb:26257/defaultdb",
"--types-bundle",
"/configs/typesBundle.json",
"--start-block",
"${START_HEIGHT}"
]
gateway:
depends_on:
cockroachdb-init:
condition: service_completed_successfully
image: subsquid/substrate-gateway:2.7.0
environment:
DATABASE_MAX_CONNECTIONS: 5
RUST_LOG: "actix_web=info,actix_server=info"
command: [ "--database-url", "postgres://root@cockroachdb:26257/defaultdb" ]
# Published for local dev (localhost:8888) and browser access.
# In production, the processor reaches the gateway via service name
# (http://gateway:8000/graphql) on the shared network. Comment out
# these ports if you don't need host access.
ports:
- "8888:8000"
explorer:
depends_on:
cockroachdb-init:
condition: service_completed_successfully
image: subsquid/substrate-explorer:firesquid
environment:
DB_TYPE: cockroach
DB_HOST: cockroachdb
DB_PORT: "26257"
DB_NAME: "defaultdb"
DB_USER: "root"
ports:
- "4444:3000"