Spaces:
Running
Running
File size: 723 Bytes
357c087 | 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 | version: "3.9"
services:
api:
build:
context: ./backend
dockerfile: Dockerfile
container_name: smart_contract_auditor_api
ports:
- "8000:8000"
environment:
- HF_MODEL_ID=${HF_MODEL_ID:-}
- HF_TOKEN=${HF_TOKEN:-}
- USE_PATTERN_FALLBACK=true
- MAX_NEW_TOKENS=300
- TEMPERATURE=0.7
volumes:
- ./models:/app/models # mount local model weights (optional)
restart: unless-stopped
# Optional: serve the frontend locally
frontend:
image: nginx:alpine
container_name: smart_contract_auditor_ui
ports:
- "3000:80"
volumes:
- ./frontend:/usr/share/nginx/html:ro
depends_on:
- api
restart: unless-stopped
|