-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 1.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (36 loc) · 1.1 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
version: "3.8"
services:
# ── Streamlit Web Dashboard Service ──────────────────────────────────────────
dashboard:
build:
context: .
dockerfile: Dockerfile
container_name: dataprep-dashboard
ports:
- "8501:8501"
volumes:
- ./data:/app/data
- ./reports:/app/reports
- ./logs:/app/logs
environment:
- PIPELINE_ENV=production
- PYTHONUNBUFFERED=1
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8501/_stcore/health')"]
interval: 30s
timeout: 5s
retries: 3
# ── CLI Pipeline Runner Service (One-shot execution) ─────────────────────────
pipeline-cli:
build:
context: .
dockerfile: Dockerfile
container_name: dataprep-cli
command: ["python", "main.py"]
volumes:
- ./data:/app/data
- ./reports:/app/reports
- ./logs:/app/logs
profiles:
- cli