Automate Plex Artwork and Collections with Kometa and Docker
Nothing ruins movie night faster than scrolling through your Plex library and seeing three different poster styles for the same trilogy, a foreign-language title card, and a collection that somehow shoved Hobbs & Shaw into the main Fast and Furious lineup. Plex pulls decent metadata out of the box, but once your library grows past a few hundred titles, keeping artwork consistent and collections organized by hand turns into a second job.
Kometa (formerly Plex Meta Manager) fixes that with one container and a single config.yml file. In my setup, it updates English posters, backgrounds, and clear logos across both movies and TV shows, then builds movie series, cinematic universe, and holiday collections automatically using Kometa’s built-in defaults. Best of all, you do not have to write or maintain a single custom collection YAML file.
Before You Begin
Make sure you have the following ready before deploying the container:
- A host running Docker and Docker Compose (TrueNAS, Ubuntu, Debian, or similar).
- A running Plex Media Server, along with your server URL and Plex token.
- A free The Movie Database (TMDb) API key (Kometa requires this to run).
- An MDBList API key (optional, used by list-backed collection defaults like cinematic universes).
- A running Radarr instance and API key (optional, only needed if you want Kometa to track and add missing seasonal movies automatically).
Before your first run, disable Plex’s built-in automatic collections so they do not fight with Kometa over your movie series. In Plex, open Settings > Manage > Libraries, click Edit Library on your movies library, open Advanced, and set Minimum automatic collection size to Disabled. If Plex already generated collections in that library, delete them before letting Kometa take over.
Deploying the Kometa Container
Use the official kometateam/kometa:latest image rather than third-party wrapper images, since the Kometa documentation recommends upstream builds for reliable path handling. To avoid running the container as root or leaning on chmod 777 for folder permissions, set the user field to match the UID and GID that own your config directory (1000:1000 on standard Linux, or 568:568 for the apps user on TrueNAS).
By default, Kometa wakes up once a day at 05:00 to process your config. Setting KOMETA_TIMES to 02:00 moves that single daily run to 2:00 AM, where run_order executes artwork operations first and builds your collections right after in one pass.
Create a docker-compose.yml file with the configuration below:
services:
kometa:
image: kometateam/kometa:latest
container_name: kometa
restart: unless-stopped
user: "${PUID:-1000}:${PGID:-1000}"
volumes:
- ${KOMETA_CONFIG_DIR:-./config}:/config:rw
environment:
- TZ=${TZ:-America/New_York}
- KOMETA_TIMES=${KOMETA_TIMES:-02:00}
# Optional: override the config file path or run once immediately on startup
# - KOMETA_CONFIG=/config/config.yml
# - KOMETA_RUN=false
Code language: YAML (yaml)
If you want to keep host-specific values out of docker-compose.yml, place them in a .env file in the same directory:
PUID=1000
PGID=1000
TZ=America/New_York
KOMETA_CONFIG_DIR=./config
KOMETA_TIMES=02:00
Code language: Bash (bash)
Start the container in detached mode from that folder:
docker compose up -d
Code language: Bash (bash)
If your mounted /config folder does not have a config.yml yet, Kometa creates a starter template on first launch. Tail the logs to confirm the container started cleanly:
docker compose logs -f kometa
Code language: Bash (bash)
Configuring Global Settings and Service Connections
All of Kometa’s behavior lives in /config/config.yml. The bottom half of the file sets your global defaults under settings, along with connection blocks for Plex, TMDb, MDBList, and Radarr.
A few settings here do most of the heavy lifting:
run_order: Runsoperationsfirst, followed bymetadata,collections, andoverlays.sync_mode: syncanddelete_below_minimum: true: Automatically removes items that drop out of a collection and cleans up collections with fewer thanminimum_items(2).item_refresh_delay: 1: Pauses one second between item refreshes so Kometa does not hammer Plex all at once.clean_bundles,empty_trash, andoptimizeset tofalse: Keeps Kometa from triggering heavy Plex database cleanup mid-run so Plex handles maintenance during its own scheduled window.radarrdefaults withadd_missing: falseandsearch: false: Acts as a safety rail so Kometa never adds missing movies globally unless a specific collection explicitly enables it.
Add the global settings and service blocks below to your config.yml, replacing the placeholder IPs, tokens, and API keys with your own:
settings:
run_order:
- operations
- metadata
- collections
- overlays
cache: true
cache_expiration: 60
asset_directory: config/assets
asset_folders: false
asset_depth: 0
create_asset_folders: false
prioritize_assets: false
dimensional_asset_rename: false
download_url_assets: false
show_missing_season_assets: false
show_missing_episode_assets: false
show_asset_not_needed: true
sync_mode: sync
minimum_items: 2
default_collection_order:
delete_below_minimum: true
delete_not_scheduled: false
run_again_delay: 2
missing_only_released: false
only_filter_missing: false
show_unmanaged: true
show_unconfigured: true
show_filtered: false
show_options: true
show_missing: true
show_missing_assets: true
save_report: false
tvdb_language: eng
ignore_ids:
ignore_imdb_ids:
item_refresh_delay: 1
playlist_sync_to_users: all
playlist_exclude_users:
playlist_report: false
verify_ssl: true
custom_repo:
overlay_artwork_filetype: jpg
overlay_artwork_quality:
show_unfiltered: false
auto_sort_hubs:
plex:
url: http://<plex-ip>:32400
token: <plex-token>
timeout: 60
db_cache:
clean_bundles: false
empty_trash: false
optimize: false
verify_ssl: false
tmdb:
apikey: <tmdb-apikey>
language: en
cache_expiration: 60
region:
mdblist:
apikey: <mdblist-apikey>
cache_expiration: 60
radarr:
url: http://<radarr-ip>:7878/
token: <radarr-apikey>
add_missing: false
root_folder_path: /data/Movies
quality_profile: 2160p Remux
monitor: true
availability: released
search: false
add_existing: false
upgrade_existing: false
monitor_existing: false
ignore_cache: false
tag:
radarr_path:
plex_path:
Code language: YAML (yaml)
Automating Posters, Logos, and Backgrounds
Under each library, the operations block runs first in the daily pass (driven by run_order) to handle bulk artwork and release-date cleanup. Setting source: tmdb and language: en under mass_metadata_update pulls consistent English posters, backgrounds, and clear logos across your entire library, while originally_available: tmdb keeps release dates accurate.
Setting ignore_locked: true on poster, background, and logo is a must if you ever pick custom artwork in Plex. Whenever you lock a poster or backdrop inside the Plex UI, Kometa sees the lock and leaves your manual pick alone instead of overwriting it overnight.
Movies and TV shows handle artwork slightly differently:
| Setting | Movies | TV Shows | Why It Differs |
|---|---|---|---|
delete_collections | less: 2 | Not used | Cleans up stray single-movie collections |
poster | tmdb, en, ignore_locked: true | Adds seasons: true, episodes: false | Keeps series and season posters uniform without touching episode thumbnails |
background | tmdb, en, ignore_locked: true | Adds seasons: true, episodes: false | Updates show and season backdrops only |
logo | tmdb, en, ignore_locked: true | tmdb, en, ignore_locked: true | Clear logos only apply at the movie or show level |
originally_available | tmdb | tmdb | Keeps release dates aligned with TMDb |
Building Automatic Series, Universe, and Seasonal Collections
You do not need custom YAML files to build rich collections in Kometa. My movie library uses three built-in default collection files controlled entirely through template_variables:
| Collection Default | What It Builds | Key Customizations |
|---|---|---|
default: franchise | Movie series collections from TMDb Collection IDs | collection_order: release plus remove_addons to keep reboots and spin-offs separate |
default: universe | Shared cinematic universes (Marvel, Wizarding World, etc.) | use_separator: false to skip empty divider collections |
default: seasonal | Holiday and seasonal movie collections | Excludes unused holidays and optionally tells Radarr to grab missing titles |
For movie series (default: franchise), Kometa’s default file tries to be helpful by grouping spin-offs and reboots into the parent franchise. If you prefer keeping Prometheus separate from Alien, Hobbs & Shaw separate from The Fast and the Furious, or Rob Zombie’s Halloween separate from the original series, pass those TMDb Collection IDs under remove_addons.
For cinematic universes (default: universe) and holidays (default: seasonal), setting use_separator: false stops Kometa from inserting blank separator collections into your library view. On the seasonal side, the exclude list trims down the built-in calendar to just the holidays I actually want: Halloween, Thanksgiving, Christmas, New Year’s, Easter, and Independence Day.
If you run Radarr and Maintainerr, the seasonal block also handles holiday movie rotation cleanly. Setting radarr_add_missing: true and radarr_search: true here lets Kometa add missing movies for the active holidays while tagging each one with its own item_radarr_tag_* label (such as seasonal-halloween or seasonal-christmas). Using Kometa instead of a Radarr import list avoids Radarr’s import-list exclusion issue when Maintainerr cleans those movies back out after the holidays.
Add the libraries section below to the top of your config.yml, replacing the library keys (Movies and TV Shows) with the exact names of your Plex libraries:
libraries:
Movies:
collection_files:
- default: universe
template_variables:
use_separator: false
- default: franchise
template_variables:
collection_mode: default
collection_order: release
remove_addons:
8091: # Alien
- 135416 # Prometheus
2806: # American Pie
- 298820 # American Pie (Spin-off)
87800: # Appleseed
- 371526 # Appleseed XIII
477208: # DC Super Hero Girls
- 557495 # LEGO DC Super Hero Girls
86066: # Despicable Me
- 544669 # Minions
9485: # The Fast and the Furious
- 688042 # Hobbs & Shaw
86115: # Garfield
- 373918 # Garfield CGI
91361: # Halloween
- 126209 # Halloween (Rob Zombie Series)
9818: # Mortal Kombat
- 931431 # Mortal Kombat
495: # Shaft
- 608103 # Shaft (Reboot)
1582: # Teenage Mutant Ninja Turtles
- 401562 # Teenage Mutant Ninja Turtles (Remake)
111751: # Texas Chainsaw Massacre
- 425175 # Texas Chainsaw (Reboot)
2467: # Tomb Raider
- 621142 # Tomb Raider (Reboot)
748: # X-Men
- 453993 # The Wolverine
- default: seasonal
template_variables:
use_separator: false
collection_mode: default
exclude:
- valentine
- patrick
- mother
- memorial
- father
- labor
- veteran
- aapi
- disabilities
- black_history
- lgbtq
- latinx
- women
radarr_add_missing: true
radarr_search: true
item_radarr_tag_halloween: seasonal-halloween
item_radarr_tag_thanksgiving: seasonal-thanksgiving
item_radarr_tag_christmas: seasonal-christmas
item_radarr_tag_years: seasonal-newyears
item_radarr_tag_easter: seasonal-easter
item_radarr_tag_independence: seasonal-independence
operations:
delete_collections:
less: 2
mass_metadata_update:
poster:
source: tmdb
language: en
ignore_locked: true
background:
source: tmdb
language: en
ignore_locked: true
originally_available: tmdb
logo:
source: tmdb
language: en
ignore_locked: true
TV Shows:
operations:
mass_metadata_update:
poster:
source: tmdb
language: en
seasons: true
episodes: false
ignore_locked: true
background:
source: tmdb
language: en
seasons: true
episodes: false
ignore_locked: true
originally_available: tmdb
logo:
source: tmdb
language: en
ignore_locked: true
Code language: YAML (yaml)
Testing Your Config and Avoiding Plex Lockups
Instead of waiting until 02:00 to see if your YAML parses cleanly, trigger a one-off run in a temporary container:
docker compose run --rm -e KOMETA_RUN=true kometa
Code language: Bash (bash)
Once that run finishes, check /config/logs/meta.log inside your mapped config folder for any invalid TMDb IDs, missing API keys, or collection warnings. Because everything runs in a single pass, that manual run executes both your artwork operations and your collection builds from start to finish.
One important head’s up before you leave this running on autopilot: if Kometa runs at the exact same time as Maintainerr or Plex’s own Scheduled Maintenance window, Plex can throw a fit and lock up. I dug into why that happens and how to stagger your overnight schedule in Eight Different Bosses, One SQLite Database: Fixing Overnight Plex Crashes.
Scheduling your single Kometa run at 02:00 in KOMETA_TIMES, keeping item_refresh_delay: 1, and setting clean_bundles, empty_trash, and optimize to false inside config.yml keeps Kometa out of the way of other tools. If you run Maintainerr and Plex Scheduled Maintenance overnight as well, schedule them after Kometa finishes and leave Plex’s own maintenance for the end of the night.
With one config.yml and Kometa’s built-in defaults, your movie and TV artwork stays clean and uniform without touching a single custom collection file. You get predictable series, universe, and seasonal collections on autopilot, and your Plex server stays responsive while everything updates overnight.