-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.05 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
version: "3"
services:
squid-db:
container_name: subsquid_db
image: postgres:14
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_PASSWORD: ${DB_PASS}
volumes:
- ./docker_data/subsquid_data:/var/lib/postgresql/data
networks:
- archive_ice-snow-subsquid
ports:
- "${DB_PORT}:5432"
squid-processor:
container_name: squid_processor
build:
context: .
target: processor
restart: on-failure
environment:
- ARCHIVE_HOST
- ARCHIVE_PORT
- DB_HOST
- DB_NAME
- DB_PASS
depends_on:
- squid-db
networks:
- archive_ice-snow-subsquid
ports:
- "${PROCESSOR_PROMETHEUS_PORT}:3000"
squid-graphql:
container_name: squid_graphql
build:
context: .
target: query-node
depends_on:
- squid-db
- squid-processor
environment:
- DB_HOST
- DB_NAME
- DB_PASS
networks:
- archive_ice-snow-subsquid
ports:
- "${GQL_PORT}:4000"
networks:
archive_ice-snow-subsquid:
external: true