-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
47 lines (44 loc) · 990 Bytes
/
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
version: "3.4"
services:
db:
image: postgres:16
restart: always
ports:
- "${DB_PORT}:5432"
volumes:
- /var/lib/postgresql/data
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
processor:
image: ghcr.io/threefoldtech/tfchain_graphql_processor:latest
restart: unless-stopped
build:
dockerfile: Dockerfile
context: ./
env_file:
- .env
environment:
- INDEXER_ENDPOINT_URL=${INDEXER_ENDPOINT_URL}
- WS_URL=${WS_URL}
- DB_HOST=db
- POLL_INTERVAL_MS=300
- TYPEORM_LOGGING=error
ports:
- 44233:44233
command: ["yarn", "process"]
query-node:
image: ghcr.io/threefoldtech/tfchain_graphql_query-node:latest
restart: unless-stopped
build:
dockerfile: Dockerfile
context: ./
env_file:
- .env
environment:
- DB_HOST=db
ports:
- 4000:4000
depends_on:
- db