Download docker-compose.yml from VAH6002/TFA: direct link, hf CLI and curl.
- Browser
- Download file 1.83 kB
-
https://huggingface.co/spaces/VAH6002/TFA/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/VAH6002/TFA/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/VAH6002/TFA/resolve/main/docker-compose.yml
1.83 kB
| # TFA Docker Compose Configuration | |
| # For local development and testing | |
| version: '3.8' | |
| services: | |
| tfa-app: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| container_name: tfa-test-failure-analysis | |
| ports: | |
| - "7860:7860" # HF Spaces port | |
| - "8501:8501" # Alternative Streamlit port | |
| environment: | |
| # Application Configuration | |
| - TFA_ENVIRONMENT=development | |
| - TFA_USE_MOCK_DATA=true | |
| - TFA_LOG_LEVEL=INFO | |
| # Streamlit Configuration | |
| - STREAMLIT_SERVER_PORT=7860 | |
| - STREAMLIT_SERVER_ADDRESS=0.0.0.0 | |
| - STREAMLIT_SERVER_HEADLESS=true | |
| # Google API Key (override with your actual key) | |
| - GOOGLE_API_KEY=${GOOGLE_API_KEY:-demo-key-for-development} | |
| # Optional: Sponge API Configuration | |
| - SPONGE_API_ENDPOINT=${SPONGE_API_ENDPOINT:-} | |
| - SPONGE_BEARER_TOKEN=${SPONGE_BEARER_TOKEN:-} | |
| volumes: | |
| # Mount source code for development (optional) | |
| - ./tfa_agents:/home/tfa/tfa_agents:ro | |
| - ./tfa_ui:/home/tfa/tfa_ui:ro | |
| - ./docs:/home/tfa/docs:ro | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:7860/_stcore/health"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 60s | |
| labels: | |
| - "traefik.enable=true" | |
| - "traefik.http.routers.tfa.rule=Host(`localhost`)" | |
| - "traefik.http.services.tfa.loadbalancer.server.port=7860" | |
| # Optional: Add a reverse proxy for production-like setup | |
| nginx: | |
| image: nginx:alpine | |
| container_name: tfa-nginx | |
| ports: | |
| - "80:80" | |
| volumes: | |
| - ./nginx.conf:/etc/nginx/nginx.conf:ro | |
| depends_on: | |
| - tfa-app | |
| restart: unless-stopped | |
| profiles: | |
| - production |