-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (58 loc) · 1.3 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
56
57
58
59
version: "3"
services:
web:
build:
context: .
dockerfile: .docker/web/Dockerfile
env_file:
- .docker/web/.env_web
ports:
- "3000:3000"
depends_on:
- api
db:
image: postgres:15
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_PASSWORD=${DB_PASS}
ports:
- "${EXTERNAL_DB_PORT}:5432"
# Uncomment for logging all SQL statements
# command: ["postgres", "-c", "log_statement=all"]
api:
build:
context: .
dockerfile: .docker/squid/Dockerfile
environment:
- DB_NAME=${DB_NAME}
- DB_PORT=5432
- DB_HOST=db
- DB_PASS=${DB_PASS}
- GQL_PORT=4350
ports:
# GraphQL endpoint at port 4350
- "${EXTERNAL_GQL_PORT}:4350"
command: ["sqd", "serve:prod"]
depends_on:
- db
processor:
build:
context: .
dockerfile: .docker/squid/Dockerfile
environment:
- DB_NAME=${DB_NAME}
- DB_PORT=5432
- DB_HOST=db
- DB_PASS=${DB_PASS}
ports:
# prometheus metrics exposed at port 3000
- "${EXTERNAL_PROMETEUS_PORT}:3000"
command: ["./wait-for-it.sh", "db:5432", "--", "sqd", "process:prod"]
depends_on:
- db
docs:
build:
context: .
dockerfile: .docker/docs/Dockerfile
ports:
- "3001:3001"