-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
55 lines (52 loc) · 1.26 KB
/
docker-compose.yaml
File metadata and controls
55 lines (52 loc) · 1.26 KB
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
services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: awe
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 3s
retries: 5
awe:
build:
context: .
args:
GIT_COMMIT: local
BUILD_TIME: local
ports:
- "8000:8000"
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: awe
DB_USER: postgres
DB_PASSWORD: postgres
depends_on:
postgres:
condition: service_healthy
restart: on-failure
# Static SPA served by nginx. In production this is routed by Istio at
# the host level; locally we expose it on :8080 and the UI's fetch calls
# hit the backend on the same machine via the browser's origin (see nginx
# proxy_pass for the /v1/awe prefix below, which is a local-dev nicety —
# production nginx never proxies; Istio does host-level routing).
awe-ui:
build:
context: ./ui
args:
GIT_COMMIT: local
BUILD_TIME: local
ports:
- "8080:8080"
depends_on:
- awe
restart: on-failure
volumes:
pgdata: