# Kinode Media Server with an NVIDIA graphics card.
#   docker compose up -d          then open http://<this machine>:5466
#   to update: put the new release's tarball and Dockerfile in this folder, then
#   docker compose build && docker compose up -d   (the image is built here, not pulled)
# Needs the NVIDIA Container Toolkit on the host for the gpus: line. Without
# an NVIDIA card, delete the deploy: block; for Intel/AMD keep devices:.
services:
  kinode:
    image: kinode-media-server:1.5.0
    build: .
    container_name: kinode-media-server
    restart: unless-stopped
    ports:
      - "5466:5466/tcp"
      - "5467:5467/udp"      # discovery on the local network
    environment:
      PORT: "5466"
      # TZ: "Etc/UTC"             # your time zone, for the maintenance and install windows
      # KINODE_HW_TRANSCODE: "0"   # software only
    volumes:
      - ./data:/data                     # accounts, library database, artwork, plugins, logs
      - /path/to/your/media:/media:ro    # your films, shows and music (drop :ro to let the item editor save artwork beside them)
    # Intel Quick Sync / VA-API (Intel, AMD):
    # devices:
    #   - /dev/dri:/dev/dri
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu, video, compute, utility]
