version: '3.8' services: api: build: context: . dockerfile: Dockerfile.local container_name: wall-color-api ports: - "8000:8000" volumes: # Mount code for hot reload during development - ./main.py:/app/main.py # Mount SAM model if you have it locally (to avoid downloading) # - ./sam_vit_h_4b8939.pth:/app/sam_vit_h_4b8939.pth environment: - PYTHONUNBUFFERED=1 restart: unless-stopped # Uncomment the following lines if you have NVIDIA GPU # deploy: # resources: # reservations: # devices: # - driver: nvidia # count: 1 # capabilities: [gpu] # Optional: Add nginx reverse proxy for production # nginx: # image: nginx:alpine # container_name: wall-color-nginx # ports: # - "80:80" # volumes: # - ./nginx.conf:/etc/nginx/nginx.conf:ro # depends_on: # - api # restart: unless-stopped