refactor: seperate system into single Dockerfiles
This commit is contained in:
parent
ad87f702f1
commit
ed803a2ca5
26 changed files with 238 additions and 85 deletions
|
|
@ -1,36 +1,35 @@
|
|||
services:
|
||||
pipeline:
|
||||
build: .
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/pipeline-api.Dockerfile
|
||||
user: "1000:1000"
|
||||
volumes:
|
||||
- ./output:/app/output:z
|
||||
- ./config:/app/config:z
|
||||
command: ["/bin/bash", "scripts/scheduler.sh"]
|
||||
environment:
|
||||
- INTERVAL=3600
|
||||
restart: unless-stopped
|
||||
|
||||
api:
|
||||
build: .
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/pipeline-api.Dockerfile
|
||||
user: "1000:1000"
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- ./output:/app/output:z
|
||||
- ./config:/app/config:z
|
||||
command: ["python", "-m", "uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
command: ["/uvbin/uv", "run", "--frozen", "--no-sync", "--package", "pipeline_api", "python", "-m", "uvicorn", "pipeline_api.api.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
restart: unless-stopped
|
||||
|
||||
dashboard:
|
||||
build: .
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/dashboard.Dockerfile
|
||||
user: "1000:1000"
|
||||
ports:
|
||||
- "8501:8501"
|
||||
volumes:
|
||||
- ./output:/app/output:z
|
||||
- ./config:/app/config:z
|
||||
environment:
|
||||
- STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
|
||||
- STREAMLIT_USAGE_STATS_ENABLED=false
|
||||
command: ["streamlit", "run", "dashboard/app.py", "--server.port", "8501", "--server.address", "0.0.0.0"]
|
||||
restart: unless-stopped
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue