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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
# -------------------------------------------------
# API backend (Rust/Diesel)
# -------------------------------------------------
regulatory_api:
build:
context: ./backend # Dockerfile lives here
dockerfile: Dockerfile
container_name: regulatory_api
restart: unless-stopped
ports:
- "3001:3000"
env_file: # loads all .env vars
environment:
DATABASE_URL: ${DATABASE_URL}
depends_on:
db:
condition: service_healthy
# -------------------------------------------------
# PostgreSQL (for Diesel migrations)
# -------------------------------------------------
db:
image: postgres:15-alpine
container_name: regulatory_db
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test:
interval: 10s
timeout: 5s
retries: 5
# -------------------------------------------------
# Health UI (React/Vite) – preview server
# -------------------------------------------------
health-ui:
build:
context: ./health-frontend
dockerfile: Dockerfile
container_name: health_ui
restart: unless-stopped
ports:
- "8081:80" # maps preview server (port 80 inside) to host 8081
depends_on:
- regulatory_api
# -------------------------------------------------
# Locker UI (React/Vite) – preview server
# -------------------------------------------------
locker-ui:
build:
context: ./locker-frontend
dockerfile: Dockerfile
container_name: locker_ui
restart: unless-stopped
ports:
- "8082:80"
depends_on:
- regulatory_api
# -------------------------------------------------
# News UI (Next.js) – server‑side rendering
# -------------------------------------------------
news-ui:
build:
context: ./news-frontend
dockerfile: Dockerfile
container_name: news_ui
restart: unless-stopped
ports:
- "8083:3000" # Next.js server runs on 3000 inside the container
depends_on:
- regulatory_api
volumes:
pg_data: