# CleanCut Cleaner: one container that cleans the movies and shows already on your Plex.
# Also the simplest install for Windows and Mac (Docker Desktop). No VPN, so no special
# permissions or devices are needed.
#
#   docker compose -f docker-compose.cleaner.yml up -d     then open http://<server>:8585
#
# Change the folders on the left:
#   ./config   -> where CleanCut keeps its settings (small)
#   /mnt/media -> your movies and shows (CleanCut adds a clean audio track to each file:
#                 back up anything irreplaceable first). Choose the folders in CleanCut's setup.
#
# Bought CleanCut Suite (finding and downloading too)? Use docker-compose.yml instead: it adds
# what the optional VPN needs and a download folder.

services:
  clean-media:
    image: ghcr.io/lumblehamb/clean-media-stack:latest
    container_name: clean-media
    restart: unless-stopped
    stop_grace_period: 60s
    extra_hosts:                       # lets CleanCut find a Plex installed on this same computer
      - "host.docker.internal:host-gateway"
    # Intel/AMD graphics shrink oversized videos much faster. Linux only: remove the # below
    # (Windows/Mac Docker Desktop has no /dev/dri).
    # devices:
    #   - /dev/dri:/dev/dri
    # NVIDIA graphics card (needs the NVIDIA Container Toolkit): remove the # below.
    # gpus: all
    environment:
      PUID: 1000                       # the user that should own your media files
      PGID: 1000
      TZ: America/Chicago
    ports:
      - 8585:8585                      # the dashboard: the only thing you ever open
    volumes:
      - ./config:/config
      - /mnt/media:/media              # your movies and shows (e.g. /mnt/media/Movies -> /media/Movies)
