forked from subquery/cosmos-subql-starter
-
Notifications
You must be signed in to change notification settings - Fork 10
/
prod-docker-compose.yml
73 lines (70 loc) · 1.76 KB
/
prod-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
61
62
63
64
65
66
67
68
69
70
71
72
73
version: "3"
services:
postgres:
build:
context: .
dockerfile: ./docker/plv8.dockerfile
ports:
- 5432:5432
environment:
POSTGRES_USER: "subquery"
POSTGRES_PASSWORD: "subquery"
POSTGRES_DB: "subquery"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U subquery"]
interval: 5s
timeout: 5s
retries: 5
subquery-node:
build:
context: .
dockerfile: ./docker/node.dockerfile
restart: always
depends_on:
"postgres":
condition: service_healthy
environment:
DB_USER: "subquery"
DB_PASS: "subquery"
DB_DATABASE: "subquery"
DB_HOST: postgres
DB_PORT: 5432
START_BLOCK: "1"
NETWORK_ENDPOINT: "http://fetch-node:26657"
CHAIN_ID: "fetchchain"
DATABASE_URL: "postgres://subquery:subquery@postgres/subquery"
SHADOW_DATABASE_URL: "postgres://subquery:subquery@postgres/subquery_shadow"
ROOT_DATABASE_URL: "postgres://subquery:subquery@postgres/postgres"
command:
- -f=/app
- --db-schema=app
- --batch-size=1
- --disable-historical=true
healthcheck:
test: ["CMD", "curl", "-f", "http://subquery-node:3000/ready"]
interval: 3s
timeout: 5s
retries: 10
graphql-engine:
build:
context: .
dockerfile: ./docker/api.dockerfile
ports:
- 3000:3000
depends_on:
"postgres":
condition: service_healthy
"subquery-node":
condition: service_started
restart: always
environment:
DB_USER: "subquery"
DB_PASS: "subquery"
DB_DATABASE: "subquery"
DB_HOST: postgres
DB_PORT: 5432
STARTUP_DELAY: 2s
command:
- --name=app
- --playground
- --indexer=http://subquery-node:3000