-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (31 loc) · 927 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (31 loc) · 927 Bytes
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
version: '3.8'
services:
# 🟢 1. Node.js Administration & Auth Server (Port 5000)
node-backend:
build: ./node-backend
ports:
- "5000:5000"
environment:
- MONGO_URI=${MONGO_URI:-mongodb+srv://user:pass@cluster.mongodb.net/stocktraq}
restart: always
# 🟢 2. FastAPI Intelligence / ML Analyzer Server (Port 8000)
fastapi-backend:
build: ./backend
ports:
- "8000:8000"
restart: always
# 🟢 3. Frontend Bundle Static Serve (Port 80)
# IMPORTANT: Change 'localhost' to your Cloud IP or Domain name BEFORE building
# because React axios submits queries from the Browser client perspective externally!
frontend:
build:
context: ./frontend
args:
- VITE_NODE_URL=http://localhost:5000
- VITE_FASTAPI_URL=http://localhost:8000
ports:
- "80:80"
depends_on:
- node-backend
- fastapi-backend
restart: always