You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
144 lines
6.3 KiB
144 lines
6.3 KiB
7 months ago
|
# Installing Kometa
|
||
3 years ago
|
|
||
7 months ago
|
Generally, Kometa can be installed in one of two ways:
|
||
3 years ago
|
|
||
|
1. Running on a system as a Python script [we will refer to this as a "local" install]
|
||
|
2. Running as a Docker container
|
||
|
|
||
|
GENERALLY SPEAKING, running as a Docker container is simpler, as you won't have to be concerned about installing Python, or support libraries, or any possible system conflicts generated by those actions.
|
||
|
|
||
|
For this reason, it's generally recommended that you install via Docker rather than directly on the host.
|
||
|
|
||
|
If you have some specific reason to avoid Docker, or you prefer running it as a Python script for some particular reason, then this general recommendation is not aimed at you. It's aimed at someone who doesn't have an existing compelling reason to choose one over the other.
|
||
|
|
||
7 months ago
|
## Where to install Kometa
|
||
1 year ago
|
|
||
7 months ago
|
Kometa communicates with all services [Plex, Radarr, Trakt, etc] via their network APIs, so Kometa does *not* have to be installed on the same machine as Plex. Kometa does not require [nor would it use] access to the filesystem behind your Plex libraries.
|
||
1 year ago
|
|
||
7 months ago
|
Perhaps your Plex server is remote and you want to run Kometa on a machine in your home. That's fine. The relative locations of Kometa and Plex have no effect on the installation [except perhaps the URL you would use in the config].
|
||
1 year ago
|
|
||
3 years ago
|
## Install Walkthroughs
|
||
|
|
||
3 years ago
|
The installation overviews on this page are aimed at users who have previous experience of installing services via command-line terminal commands.
|
||
|
|
||
|
For those who need full installation walkthroughs, please refer to the following walkthrough guides:
|
||
3 years ago
|
|
||
11 months ago
|
* [Local Walkthrough](local.md) - follow this if you are running the script directly on Windows, OS X, or Linux
|
||
|
* [Docker Walkthrough](docker.md) - this discusses using Docker at the command line
|
||
3 years ago
|
|
||
1 year ago
|
If you are using unRAID, Kubernetes, QNAP, or Synology refer to the following basic guide to Docker container setup for each system:
|
||
1 year ago
|
|
||
7 months ago
|
**this doesn't cover the Kometa setup specifics found in the guides above with regard to creating the config file and collection file, so you may want to go through the [Docker Walkthrough](docker.md) first on your computer to gain that understanding.**
|
||
3 years ago
|
|
||
11 months ago
|
* [unRAID Walkthrough](unraid.md)
|
||
|
* [Kubernetes Walkthrough](kubernetes.md)
|
||
|
* [QNAP Walkthrough](qnap.md)
|
||
|
* [Synology Walkthrough](synology.md)
|
||
3 years ago
|
|
||
|
## Local Install Overview
|
||
|
|
||
7 months ago
|
Kometa is compatible with Python 3.8 through 3.11. Later versions may function but are untested.
|
||
3 years ago
|
|
||
11 months ago
|
These are high-level steps which assume the user has knowledge of python and pip, and the general ability to troubleshoot issues. For a detailed step-by-step walkthrough, refer to the [Local Walkthrough](local.md) guide.
|
||
3 years ago
|
|
||
7 months ago
|
1. Clone or [download and unzip](https://github.com/Kometa-Team/Kometa/archive/refs/heads/master.zip) the repo.
|
||
3 years ago
|
|
||
|
```shell
|
||
7 months ago
|
git clone https://github.com/Kometa-Team/Kometa
|
||
3 years ago
|
```
|
||
|
2. Install dependencies:
|
||
|
|
||
|
```shell
|
||
|
pip install -r requirements.txt
|
||
|
```
|
||
|
|
||
|
3. If the above command fails, run the following command:
|
||
|
|
||
|
```shell
|
||
|
pip install -r requirements.txt --ignore-installed
|
||
|
```
|
||
|
|
||
7 months ago
|
At this point Kometa has been installed, and you can verify installation by running:
|
||
3 years ago
|
|
||
|
```shell
|
||
7 months ago
|
python kometa.py
|
||
3 years ago
|
```
|
||
|
|
||
|
## Docker Install Overview
|
||
|
|
||
|
### Docker Run:
|
||
|
|
||
|
```shell
|
||
7 months ago
|
docker run -it -v <PATH_TO_CONFIG>:/config:rw kometateam/kometa
|
||
3 years ago
|
```
|
||
1 year ago
|
|
||
|
- The `-it` flag allows you to interact with the script when needed (such as for Trakt or MyAnimeList authentication).
|
||
|
- The `-v <PATH_TO_CONFIG>:/config:rw` flag mounts the location you choose as a persistent volume to store your files.
|
||
|
|
||
|
* Change `<PATH_TO_CONFIG>` to a folder where your config.yml and other files are.
|
||
|
* The docker image defaults to running the configuration file named `config.yml` which resides in your persistent volume.
|
||
|
* If your directory has spaces (such as "My Documents"), place quotation marks around your directory pathing as shown here: `-v "<PATH_TO_CONFIG>:/config:rw"`
|
||
3 years ago
|
|
||
|
|
||
|
Example Docker Run command:
|
||
|
|
||
3 years ago
|
These docs are assuming you have a basic understanding of Docker concepts. One place to get familiar with Docker would be the [official tutorial](https://www.docker.com/101-tutorial/).
|
||
|
|
||
3 years ago
|
```shell
|
||
7 months ago
|
docker run -it -v "X:\Media\Kometa\config:/config:rw" kometateam/kometa
|
||
3 years ago
|
```
|
||
|
|
||
|
### Docker Compose:
|
||
|
|
||
1 year ago
|
This is an example docker-compose which will have to be edited to suit your environment before use, but illustrates the minimal contents:
|
||
|
|
||
3 years ago
|
```yaml
|
||
|
services:
|
||
7 months ago
|
kometa:
|
||
|
image: kometateam/kometa
|
||
|
container_name: kometa
|
||
3 years ago
|
environment:
|
||
|
- TZ=TIMEZONE #optional
|
||
|
volumes:
|
||
|
- /path/to/config:/config
|
||
|
restart: unless-stopped
|
||
|
```
|
||
2 years ago
|
|
||
|
### Dockerfile
|
||
|
|
||
7 months ago
|
A `Dockerfile` is included within the GitHub repository for those who require it, although this is only suggested for those with knowledge of dockerfiles. The official Kometa build is available on the [Dockerhub Website](https://hub.docker.com/r/kometateam/kometa).
|
||
2 years ago
|
|
||
1 year ago
|
## Customizing the docker-compose file with runtime flags and ENV vars
|
||
2 years ago
|
|
||
7 months ago
|
Kometa's behavior can be modified in a variety of ways using either runtime flags or environment variables. These flags and vars are detailed [here](../environmental.md).
|
||
2 years ago
|
|
||
7 months ago
|
This is optional, and is not necessary to run Kometa. Many if not most users will have no reason to do this and can use something more like the basic docker-compose just above.
|
||
1 year ago
|
|
||
|
This example docker-compose would create a container that runs immediately upon start (rather than waiting until 5AM), uses a particular config file, processes only overlays on only one library, and exits when done. Those four changes are made by the four `environment:` entries, which are discussed in detail after the example:
|
||
|
|
||
|
As with the one above, this is an example docker-compose which will have to be edited to suit your environment before use.
|
||
|
|
||
2 years ago
|
```yaml
|
||
|
services:
|
||
7 months ago
|
kometa:
|
||
|
image: kometateam/kometa
|
||
|
container_name: kometa
|
||
2 years ago
|
environment:
|
||
7 months ago
|
- KOMETA_RUN=true
|
||
|
- KOMETA_CONFIG=/config/special-config.yml
|
||
|
- KOMETA_OVERLAYS_ONLY=true
|
||
|
- KOMETA_RUN_LIBRARIES=Movies
|
||
2 years ago
|
volumes:
|
||
|
- /path/to/config:/config
|
||
|
```
|
||
1 year ago
|
|
||
7 months ago
|
`- KOMETA_RUN=true` tells Kometa to run right away,
|
||
1 year ago
|
|
||
7 months ago
|
`- KOMETA_CONFIG=/config/special-config.yml` points Kometa at a particular config file,
|
||
1 year ago
|
|
||
7 months ago
|
`- KOMETA_OVERLAYS_ONLY=true` tells Kometa to run overlays only, and
|
||
1 year ago
|
|
||
7 months ago
|
`- KOMETA_RUN_LIBRARIES=Movies` tells Kometa to process only a library called "Movies"
|
||
1 year ago
|
|
||
11 months ago
|
Again, a list of the available environment variables can be found [here](../environmental.md).
|