-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 905 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (35 loc) · 905 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
35
36
37
38
version: '3.8'
services:
# The core Python/C++ pipeline engine
engine:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- ENVIRONMENT=production
- LOG_INGESTION_RATE=50000
restart: unless-stopped
# Visualizer Streamlit Frontend
dashboard:
image: python:3.10-slim
volumes:
- ./app_demo.py:/app/app_demo.py
working_dir: /app
ports:
- "8501:8501"
command: >
sh -c "pip install streamlit pandas numpy && streamlit run app_demo.py --server.port=8501 --server.address=0.0.0.0"
depends_on:
- engine
# Automated Mock Log Traffic Pipeline Injector
simulator:
image: python:3.10-slim
volumes:
- ./log_simulator.py:/app/log_simulator.py
working_dir: /app
command: >
sh -c "pip install requests && python log_simulator.py"
depends_on:
- engine