-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-full.yml
136 lines (126 loc) · 3.75 KB
/
docker-compose-full.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
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
version: "3.2"
services:
node:
container_name: societal-node
image: societal/societal-node:solo-latest
working_dir: /societal-node
ports:
- "9944:9944"
- "9933:9933"
environment:
- CARGO_HOME=/var/www/societal-node/.cargo
volumes:
- .:/var/www/societal-node
- type: bind
source: ./.local
target: /root/.local
command: /usr/local/bin/societal-node --dev --enable-offchain-indexing true --rpc-external --ws-external --rpc-cors=all --unsafe-ws-external --unsafe-rpc-external
archive-db:
container_name: indexer-archive-db
image: postgres:15 # CockroachDB cluster might be a better fit for production deployment
restart: always
volumes:
- /var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: squid-archive
ports:
- 5432:5432
ingest:
container_name: indexer-ingest
depends_on:
- archive-db
- node
restart: on-failure
image: subsquid/substrate-ingest:firesquid
command: [
"-e", "ws://host.docker.internal:9944",
"-c", "5", # allow up to 20 pending requests for the above endpoint (default is 5)
# "--start-block", "1000000", # uncomment to specify a non-zero start block
"--out", "postgres://postgres:postgres@archive-db:5432/squid-archive"
]
gateway:
container_name: indexer-gateway
depends_on:
- archive-db
image: subsquid/substrate-gateway:firesquid
environment:
RUST_LOG: "substrate_gateway=info,actix_server=info"
command: [
"--database-url", "postgres://postgres:postgres@archive-db:5432/squid-archive",
"--database-max-connections", "3", # max number of concurrent database connections
# "--evm-support" # uncomment for chains with Frontier EVM pallet
# (e.g. Moonbeam/Moonriver or Astar/Shiden)
]
ports:
- "8888:8000"
# Explorer service is optional.
# It provides rich GraphQL API for querying archived data.
# Many developers find it very useful for exploration and debugging.
explorer:
container_name: indexer-explorer
depends_on:
- archive-db
image: subsquid/substrate-explorer:firesquid
environment:
DB_TYPE: postgres # set to `cockroach` for Cockroach DB
DB_HOST: archive-db
DB_PORT: "5432"
DB_NAME: "squid-archive"
DB_USER: "postgres"
DB_PASS: "postgres"
ports:
- "4444:3000"
processor-db:
container_name: indexer-processor-db
image: postgres:15
environment:
POSTGRES_USER: squid
POSTGRES_DB: squid
POSTGRES_PASSWORD: squid
ports:
- "23798:5432"
processor:
container_name: indexer-processor
depends_on:
- processor-db
- node
image: societal/node-indexer:release-democracy-latest
environment:
APP_TYPE: processor
DB_NAME: squid
DB_USER: squid
DB_PASS: squid
DB_PORT: 23798
DB_HOST: host.docker.internal
ARCHIVE_URL: http://host.docker.internal:8888/graphql
WEBSOCKET_URL: ws://host.docker.internal:9944
ports:
- "4001:4000"
processor-query-node:
container_name: indexer-processor-query-node
depends_on:
- processor-db
image: societal/node-indexer:release-democracy-latest
environment:
APP_TYPE: query-node
DB_NAME: squid
DB_USER: squid
DB_PASS: squid
DB_PORT: 23798
DB_HOST: host.docker.internal
ports:
- "4350:4000"
client:
container_name: societal-client
depends_on:
- processor-query-node
- node
image: societal/societal-client:latest
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_PROVIDER_SOCKET=ws://127.0.0.1:9944
volumes:
societal-node-data: