Install Kometa¶
Choose where you will run Kometa to see a complete installation walkthrough. You will install Kometa, connect it to Plex and TMDb, and verify your first run. Sample collections and overlays are optional next steps.
Kometa uses YAML configuration and has no graphical interface. You can run it on a different machine from Plex. Docker is recommended when you do not already have a reason to use local Python, because its image supplies Python and dependencies.
Installation paths¶
JavaScript enables the questionnaire. You can also browse all paths below:
Local Python¶
Prerequisites¶
You need access to your Plex server, permission to create and edit configuration files, and a terminal. Use PowerShell on Windows or Terminal on macOS and Linux.
Install uv¶
uv manages Python and Kometa's dependencies for you. Follow the official uv installation instructions, or use the command for your platform below.
Open a new terminal after installation, then check:
uv can download Python automatically if a compatible interpreter is not available. Kometa requires Python 3.12 or newer; the currently tested versions are 3.12 through 3.14.
Installing Git¶
To copy the Kometa code to your machine, we'll be using git. This may be installed on Mac or Linux, and probably isn't in Windows.
Let's check if Git is already installed [type this into your terminal]
If this doesn't return a version number, you'll need to get git installed.
The git install is discussed here: Download for Linux and Unix
The git install is discussed here: Git - Downloading Package
Download the installer from here
Run the install; you can probably just accept the defaults and click through except for the step that asks you to choose an editor; you probably want to choose something other than the default there:
This install comes with its own command line interface. Do not use this interface in this walkthrough. Continue to do everything here in Powershell.
Retrieving the Kometa code¶
Now we're going to use git to make a copy of the code on your local computer in the home directory [type this into your terminal]
Now git checkout to the branch reflecting the version of the wiki you are reading, as some functionality may be dependent on this.
If you are reading the latest version of the wiki, no git checkout is required.
latest
If you are reading the latest version of the wiki, no git checkout is required.
Important Information
The rest of this walkthrough assumes you are staying in this directory in this terminal/Powershell window.
In the future, when you want to run Kometa at the command line, you have to be in this directory.
Navigating to the Kometa code¶
When you open a command window to run Kometa, the first step will always be:
There are parts of the code that are assuming and expecting that you will be in this directory when you run Kometa [the fonts used in overlays are one example]. Be sure that you are always in this directory when you run Kometa.
What did that do?
This changes to your home directory, which will be something like /home/yourname or /Users/yourname or C:\Users\YourName depending on the platform.
This uses git to make a copy of (clone) the Kometa code from where it is stored on github.
This moves into the directory that was created by the clone command.
Later on you can move it elsewhere if you want, but for now put it there. This will ensure that everything to follow works just like it says here. Presumably you’re reading this because the other docs are unclear to you. Use the example directory layout to follow the commands consistently.
Why use git instead of downloading the release ZIP?
Retrieving the code with git makes updating simpler. When you want to update to the newest version, you can go into this directory and type:
No need to download a new ZIP, decompress it, etc.
Also, if you are asked to [or want to] switch to the latest develop code, you can do so with:
Install Kometa's dependencies¶
From the Kometa directory, run:
This creates a .venv directory and installs the dependencies recorded in uv.lock. uv manages that environment automatically whenever you use uv run.
Choosing a Python version
If your installed Python is newer than the tested versions, use uv sync --python 3.14 to select Python 3.14 for this environment. uv downloads it if needed.
If you already use an older kometa-venv installation, open a new terminal and run uv sync from your checkout. Keep your existing config directory and use the uv run commands below for future runs. Update any scheduled tasks to match the scheduling guide.
Verify install and create config template¶
From the Kometa directory, run:
On a new installation, Kometa creates config/config.yml and asks you to add your API keys and other settings. Continue to Configure Kometa, then Run and verify.
Use uv run python kometa.py whenever you start Kometa, adding flags such as --run as needed. Run it from the checkout directory so Kometa can find its files. See uv's project guide for more about managed environments.
Unsure / Generic Docker¶
Before you start¶
Use this path if your platform is not listed or you already have Docker and want commands you can adapt to your host. You need a terminal, a working Docker installation, and a directory where you can save Kometa's configuration. Kometa connects to Plex over the network; you do not need to mount your media directories.
Verify Docker before continuing:
If this fails, finish setting up Docker for your host first. Use the official kometateam/kometa image for the commands below. See Docker images for available tags; use kometateam/kometa:develop throughout if you are following the develop documentation.
Prepare persistent storage¶
Create a directory on your host for Kometa's configuration and logs. In every command below, replace FULL_PATH_TO_CONFIG with its absolute path, such as /srv/kometa/config or C:\Kometa\config.
The first launch downloads a template config.yml if it is missing and asks you to edit it. Continue to Configure Kometa, then use Run and verify to complete your first successful run.
The options mean:
-itkeeps the terminal interactive, which is useful for prompts such as MyAnimeList authentication.-v "FULL_PATH_TO_CONFIG:/config:rw"makes your host directory available at/configwith write access. Keep the quotes, especially when the path contains spaces. Kometa reads/config/config.ymlby default.--runstarts Kometa immediately and exits when processing finishes. Place Kometa options after the image name.--rmremoves the container when it exits. Your configuration and logs remain in the host directory.
Choose how Kometa runs¶
After completing your first run, choose one of these commands. Each example uses the same persistent configuration directory.
Wait in the foreground for the default daily run at 05:00:
Keep a scheduled container running in the background:
docker run -d --name kometa --restart unless-stopped -v "FULL_PATH_TO_CONFIG:/config:rw" kometateam/kometa
Use docker logs -f kometa to follow its output and docker stop kometa to stop it. Use docker start kometa to start it again. To change its settings or image, stop it and run docker rm kometa before recreating it with the updated command; keep the same configuration mount. Do not copy the old container's entrypoint or PATH into the new one, because an old entrypoint can stop a newer image from starting.
Run daily at 17:00 in the background:
docker run -d --name kometa --restart unless-stopped -v "FULL_PATH_TO_CONFIG:/config:rw" kometateam/kometa --times 17:00
These background examples are alternatives: use only one container for this configuration. Times use the container's timezone; add -e TZ=Europe/London before the image name, replacing the timezone with yours. See commands and environment variables for other settings.
Run immediately in the foreground, then remove the container:
Omit --rm if you want the stopped container to remain after that one-off run. For a regular installation where you prefer to save container settings in a file, select your host OS above and choose Docker Compose.
Docker run¶
Prerequisites¶
You need access to your Plex server, permission to create and edit configuration files, and a terminal. Follow the platform steps below, then continue to the shared configuration and first-run instructions.
Installing Docker¶
To run Docker images, you need to have Docker installed. It is not typically installed on new Mac, Linux, or Windows machines.
The Docker install is discussed here: Installing Docker
Once you have Docker installed, test it at the command line with:
[type this into your terminal]
You should see something that starts with:If that doesn't work, stop here until you fix that. Diagnosing and repairing Docker install problems is out of the scope of this walkthrough.
Important note on Docker images¶
This tutorial uses the official image, and you should, too. Don't change kometateam/kometa to the linuxserver.io image or any other.
Other images may have idiosyncrasies that will prevent this walkthrough from working.
The official image will behave exactly as documented below. Others very possibly won't.
The great thing about Docker is that all the setup you'd have to do to run Kometa is already done inside the docker image.
That means we can just jump right into running it. At the command prompt, type:
Use the branch reflecting the version of the wiki you are reading, as some functionality may be dependent on this. If you are reading the latest version of the wiki,
use latest [or leave the tag off] as shown above. If you are reading the develop branch, use develop.
This same thing holds for all future docker commands in this walkthrough.
This is going to fail with an error. That's expected.
You should see something like this:
Unable to find image 'kometateam/kometa:latest' locally
latest: Pulling from kometateam/kometa
7d63c13d9b9b: Already exists
6ad2a11ca37b: Already exists
8076cdef4689: Pull complete
0ba90f5a7dd0: Pull complete
27c191df269f: Pull complete
c75e4c0924fa: Pull complete
ed6716577767: Pull complete
0547721ab7a3: Pull complete
ea4d35bce959: Pull complete
Digest: sha256:472be179a75259e07e68a3da365851b58c2f98383e02ac815804299da6f99824
Status: Downloaded newer image for kometateam/kometa:latest
Config Error: config not found at //config
That error means you don’t have a config file, but we know that most everything is in place to run the image.
Setting up a volume map¶
Kometa, inside that Docker container, can only see other things inside the container. We want to add our own files for config and metadata, so we need to set something up that lets Kometa see files we create outside the container. This is called a "volume map".
Go to your home directory and create a new directory:
[type this into your terminal]
- This changes to your home directory, which will be something like
/home/yournameor/Users/yournameorC:\Users\YourNamedepending on the platform. - This creates a directory called "kometa"
cd into that directory and create another directory:
[type this into your terminal]
- This navigates to the kometa folder within your home directory.
- This creates a directory called "config"
get the full path:
[type this into your terminal]
This will display a full path:
/home/YOURUSERNAME/kometa
```
</div>
<div class="install-variant" data-os="macos" markdown="1">
```shell { .no-copy }
/Users/YOURUSERNAME/kometa
```
</div>
<div class="install-variant" data-os="windows" markdown="1">
```shell { .no-copy }
C:\Users\YOURUSERNAME\kometa
```
</div>
Add "config" onto the end of that to get the host path to your config directory, for example:
<div class="install-variant" data-os="linux" markdown="1">
```shell { .no-copy }
/home/YOURUSERNAME/kometa/config
```
</div>
<div class="install-variant" data-os="macos" markdown="1">
```shell { .no-copy }
/Users/YOURUSERNAME/kometa/config
```
</div>
<div class="install-variant" data-os="windows" markdown="1">
```shell { .no-copy }
C:\Users\YOURUSERNAME\kometa\config
```
</div>
You'll need to add this to the docker command every time you run it, like this:
<div class="install-variant" data-os="linux" markdown="1">
```shell
docker run --rm -it -v "/home/YOURUSERNAME/kometa/config:/config:rw" kometateam/kometa --run
```
</div>
<div class="install-variant" data-os="macos" markdown="1">
```shell
docker run --rm -it -v "/Users/YOURUSERNAME/kometa/config:/config:rw" kometateam/kometa --run
```
</div>
<div class="install-variant" data-os="windows" markdown="1">
```shell
docker run --rm -it -v "C:\Users\YOURUSERNAME\kometa\config:/config:rw" kometateam/kometa --run
```
</div>
If you run that command now you should see something like this:
```bash { .no-copy }
$ docker run --rm -it -v "/Users/mroche/kometa/config:/config:rw" kometateam/kometa --run
Configuration File ('config.yml') has been downloaded from GitHub (Branch: 'master') and saved as '//config/config.yml'. Please update this file with your API keys and other required settings.
Note that I show the example path there.
Why did we create that config' directory?
This was done so that from here on in the instructions match between this walkthrough and the Local walkthrough, which insures consistency and reduces maintenance and potential error. This is not required; you can put the config file anywhere you like, but you will need to adjust the paths in the commands you run in this walkthrough to match where you put it. It's easier to have them match.
unRAID¶
Prerequisites¶
You need access to your Plex server, permission to create and edit configuration files, and a terminal. Follow the platform steps below, then continue to the shared configuration and first-run instructions.
Installing Community Applications in unRAID¶
Thankfully, getting Kometa working on unRAID is a fairly simple task. unRAID works mostly with docker containers, so the pre-built container available on docker hub works perfectly with a little configuration. To install a container from docker hub, you will need community applications - a very popular plugin for unRAID servers. If you don't already have this installed, you can install it here
Installing Kometa in unRAID¶
- Head to the
Appstab of unRAID (Community Applications), and searchkometain the upper left search box. There will be a couple of results shown, but you should ignore them (Why?) and use the official image.
-
Click the
Installbutton on the Template from Sohjiro's Repository Tools. -
Choose which branch you want to run
latestordevelop. -
Set the
Console shell command:toBash -
Verify that the
Container Path: /configpath for the unRAID app is/mnt/user/appdata/Kometa/config
Important note on Docker images¶
This tutorial uses the official image, and you should, too. Don't change kometateam/kometa to the linuxserver.io image or any other.
Other images may have idiosyncrasies that will prevent this walkthrough from working.
The official image will behave exactly as documented below. Others very possibly won't.
The great thing about Docker is that all the setup you'd have to do to run Kometa is already done inside the docker image.
Hit Apply, and allow unRAID to download the image and build the container.
First let's start the container. Oops! The container won't start? This is going to fail with an error. That's expected.
You should see something like this in the unRAID logs for the container:
We need to have a file calledconfig.yml in the correct directory for Kometa to start.
Open up an unRAID terminal session by clicking on the terminal icon >_ in the top right of unRAID.
[type this into your unRAID terminal]
You can now close the unRAID terminal and start the Kometa container.
From this point forward, you can Console >_Console into the running container as it will stay running
Open a Console by left-clicking on the running Kometa Container and selecting >_Console.
This will open up an interactive session within the container to be able to run the commands we want.
Kubernetes¶
Kubernetes walkthrough¶
This article will walk you through getting Kometa set up and running in Kubernetes. It will cover:
- Creating the Kubernetes CronJob
- Creating configuration files as Config Maps
- (Advanced) Creating dynamic configuration files with an Init Container
Prerequisites.¶
This walk through assumes you are familiar with Kubernetes concepts and have an exiting cluster to deploy into. If you do not, but are interested, minikube is a great place to start.
Creating the Kubernetes CronJob¶
When running Kometa in Kubernetes, executing it as a CronJob gives us the ability to define a schedule for execution and have Kubernetes manage the rest.
Some parts of this to tweak to your needs:
- The namespace should be set to whatever you desire, in this example it runs in the
medianamespace. - The schedule, in this example it runs at 00:00 UTC. https://crontab.guru/ is a good site if you aren't sure on how to create a schedule.
apiVersion: batch/v1
kind: CronJob
metadata:
name: kometa
namespace: media
spec:
schedule: "0 0 * * *"
jobTemplate:
spec:
template:
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
containers:
- name: kometa
image: kometateam/kometa:latest
imagePullPolicy: IfNotPresent
args: [ "--run", "--read-only-config" ]
resources:
limits:
cpu: 100m
memory: 256Mi
requests:
cpu: 100m
memory: 125Mi
volumeMounts:
- name: config
mountPath: /config
- name: kometa-config
mountPath: /config/config.yml
subPath: config.yml
- name: movie-config
mountPath: /config/movies.yaml
subPath: movies.yaml
- name: tv-config
mountPath: /config/tv.yaml
subPath: tv.yaml
volumes:
- name: config
persistentVolumeClaim:
claimName: kometa
- configMap:
name: kometa-config
name: kometa-config
- configMap:
name: movie-config
name: movie-config
- configMap:
name: tv-config
name: tv-config
restartPolicy: OnFailure
Warning
If you are using Longhorn as your storage class, you should omit the
spec.jobTemplate.spec.template.spec.securityContext node to fix file permission errors.
This CronJob also requires
- A Persistent Volume Claim
- 3 Config Maps (see next section)
The Persistent Volume Claim (PVC) can be as simple as:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: kometa
name: kometa
namespace: media
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 128Mi
Creating the config maps¶
In Kubernetes, configurations are managed via Config Maps. So we deploy the configurations for Kometa as config maps. The minimum requirement is the Kometa config, but the example here assumes you have a separate config for movies and tv shows.
Kometa config¶
Here's a config map for the config.yml file for Kometa. Note there are many placeholders that will need update based on your environment and needs.
apiVersion: v1
data:
config.yml: |
libraries:
Movies:
collection_files:
- file: config/movies.yaml
TV Shows:
collection_files:
- file: config/tv.yaml
settings:
cache: true
cache_expiration: 60
asset_directory: config/assets
asset_folders: true
asset_depth: 0
create_asset_folders: false
dimensional_asset_rename: false
download_url_assets: false
show_missing_season_assets: false
sync_mode: append
minimum_items: 1
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_filtered: false
show_options: false
show_missing: true
show_missing_assets: true
save_report: true
tvdb_language: eng
ignore_ids:
ignore_imdb_ids:
playlist_sync_to_users: all
verify_ssl: true
plex:
url: http://PLEX_IP_HERE:32400
token: YOUR_TOKEN_HERE
timeout: 60
db_cache:
clean_bundles: false
empty_trash: false
optimize: false
tmdb:
apikey: YOUR_API_KEY_HERE
language: en
tautulli:
url: http://TAUTULLI_IP_HERE:8182
apikey: TAUTULLI_API_KEY_HERE
omdb:
apikey: OMDB_API_KEY
radarr:
url: http://RADARR_IP_HERE:7878
token: RADARR_TOKEN_HERE
add_missing: false
root_folder_path: /movies
monitor: false
availability: cinemas
quality_profile: HD - 720p/1080p
tag: kometa
add_existing: false
search: false
radarr_path:
plex_path:
sonarr:
url: http://SONARR_IP_HERE:8989
token: SONARR_TOKEN_HERE
add_missing: false
add_existing: false
root_folder_path: /tv
monitor: pilot
quality_profile: HD - 720p/1080p
language_profile: English
series_type: standard
season_folder: true
tag: kometa
search: true
cutoff_search: false
sonarr_path:
plex_path:
kind: ConfigMap
metadata:
name: kometa-config
namespace: media
Movie config map¶
Config maps for collections (movies in this example) are more simple!
apiVersion: v1
data:
movies.yaml: |
collections:
Tautulli Most Popular Movies:
sync_mode: sync
collection_order: custom
tautulli_top:
list_days: 180
list_size: 10
list_minimum: 1
kind: ConfigMap
metadata:
name: movie-config
namespace: media
TV config map¶
apiVersion: v1
data:
tv.yaml: |
collections:
Most Popular:
smart_label: originally_available.desc
sync_mode: sync
imdb_search:
type: tv_series, tv_mini_series
limit: 10
summary: The 10 most popular shows across the internet
sonarr_add_missing: true
sonarr_search: true
sonarr_monitor: pilot
Tautulli Most Popular:
sync_mode: sync
collection_order: custom
summary: The 10 most popular shows from Plex users
tautulli_popular:
list_days: 180
list_size: 10
kind: ConfigMap
metadata:
name: tv-config
namespace: media
Advanced: generate configuration with an Init Container
Creating dynamic configuration files with an init container¶
IMDb search results may include results for media which has not yet been released, resulting in a collection that is incomplete. In order to solve for this you can replace a static config map with a config file that is (re)generated when the cronjob starts each time. This can be done by including an init container which renders a Jinja template to a file in the PVC.
Including the init container in the cron job¶
NOTE the environment value named JINJA_DEST_FILE is the resulting name of the generated config file.
apiVersion: batch/v1
kind: CronJob
metadata:
name: kometa
namespace: media
spec:
schedule: "0 0 * * *"
jobTemplate:
spec:
template:
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
initContainers:
- name: render-dynamic-config
image: chrisjohnson00/jinja-init:v1.0.0
env:
# source and destination files
- name: JINJA_SRC_FILE
value: /config_src/tv.yaml
- name: JINJA_DEST_FILE
value: /config/tv.yaml
# let's be verbose
- name: VERBOSE
value: "1"
volumeMounts:
# configMap mount point
- name: tv-config-template
mountPath: /config_src
# target directory mount point; the final config file will be created here
- name: config
mountPath: /config
containers:
- name: kometa
image: kometateam/kometa:latest
imagePullPolicy: Always
args: [ "--run", "--read-only-config" ]
resources:
limits:
cpu: 100m
memory: 256Mi
requests:
cpu: 100m
memory: 125Mi
volumeMounts:
- name: config
mountPath: /config
- name: kometa-config
mountPath: /config/config.yml
subPath: config.yml
- name: movie-config
mountPath: /config/movies.yaml
subPath: movies.yaml
volumes:
- name: config
persistentVolumeClaim:
claimName: kometa
- configMap:
name: kometa-config
name: kometa-config
- configMap:
name: movie-config
name: movie-config
- configMap:
name: tv-config-jinja-template
name: tv-config-template
restartPolicy: OnFailure
Templatizing your configuration¶
{{ now().strftime('%Y-%m-%d') }} is the Jinja code, which when rendered will be replaced with the current date in YYYY-MM-DD format.
now() is a special method defined in the Python code running in the init container to allow access to the current date,
so changing the output format is as simple as changing the string in strftime to your desired date/time format for your list source.
apiVersion: v1
data:
tv.yaml: |
collections:
Most Popular:
smart_label: originally_available.desc
sync_mode: sync
imdb_search:
type: tv_series, tv_mini_series
release.after: 1979-12-31
release.before: {{ now().strftime('%Y-%m-%d') }}
limit: 10
summary: The 10 most popular shows across the internet
sonarr_add_missing: true
sonarr_search: true
sonarr_monitor: pilot
Tautulli Most Popular:
sync_mode: sync
collection_order: custom
summary: The 10 most popular shows from Plex users
tautulli_popular:
list_days: 180
list_size: 10
kind: ConfigMap
metadata:
name: tv-config-jinja-template
namespace: media
QNAP¶
Container Station v. 3.0.5.623
-
Open Container Station; click “Images”
-
Select “Pull” from the top-right
-
Leave Mode set to “Basic Mode”
For the Registry select “Docker Hub”
Under the "Image" section you will be typing in the name and version of the docker image you wish to pull. Type in the image you wish to use as follows:
-
Then click Pull.
Note: You can repeat this step for each of the different versions and you’ll end up with this:
After the pull is complete the image(s) will now be available for use.
-
From the "Images" menu under the "Actions" column click the "play" button to bring up the “Create Container” option.
-
"Create Container" Step 1: "Select Image" – you’ve already done this so just click "Next".
-
"Create Container" Step 2: "Configure Container" - you can edit the name if you wish. From here on you’ll be working in the Advanced Settings sub-menu. Click on "Advanced Settings".
-
You can add command-line switches to the "Command" field here. Do not edit the "Entrypoint" field.
For example, if you wanted to run the collections you have defined as tests, add the
--run-testscommand-line flag:Generally speaking, editing these is not recommended as it is easy to render the container non-functional by doing so.
It is more typical in Docker contexts to set these things with environment variables.
Anything you can do via command-line arguments can be done with Environment Variables, which is more typical in Docker environments.
For example, you could add an environment variable named
KOMETA_TESTSwith a value oftrueto run the collections you have defined as tests.Click "Environments" on the left to set environment variables.
-
Select "Storage":
-
Click the Trash Can icon to remove the default Storage Mapping:
-
Click "Add Volume" then choose “Bind Mount Host Path”:
-
Select the Yellow Folder icon
“Select Host Path” will appear as seen below, letting you select the folder you want to use.
After selecting your folder and choosing "Apply" the "Host" path will be filled in. For the "Container" path you MUST use
/config: -
Select Next to advance to “Step 3 Summary”
-
Select Finish
Updating Kometa
To update, stop the container, delete it, pull the new image and create the container again with your config folder mounted at /config. Do not update a container in place or copy an old container's Entrypoint or PATH into the new one: they are saved with the container, and an old Entrypoint can stop a newer image from starting with a No module named 'packaging' error.
Container Station v. unknown
-
Open Container Station; click "Create" in the left column.
-
Search for
kometateam/kometa.On the "Docker Hub" tab you should see the image; click on it and click "Install".
-
Select the version you want to run from the dropdown and click "Next".
The options are: -
latest: most recent official release; typically the most stable -develop: development release, contains new features that haven't made it to latest yet, but may have minor problems -
Change the container name if you wish.
Command line arguments can be entered in the "Entrypoint" field after
/tini -s /.venv/bin/python3 kometa.py --IMPORTANT: DO NOT REMOVE ANY ELEMENT OF THAT TEXT. DO NOT ENTER ANYTHING INTO THE "Command" FIELD.
For example, you could enter the following into the "Entrypoint" field to make Kometa run immediately when the container starts up:
/tini -s /.venv/bin/python3 kometa.py -- --runTypically, in a Docker environment, this sort of thing is done via Environment Variables [the next step here]. Editing the "Entrypoint" is not recommended, as it's easy to render the container non-functional if you are not sure what you're doing.
Information on available command line arguments can be found here
Click "Advanced Settings >>"
-
Environment Variables can be added here:
Anything you can do via command-line arguments can be done with Environment Variables, which is more typical in Docker environments.
For example, you could add an environment variable named
KOMETA_RUNwith a value ofTrueto make Kometa run immediately when the container starts up.Information on available Environment Variables can be found here
-
Click Shared Folders Tab:
Click "Add" in the middle section "Volume from host".
"Volume from host" is the location on your QNAP where you want to store the config files.
"Mount Point" must be
/configWhen finished, click "Create".
Updating Kometa
To update, stop the container, delete it, pull the new image and create the container again with your config folder mounted at /config. Do not update a container in place or copy an old container's Entrypoint or PATH into the new one: they are saved with the container, and an old Entrypoint can stop a newer image from starting with a No module named 'packaging' error.
Synology¶
DiskStation Manager v. 7.2
Container Manager¶
-
Open the Package Center app from the Synology Web GUI.
-
Type
dockerin the search bar and once it comes up, click "Install" next to Container Manager if it isn't already installed. Then click "Open" to bring up the Container Manager. -
Click "Open" to bring up the Container Manager.
Creating the Kometa container¶
-
Click the registry tab, type "Kometa" in the search bar, and select the
kometateam/kometaimage. -
When you click the image, a popup will appear where you can choose the tag [version of the image] you want to use. Most likely, this is
latest. If you need to use one of these other tags, you would choose it here. Once you choose a tag, click 'Apply'. -
The image will be downloaded, which shouldn't take long.
-
Once the download completes, click on the "Container" tab. Click "create" to create a new container.
-
This will bring up the container creation wizard.
-
Click the top UI element and choose the image you downloaded.
-
Enter a name, and check the "auto-start" box.
NOTE: The name you enter here is the name of the container, not the name of the image. You can name it whatever you want.
IMPORTANT: If you are creating an image that you will be configuring to run immediately, you should NOT check the "auto-start" box. That will cause the container to loop endlessly. If you don't know what this means yet, check the box.
Click Next.
-
On this screen, you'll create the one volume map that Kometa requires.
Click "Add Folder" under "Volume Settings".
-
Click "docker".
-
Click "Create Folder" and enter a name.
Click "OK".
-
Make sure the folder you just created is selected, and click "Select".
-
Enter
/configin the box in the middle of the pane. Enter exactly that, no more, no less. -
There is one setting here that you may need to change, and only you know if you do. Scroll down to the network settings. Depending on where Plex is running, you may need to change this from "bridge" to "host". If you don't know what this means, you probably don't need to change it.
Click "Next".
-
You're presented with a summary of the things you've done so far. Click "Done"
-
You will probably be presented with a bunch of errors; these are expected. Kometa cannot find the config file it needs, so it will fail to start. The auto-start setting you checked earlier is making it try over and over. This is normal.
-
If you click on the container, then on the log tab, you will see this specific error.
Adding the Kometa config file.¶
This is where you need the config.yml that you created with the walkthrough earlier.
-
Open File Station. In the sidebar, expand the "docker" item and click on the folder you created earlier.
-
At the top of the window, click "Upload" and choose "Upload -> Overwrite".
-
Navigate to the
config.ymlfile you created earlier and click "Upload". The file will appear in the list. -
You will note that the errors have stopped. If you go back to Container Manager, you will see that the container is running.
At this point, Kometa is waiting until 5AM to wake up and process the config file.
Updating Kometa
To update, stop the container, delete it, pull the new image and create the container again with your config folder mounted at /config. Do not update a container in place or copy an old container's Entrypoint or PATH into the new one: they are saved with the container, and an old Entrypoint can stop a newer image from starting with a No module named 'packaging' error.
Some unidentified older version
Prerequisite: installing Docker¶
-
Open the Package Center app from the Synology Web GUI.
-
Type
dockerin the search bar and once it comes up, click "Install" to add Docker. Then click "Open" to bring it up.
Installing Kometa¶
-
Open the Docker app.
-
Search and Download the Image.
- Click Registry.
- Search for
kometateam/kometa. - Select the Repository.
- Click Download.
-
Select the tag you want to run from the dropdown and click "Select."
The options are:
latest- most recent official release; typically the most stable.develop- development release, contains new features that haven't made it to latest yet, but may have minor problems.
-
Select the Image and Create a Container.
- Click Image.
- Select the
kometateam/kometaImage. - Click Launch.
From this point on the setup looks a little different depending on if the Synology is running DiskStation Manager 7 or DiskStation Manager 6.
-
Specify your docker network type. Then click "Next".
-
You can name the Container whatever you want using the "Container Name" text Box.
-
To add Environment Variables and Command Line Arguments click "Advanced Settings". (Optional)
Information on available Command Line Arguments and Environment Variables can be found here
To add an Environment Variable click "Environment" then click Add" and then fill in the Variable and Value.
To use Command Line Arguments click "Execution Command" put the arguments in the "Command" text field.
Click "Save" to save the settings and go back to the General Settings Screen.
-
Click "Next" from the General Settings Screen to get to the Port Settings Screen where you just want to click "Next" as Kometa has no Ports.
-
Next we need to add your config folder to the container. From the Volume Settings Screen click "Add Folder".
-
Select from your Synology File System where you want to store your Kometa config files and then enter
/configas the "Mount path". Then click "Next" to go to the Summary Page. -
From the Summary Page select "Done" to finish and creating the container.
-
You can name the Container whatever you want using the "Container Name" text Box. Then click "Advanced Settings".
-
Next we need to add your config folder to the container. Select the "Volume" Tab, click "Add Folder," and select from your Synology File System where you want to store your Kometa config files.
-
Enter
/configas the "Mount Point." -
Select the "Environment" Tab. (Optional)
Environment Variables and Command Line Arguments can be added here.
- To add an Environment Variable Click "Add" and then fill in the Variable and Value.
- To use Command Line Arguments put the arguments in the "Command" text field.
Information on available Command Line Arguments and Environment Variables can be found here
-
Select "Apply" to save the "Advanced Settings," select "Next" to go to the Summary, and select "Done" to finish and create the container.
Updating Kometa
To update, stop the container, delete it, pull the new image and create the container again with your config folder mounted at /config. Do not update a container in place or copy an old container's Entrypoint or PATH into the new one: they are saved with the container, and an old Entrypoint can stop a newer image from starting with a No module named 'packaging' error.
TrueNAS¶
Kometa installation walkthrough for TrueNAS Scale¶
Thanks to i.am.stonecutter on Discord.
This guide provides step-by-step instructions to install Kometa on TrueNAS Scale (Community Edition, version 25.04.0 or later) using a Docker container.
Prerequisites:¶
- TrueNAS Scale (version 25.04.0 or later) with internet access
- Administrative access to TrueNAS Scale
- 'sudo' privileges for terminal access
- Plex Media Server installed
- Basic understanding of Docker and YAML
Setup¶
Step 1: sign into TrueNAS web interface¶
Step 2: create Kometa dataset¶
-
Navigate to Datasets.
-
Create a dataset named kometa using the Apps preset.
-
Edit the ACL for the kometa dataset to ensure proper permissions for your user setup. Default settings are usually sufficient, but adjust if issues arise.
Step 3: set up config directory¶
- Connect to TrueNAS Scale via SSH.
- Run
sudo mcto launch Midnight Commander. - Navigate to the kometa dataset root.
- Create a folder named
config. -
Copy your
config.ymlfile to the config directory using Midnight Commander.
Step 4: deploy Kometa Docker container¶
- In the TrueNAS web interface, go to Apps > Discover Apps.
- Click the three-dot menu and select Install via YAML.
-
In the YAML window, set the container name to
kometaand use the following docker-compose template, editing the timezone, volume mapping, and UID/GID as needed: -
Deploy the YAML and verify the
kometastatus shows RUNNING in green.
Step 5: run Kometa after completing the configuration below¶
This is an optional step you can perform if you want to fire off a run right this second to verify that things are working. Whether or not you do this, Kometa will wake up tomorrow at 5AM to process the config [assuming you used the docker-compose YAML just above].
- Return to the TrueNAS Scale SSH session.
-
Execute the following command to force an immediate library refresh based on your
config.yml:sudo docker run --rm -it -v "/mnt/YOUR-STORAGE-POOL/YOUR-DATASET/kometa/config:/config:rw" kometateam/kometa --runOf course, replace
YOUR-STORAGE-POOL/YOUR-DATASETto suit your specific setup.
Step 6: verify and expand¶
- Check your Plex library for updated collections.
- Explore Kometa’s Defaults for pre-made collections.
- Refer to the Kometa Wiki for advanced configurations.
Troubleshooting¶
Container not running: Check Docker logs in TrueNAS for errors.
Config issues: Verify config.yml syntax and permissions.
Plex not updating: Confirm Plex URL, token, and network settings.
Notes¶
The config.yml is portable; adjust paths if moving.
Regularly update the Kometa image via Apps > Update.
Docker Compose¶
Install with Docker Compose¶
Install Docker with the Compose plugin, then verify it:
Create a kometa directory in your home directory, then a config directory inside it. Open a terminal in kometa. Save this as compose.yml there:
The ./config directory on the host will persist configuration and logs. Complete the configuration below before starting a run. After the first successful run, docker compose up -d starts the scheduled service. Use docker compose logs -f kometa to follow it and docker compose down to stop it without deleting your configuration.
Configure Kometa¶
Kometa runs from the command line and reads YAML files. It can run on a different machine from Plex, as long as it can reach Plex over the network. It does not need access to your media files.
Gather your Plex server URL, Plex token, and TMDb API key. Keep tokens in your own configuration file; this page does not collect them.
Getting a TMDb API key¶
Note that if you already have an API key, you can use that one. You don’t need another.
Go to https://www.themoviedb.org/. Log into your account [or create one if you don’t have one already], then go to “Settings” under your account menu.
In the sidebar menu on the left, select “API”.
Click to generate a new API key under "Request an API Key". If there is already one there, copy it and go to the next step.
There will be a form to fill out; the answers are arbitrary. The URL can be your personal website, or probably even google.com or the like.
Once you’ve done that there should be an API Key available on this screen. If you see v3 and v4, you want the v3 key.
Copy that value, you’ll need it for the config file.
Getting a Plex URL and token¶
The Plex URL is whatever URL you’d use from this machine to connect directly to your Plex server [i.e. NOT app.plex.tv].
As with the TMDb API Key, if you already have a Plex Token, you can use that one.
This article will describe how to get a token: Finding an authentication token
Create your configuration¶
Save config.yml inside the config directory in your Kometa checkout. Create an assets subdirectory there too.
Save config.yml in the host directory mapped to /config; inside the container it must appear as /config/config.yml. Create an assets subdirectory in that host directory too.
Use a plain text editor and two spaces for YAML indentation. Replace the four placeholders below, including the library name with its exact name in Plex. For a TV library, use the name of that library instead.
Put these settings in the Kometa ConfigMap shown above and apply it before starting a Job. Keep the collection-file ConfigMaps consistent with the paths referenced in that configuration. The ConfigMap is mounted read-only; edit and reapply it to change settings rather than editing it inside a Pod.
Here's the absolute minimum config.yml file you need to get started:
libraries:
NAME_OF_YOUR_MOVIE_LIBRARY:
collection_files:
- default: basic
plex:
url: YOUR_PLEX_URL
token: YOUR_PLEX_TOKEN
tmdb:
apikey: YOUR_TMDB_API_KEY
Change those four UPPER_CASE items to your actual values, and you're good to go. Running that file will create a couple of collections in your Plex movie library.
Kometa will also fill in that file with a lot of defaults, ready for you to modify and expand as you learn more about Kometa. It does this so that as new settings are added, the default values are inserted into your config file, ready for you to modify.
Once you have Kometa set up and are actively making changes, most of your changes will happen under the libraries section of the config file. Most. Not "all", most.
There are of course changes you can and may want to do elsewhere to support your requirements, but the vast majority of your work will be in the libraries section.
Run and verify¶
Save your configuration, then run Kometa using the instructions below. Wait for any active Kometa run to finish before starting another run against the same configuration. A container waiting for its next scheduled run can remain running while you use its console.
Replace FULL_PATH_TO_CONFIG with the full host path of the directory containing config.yml:
Use your platform's container console to run the following inside the Kometa container. The host configuration directory must be mounted at /config:
If the container exits immediately, create and save config.yml in its host configuration directory first, then start the container and reopen its console. For TrueNAS you can also use the one-shot Docker command shown in its setup steps.
Apply the manifests from the Kubernetes instructions, then trigger the CronJob manually. Substitute the namespace and CronJob name from your manifest:
kubectl -n YOUR_NAMESPACE create job --from=cronjob/YOUR_CRONJOB_NAME kometa-first-run
kubectl -n YOUR_NAMESPACE logs -f job/kometa-first-run
Use a fresh Job name when repeating this check.
Look for successful TMDb and Plex connections, your library being processed, and a completed run. Check Plex for the collections created by the basic default. If connections fail, check your credentials, the exact library name, and whether Plex is reachable from the selected environment. See help and logs.
Optional examples¶
Add one feature at a time and rerun Kometa to check the result. Use a small test library first, especially when trying overlays.
Add more default collections
Under your existing library, add another default:
Save and rerun using the same command as your first run. Browse collection defaults for additional choices.
Create a custom collection file
Save collections.yml alongside config.yml:
Add it under your library's collection_files:
Mount the file from a ConfigMap as shown in the platform instructions.
Rerun and look for the new collection. See collection files for more builders and settings.
Try an overlay
Add overlay_files under the same library, alongside collection_files:
Rerun Kometa and inspect the posters in Plex. Read the overlay guide before expanding or removing overlays.
Scheduling and updates¶
A normal Kometa process without --run waits for its scheduled run, by default at 05:00. Configure your desired schedule using commands and environment variables. Kubernetes uses the CronJob schedule in its manifest. Avoid scheduling the same configuration in more than one place.
To update a local installation, stop Kometa, then run git pull followed by uv sync from your checkout. Start Kometa again with uv run python kometa.py, adding your usual flags.
To update Docker Run, pull the image before the next run with docker pull kometateam/kometa.
To update Compose, use docker compose pull and recreate the scheduled service with docker compose up -d.
Use your platform's image update and container recreation controls, preserving the /config mount.
To update Kubernetes, update the image in the CronJob manifest and apply it; new Jobs use the new image.
Use the image or code branch matching the wiki version you are reading. See Docker images for supported tags and variants.
Your configuration is portable between environments. Copy its directory, adjust paths and service URLs, and select your new environment above. Continue with understanding your config and files, YAML basics, and defaults.












































































