-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
47 lines (41 loc) · 916 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:12
restart: always
ports:
- "${DB_PORT}:5432"
volumes:
- /var/lib/postgresql/data
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
query-node:
image: query-node:latest
restart: unless-stopped
build:
dockerfile: docker/Dockerfile.query-node
context: ./
env_file:
- .env
environment:
- DB_HOST=db
ports:
- "8080:${GRAPHQL_SERVER_PORT}"
depends_on:
- db
processor:
image: hydra-processor:latest
restart: unless-stopped
build:
dockerfile: docker/Dockerfile.processor
context: ./
env_file:
- .env
environment:
- DB_HOST=db
- POLL_INTERVAL_MS=300
- TYPEORM_HOST=db
- DEBUG=hydra-processor:*
command: ["yarn", "processor:start"]