forked from kodadot/stick
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.22 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
services:
db:
container_name: subsquid_db
image: postgres:15
environment:
POSTGRES_DB: squid
POSTGRES_PASSWORD: postgres
shm_size: 1gb
ports:
- "${DB_PORT}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d squid"]
interval: 5s
timeout: 5s
retries: 5
migrator:
build: .
environment:
- DB_NAME=squid
- DB_PORT=5432
- DB_HOST=db
- DB_PASS=postgres
command: ["npm", "run", "db:migrate"]
depends_on:
db:
condition: service_healthy
api:
build: .
environment:
- DB_NAME=squid
- DB_PORT=5432
- DB_HOST=db
- DB_PASS=postgres
- GQL_PORT=4350
ports:
- "4350:4350"
command: ["sqd", "serve:prod"]
depends_on:
migrator:
condition: service_completed_successfully
processor:
build: .
environment:
- DB_NAME=squid
- DB_PORT=5432
- DB_HOST=db
- DB_PASS=postgres
- SUBSTRATE_HOST=${SUBSTRATE_HOST}
ports:
- "3000:3000"
command: ["sqd", "process:prod"]
depends_on:
migrator:
condition: service_completed_successfully
extra_hosts:
- "host.docker.internal:host-gateway"