mirrormindv2 / docker-compose.yml
sam12555's picture
Update docker-compose.yml
2f46a26 verified
raw
history blame contribute delete
786 Bytes
version: '3.8'
services:
mirrormind-api:
build: .
ports:
- "8000:8000"
volumes:
- ./mirror_model.pth:/app/mirror_model.pth:ro
- ./logs:/app/logs
environment:
- PYTHONUNBUFFERED=1
- CUDA_VISIBLE_DEVICES=0 # Set to empty string to disable GPU
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Add Nginx reverse proxy
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/nginx/ssl:ro # SSL certificates if needed
depends_on:
- mirrormind-api
restart: unless-stopped