Spaces:
Sleeping
Sleeping
| version: '3.8' | |
| services: | |
| app: | |
| build: . | |
| ports: | |
| - "7860:7860" | |
| volumes: | |
| - .:/app:ro | |
| - app_data:/tmp | |
| env_file: | |
| - .env | |
| depends_on: | |
| - redis | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:7860/health"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 10s | |
| redis: | |
| image: redis:7-alpine | |
| ports: | |
| - "6379:6379" | |
| volumes: | |
| - redis_data:/data | |
| restart: unless-stopped | |
| volumes: | |
| redis_data: | |
| app_data: |