services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: nextcloud_ai_app
    env_file:
      - .env
    environment:
      - NVIDIA_VISIBLE_DEVICES=all
      - CLAUDE_DANGEROUSLY_SKIP_PERMISSIONS=1
    volumes:
      - ./downloads:/app/downloads
      - ./resumenes_docx:/app/resumenes_docx
    ports:
      - "5000:5000"
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]
    restart: unless-stopped
