AuditAgent / docker-compose.yml
Parsa2025AI's picture
docker containers
357c087 verified
raw
history blame contribute delete
723 Bytes
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