name: docmaster
services:
  docmaster:
    build: .
    container_name: DocMaster
    ports:
      - "3000:3000"
    volumes:
      - /DATA/.media/HDD_1TB/Dokumente:/app/uploads
    environment:
      - NODE_ENV=production
      - HOSTNAME=0.0.0.0
      - PORT=3000
      - UPLOADS_DIR=/app/uploads
      # --- Authentication (REQUIRED) ---
      # Set DOCMASTER_PASSWORD before deploying. The proxy denies all
      # requests when this is empty.
      - DOCMASTER_USER=${DOCMASTER_USER:-docmaster}
      - DOCMASTER_PASSWORD=${DOCMASTER_PASSWORD:-}
      - DOCMASTER_AUTH_DISABLED=1
    restart: unless-stopped
    labels:
      casaos.title: "DocMaster"
      casaos.description: "Dokumentenverwaltung"
      casaos.icon: "http://localhost:3000/favicon.svg"
      casaos.scheme: "http"
      casaos.hostname: ""
      casaos.port: "3000"
      casaos.index: "/"
      casaos.category: "Utilities"
