36 lines
663 B
YAML
36 lines
663 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
api:
|
|
build: .
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- API_HOST=0.0.0.0
|
|
- API_PORT=8000
|
|
command: python run_api.py
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
frontend:
|
|
build: .
|
|
ports:
|
|
- "8501:8501"
|
|
environment:
|
|
- FRONTEND_HOST=0.0.0.0
|
|
- FRONTEND_PORT=8501
|
|
command: python run_frontend.py
|
|
depends_on:
|
|
- api
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8501"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
volumes:
|
|
data:
|