-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yaml
53 lines (50 loc) · 1.17 KB
/
docker-compose.yaml
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
version: '3'
services:
postgres:
image: "postgres:13.2"
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
user: root
network_mode: host
processing:
image: "kaspa-graph-inspector-processing:latest"
depends_on:
- postgres
command:
- "/app/processing"
- "--connection-string=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?sslmode=disable"
network_mode: host
user: root
restart: always
api:
image: "kaspa-graph-inspector-api:latest"
depends_on:
- postgres
environment:
- PGUSER=${POSTGRES_USER}
- PGPASSWORD=${POSTGRES_PASSWORD}
- PGDATABASE=${POSTGRES_DB}
- PGHOST=localhost
- PGPORT=5432
- API_PORT=${API_PORT}
command:
- "npm"
- "run"
- "--prefix"
- "/app"
- "start"
network_mode: host
user: root
restart: always
web:
image: "kaspa-graph-inspector-web:latest"
depends_on:
- postgres
command:
- "serve"
- "--listen=${WEB_PORT}"
network_mode: host
user: root
restart: always