version: '3' | |
services: | |
api: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
ports: | |
- "8000:8000" | |
command: python api.py | |
environment: | |
- MODEL_ID=MelodyMachine/Deepfake-audio-detection-V2 | |
volumes: | |
- ./model_cache:/app/model_cache | |
deploy: | |
resources: | |
reservations: | |
devices: | |
- driver: nvidia | |
count: 1 | |
capabilities: [gpu] | |
web: | |
build: | |
context: ./frontend | |
dockerfile: Dockerfile | |
ports: | |
- "80:80" | |
depends_on: | |
- api |