This is a quick walkthrough of setting up the Kometa Docker container in the Synology UI.
## Prerequisite: Installing Docker
This walkthrough discusses **only** the steps required to set up a Kometa container on a Synology NAS. It does not cover creating a config file for Kometa.
1. Open the Package Center app from the Synology Web GUI.
There are two walkthroughs for getting familiar with Kometa:
![Prerequisite 1](images/synology-01.png)
1. [Local Python script](./local.md)
2. [Docker container](./docker.md)
2. Type `docker` in the search bar and once it comes up, click "Install" to add Docker. Then click "Open" to bring it up.
You should go through one of those prior to doing this container setup, as they will familiarize you with the tool and how it works, and will produce the `config.yml` you will need to use with this process.
![Prerequisite 2](images/synology-02.png)
=== "DiskStation Manager v. 7.2"
## Installing Kometa
## Container Manager
1. Open the Docker app.
1. Open the Package Center app from the Synology Web GUI.
![Step 1](images/synology-03.png)
![Prerequisite 1](images/dsm72-01.png)
2. Search and Download the Image.
2. Type `docker` in 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.
1. Click Registry.
2. Search for `kometateam/kometa`.
3. Select the Repository.
4. Click Download.
![Prerequisite 2](images/dsm72-02.png)
![Step 2](images/synology-04.png)
3. Click "Open" to bring up the Container Manager.
3. Select the tag you want to run from the dropdown and click "Select."
![Prerequisite 2](images/dsm72-03.png)
The options are:
## Creating the Kometa container
- `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.
- `nightly` - bleeding-edge development version; latest fixes go here, but breakage should be expected.
1. Click the registry tab, type "Kometa" in the search bar, and select the `kometateam/kometa` image.
![Step 3](images/synology-05.png)
![Step 1](images/dsm72-04.png)
4. Select the Image and Create a Container.
2. 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'.
1. Click Image.
2. Select the `kometateam/kometa` Image.
3. Click Launch.
![Step 1](images/dsm72-05.png)
![Step 4](images/synology-06.png)
3. The image will be downloaded, which shouldn't take long.
**From this point on the setup looks a little different depending on if the Synology is running DiskStation Manager 7 or DiskStation Manager 6.**
![Step 1](images/dsm72-06.png)
=== "DiskStation Manager 7"
3. Once the download completes, click on the "Container" tab. Click "create" to create a new container.
5. Specify your docker network type. Then click "Next".
![Step 1](images/dsm72-07.png)
![](images/dsm7-01.png)
4. This will bring up the container creation wizard.
6. You can name the Container whatever you want using the "Container Name" text Box.
![Step 1](images/dsm72-08.png)
![](images/dsm7-02.png)
5. Click the top UI element and choose the image you downloaded.
7. To add Environment Variables and Command Line Arguments click "Advanced Settings". (Optional)
![Step 1](images/dsm72-09.png)
Information on available Command Line Arguments and Environment Variables can be found [here](../environmental.md)
6. Enter a name, and check the "auto-start" box.
To add an Environment Variable click "Environment" then click Add" and then fill in the Variable and Value.
![Step 1](images/dsm72-10.png)
![](images/dsm7-03.png)
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.
To use Command Line Arguments click "Execution Command" put the arguments in the "Command" text field.
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.
![](images/dsm7-04.png)
Click Next.
Click "Save" to save the settings and go back to the General Settings Screen.
7. On this screen, you'll create the one volume map that Kometa requires.
8. 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.
![Step 1](images/dsm72-11.png)
![](images/dsm7-05.png)
Click "Add Folder" under "Volume Settings".
9. Next we need to add your config folder to the container. From the Volume Settings Screen click "Add Folder".
8. Click "docker".
![](images/dsm7-06.png)
![Step 1](images/dsm72-12.png)
10. Select from your Synology File System where you want to store your Kometa config files and then enter `/config` as the "Mount path". Then click "Next" to go to the Summary Page.
9. Click "Create Folder" and enter a name.
![](images/dsm7-07.png)
![Step 1](images/dsm72-13.png)
11. From the Summary Page select "Done" to finish and creating the container.
Click "OK".
![](images/dsm7-08.png)
10. Make sure the folder you just created is selected, and click "Select".
=== "DiskStation Manager 6"
![Step 1](images/dsm72-14.png)
5. You can name the Container whatever you want using the "Container Name" text Box. Then click "Advanced Settings".
11. Enter `/config` in the box in the middle of the pane. Enter *exactly that*, no more, no less.
![](images/dsm6-01.png)
![Step 1](images/dsm72-15.png)
6. 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.
12. 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.
![](images/dsm6-02.png)
![Step 1](images/dsm72-16.png)
7. Enter `/config` as the "Mount Point."
Click "Next".
![](images/dsm6-03.png)
13. You're presented with a summary of the things you've done so far. Click "Done"
8. Select the "Environment" Tab. (Optional)
Environment Variables and Command Line Arguments can be added here.
![Step 1](images/dsm72-17.png)
- 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.
14. 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.
Information on available Command Line Arguments and Environment Variables can be found [here](../environmental.md)
![Step 1](images/dsm72-18.png)
![](images/dsm6-04.png)
15. If you click on the container, then on the log tab, you will see this specific error.
9. Select "Apply" to save the "Advanced Settings," select "Next" to go to the Summary, and select "Done" to finish and create the container.
![Step 1](images/dsm72-19.png)
![](images/dsm6-05.png)
## Adding the Kometa config file.
This is where you need the `config.yml` that you created with the walkthrough earlier.
1. Open File Station. In the sidebar, expand the "docker" item and click on the folder you created earlier.
![Step 1](images/dsm72-20.png)
2. At the top of hte window, click "Upload" and choose "Upload -> Overwrite".
![Step 1](images/dsm72-21.png)
3. Navigate to the `config.yml` file you created earlier and click "Upload". The file will appear in the list.
![Step 1](images/dsm72-22.png)
4. You will note that the errors have stopped. If you go back to Container Manager, you will see that the container is running.
![Step 1](images/dsm72-23.png)
At this point, Kometa is waiting until 5AM to wake up and process the config file.
=== "Some unidentified older version"
## Prerequisite: Installing Docker
1. Open the Package Center app from the Synology Web GUI.
![Prerequisite 1](images/synology-01.png)
2. Type `docker` in the search bar and once it comes up, click "Install" to add Docker. Then click "Open" to bring it up.
![Prerequisite 2](images/synology-02.png)
## Installing Kometa
1. Open the Docker app.
![Step 1](images/synology-03.png)
2. Search and Download the Image.
1. Click Registry.
2. Search for `kometateam/kometa`.
3. Select the Repository.
4. Click Download.
![Step 2](images/synology-04.png)
3. 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.
- `nightly` - bleeding-edge development version; latest fixes go here, but breakage should be expected.
![Step 3](images/synology-05.png)
4. Select the Image and Create a Container.
1. Click Image.
2. Select the `kometateam/kometa` Image.
3. Click Launch.
![Step 4](images/synology-06.png)
**From this point on the setup looks a little different depending on if the Synology is running DiskStation Manager 7 or DiskStation Manager 6.**
=== "DiskStation Manager 7"
5. Specify your docker network type. Then click "Next".
![](images/dsm7-01.png)
6. You can name the Container whatever you want using the "Container Name" text Box.
![](images/dsm7-02.png)
7. 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](../environmental.md)
To add an Environment Variable click "Environment" then click Add" and then fill in the Variable and Value.
![](images/dsm7-03.png)
To use Command Line Arguments click "Execution Command" put the arguments in the "Command" text field.
![](images/dsm7-04.png)
Click "Save" to save the settings and go back to the General Settings Screen.
8. 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.
![](images/dsm7-05.png)
9. Next we need to add your config folder to the container. From the Volume Settings Screen click "Add Folder".
![](images/dsm7-06.png)
10. Select from your Synology File System where you want to store your Kometa config files and then enter `/config` as the "Mount path". Then click "Next" to go to the Summary Page.
![](images/dsm7-07.png)
11. From the Summary Page select "Done" to finish and creating the container.
![](images/dsm7-08.png)
=== "DiskStation Manager 6"
5. You can name the Container whatever you want using the "Container Name" text Box. Then click "Advanced Settings".
![](images/dsm6-01.png)
6. 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.
![](images/dsm6-02.png)
7. Enter `/config` as the "Mount Point."
![](images/dsm6-03.png)
8. 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](../environmental.md)
![](images/dsm6-04.png)
9. Select "Apply" to save the "Advanced Settings," select "Next" to go to the Summary, and select "Done" to finish and create the container.