-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.82 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.82 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
58
59
60
version: '3.9'
services:
# ── Node.js API + WebSocket ─────────────────────────────────────────────────
api:
build:
context: .
dockerfile: Dockerfile.api
ports:
- "3001:3001"
environment:
- PORT=3001
restart: unless-stopped
healthcheck:
test: ["CMD","curl","-f","http://localhost:3001/api/health"]
interval: 10s
timeout: 5s
retries: 3
# ── React dashboard (served by Vite preview in prod) ─────────────────────────
frontend:
build:
context: ./frontend
dockerfile: ../Dockerfile.frontend
args:
- VITE_API_URL=http://localhost:3001
- VITE_WS_URL=ws://localhost:3001
ports:
- "5173:80"
depends_on:
- api
restart: unless-stopped
# ── Streamlit DPI demo ───────────────────────────────────────────────────────
streamlit:
image: python:3.12-slim
working_dir: /app
volumes:
- ./streamlit:/app
ports:
- "8501:8501"
environment:
- NETSENTRY_API=http://api:3001
- NETSENTRY_DASH=http://localhost:5173
command: >
sh -c "pip install -r requirements.txt -q &&
streamlit run app.py --server.port=8501 --server.address=0.0.0.0"
depends_on:
- api
restart: unless-stopped
# ── C++ engine (optional — uncomment to run the real DPI binary) ────────────
# cpp-engine:
# build:
# context: ./cpp
# dockerfile: ../Dockerfile.cpp
# volumes:
# - ./cpp/build:/build
# command: /build/netsentry --sim
# restart: unless-stopped