-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-prod.yml
39 lines (38 loc) · 978 Bytes
/
docker-compose-prod.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
version: "3"
services:
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:
image: ink-multisig-squid-shibuya
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:
image: ink-multisig-squid-shibuya
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