-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDocker-compose.yml
More file actions
57 lines (54 loc) · 1.7 KB
/
Docker-compose.yml
File metadata and controls
57 lines (54 loc) · 1.7 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
56
57
services:
# ── Python FastAPI: ML pipeline ───────────────────────────────────────────
api:
build:
context: .
dockerfile: Dockerfile
image: cargo-pipeline:latest
container_name: cargo_pipeline_api
ports:
- "8000:8000"
env_file:
- .env
environment:
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
volumes:
- ./backend/data:/app/backend/data:ro
- ./serviceAccountKey.json:/app/serviceAccountKey.json:ro
healthcheck:
test: ["CMD", "python", "-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8000/docs')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
restart: unless-stopped
# ── Node.js: PostgreSQL routes + Firebase chat ────────────────────────────
node:
build:
context: .
dockerfile: Dockerfile.node
image: cargo-pipeline-node:latest
container_name: cargo_pipeline_node
ports:
- "5000:5000"
env_file:
- .env
environment:
- DATABASE_URL=${DATABASE_URL:-}
volumes:
- ./serviceAccountKey.json:/app/serviceAccountKey.json:ro
restart: unless-stopped
# ── nginx: frontend + reverse proxy ──────────────────────────────────────
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
image: cargo-pipeline-frontend:latest
container_name: cargo_pipeline_frontend
ports:
- "80:80"
depends_on:
- api
- node
restart: unless-stopped