# CleanCut for CasaOS: ONE app.  App Store → Custom Install → Import → paste → Install.
name: clean-media
services:
  clean-media:
    image: ghcr.io/lumblehamb/clean-media-stack:latest
    container_name: clean-media
    restart: unless-stopped
    network_mode: bridge
    stop_grace_period: 60s
    cap_add: [NET_ADMIN]
    devices: [/dev/net/tun:/dev/net/tun]   # the optional VPN
    # Intel/AMD graphics make shrinking oversized videos much faster. If your server has them
    # (ls /dev/dri lists files), add /dev/dri:/dev/dri above. Without them the processor is used.
    environment:
      PUID: $PUID
      PGID: $PGID
      TZ: $TZ
    ports:
      - { target: 8585, published: "8585", protocol: tcp }
    volumes:
      - { type: bind, source: /DATA/AppData/$AppID/config, target: /config }
      - { type: bind, source: /DATA/Media, target: /media }
      - { type: bind, source: /DATA/Media/data, target: /data }
    x-casaos:
      ports:
        - container: "8585"
          description: { en_us: "CleanCut dashboard" }
      volumes:
        - container: /media
          description: { en_us: "Your movies and shows. CleanCut adds a clean audio track to each file (the original audio stays inside as a backup track)." }
        - container: /data
          description: { en_us: "Where new titles CleanCut downloads are saved (on your big media drive)." }
        - container: /config
          description: { en_us: "CleanCut's settings (small)" }

x-casaos:
  architectures: [amd64, arm64]
  main: clean-media
  index: /
  port_map: "8585"
  scheme: http
  store_app_id: clean-media
  category: Media
  author: CleanCut Suite
  developer: CleanCut Suite
  icon: https://shop.harrelsons.org/cleancut/icon.svg
  title: { en_us: CleanCut Suite }
  tagline: { en_us: "All-in-one media manager and profanity filter for Plex." }
  description:
    en_us: >
      CleanCut Suite is an all-in-one media manager and profanity filter for Plex.
      It finds and adds new movies and shows (like Radarr, Sonarr and a download
      client in one app) from sources you add yourself; no sources are included or
      enabled by default, and you're responsible for what you download. It cleans
      the language automatically: it mutes just the word, stars it out in the
      subtitles, and listens to the audio when subtitles are missing, keeping the
      original audio inside each file as a backup track. Clean titles are labelled
      Kid Safe, kid profiles keep to your age limit, and there's an optional
      built-in VPN with a kill switch. CleanCut Cleaner ($2.99) is just the
      cleaning, for media you already have; CleanCut Suite ($5.99) is everything.
      Buy once, yours forever. Launch prices: the price goes up for new buyers as
      features are added. Free trial of 3 movies and 10 TV episodes, no card.
  tips:
    before_install:
      en_us: >
        Your movies and shows are seen by CleanCut under /media (from /DATA/Media). If
        they're somewhere else, change the /media folder. Back up anything irreplaceable
        first: CleanCut adds a clean audio track to each file. After installing, open
        CleanCut (port 8585) and follow the setup guide.
