Spaces:
Running
Running
namandhakad712
feat: Introduce Docker support and comprehensive setup instructions for the project.
8387408
| version: '3.8' | |
| services: | |
| backend: | |
| build: ./backend | |
| container_name: deepfake-backend | |
| ports: | |
| - "5000:5000" | |
| environment: | |
| - FLASK_APP=app.py | |
| - FLASK_DEBUG=1 | |
| # You can override this in a .env file or pass it directly | |
| - HUGGINGFACE_TOKEN=${HUGGINGFACE_TOKEN} | |
| volumes: | |
| # Mount the model cache so it persists between restarts | |
| - deepfake_model_cache:/app/model_cache | |
| restart: unless-stopped | |
| frontend: | |
| build: | |
| context: ./frontend | |
| dockerfile: Dockerfile | |
| target: production | |
| container_name: deepfake-frontend | |
| ports: | |
| - "3000:80" | |
| depends_on: | |
| - backend | |
| restart: unless-stopped | |
| volumes: | |
| deepfake_model_cache: | |