Spaces:
Sleeping
Sleeping
File size: 1,394 Bytes
67f25fb |
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 61 62 63 64 65 66 67 68 |
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8001:8001"
environment:
- PYTHONUNBUFFERED=1
- DATABASE_URL=sqlite:///./translations.db
volumes:
- ./backend/data:/app/data
- ./backend/models:/app/models
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "8501:8501"
environment:
- PYTHONUNBUFFERED=1
- API_BASE_URL=http://backend:8001
depends_on:
- backend
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
standalone:
build:
context: .
dockerfile: Dockerfile.standalone
ports:
- "8502:8501"
environment:
- PYTHONUNBUFFERED=1
volumes:
- ./data:/app/data
- ./models:/app/models
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
profiles:
- standalone
networks:
default:
driver: bridge
volumes:
backend_data:
models_cache:
|