3.6 KiB
Installing
To install Kyoo, you need docker and docker-compose. Those can be installed from here for Linux Mac or Windows. Docker is used to run each services of Kyoo in an isolated environment with all the dependencies they need.
Kyoo also needs 3 files to work properly. Two of them can simply be copy-pasted from this repository, the other needs to be filled in with your configurations. Those files can be put in any directory of your choice.
Those 3 files are:
- A
docker-compose.yml(simply copy docker-compose.prod.yml from here). - A
nginx.conf.templatecopied from here. - A
.envfile that you will need to fill. Look at the example .env.example
If you want an explanation of what are those files, you can read the following: The
docker-compose.ymlfile describes the different services of Kyoo, where they should be downloaded and their start order.
Thenignx.conf.templatefile describes which service will be called when accessing the URL of Kyoo.
The.envfile contains all the configuration options that the services indocker-compose.ymlwill read.
To retrieve metadata, Kyoo will need to communicate with an external service. For now, that is the movie database.
For this purpose, you will need to get an API Key. For that, go to themoviedb.org and create an account, then
go here and copy the API Key (v3 auth), paste it after the THEMOVIEDB_APIKEY= on the .env file.
The next and last step is actually starting Kyoo. To do that, open a terminal in the same directory as the 3 configurations files
and run docker-compose up -d.
Congratulation, everything is now ready to use Kyoo. You can navigate to http://localhost:8901 on a web browser to see your instance of Kyoo.
Installing TLDR
- Install docker & docker-compose
- Download the
docker-compose.yml,nginx.conf.templateand.envfiles - Fill the
.envfile with your configuration options (and an API Key from themoviedb.org) - Run
docker-compose up -d
Updating
Updating Kyoo is exactly the same as installing it. Get an updated version of the docker-compose.yml and nginx.conf.template files and
unsure that your .env contains all the options specified in the updated .env.example file.
After that, you will need to update Kyoo's services. For that, open a terminal in the configuration's directory and run
the command docker-compose pull. You are now ready to restart Kyoo, you can run docker-compose up -d.
You can also enable automatic updates via an external tool like watchtower.
TLDR: docker run -d --name watchtower -e WATCHTOWER_CLEANUP=true -e WATCHTOWER_POLL_INTERVAL=86400 -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower
Uninstalling
To uninstall Kyoo, you need to open a terminal in the configuration's directory and run docker-compose down. This will
stop Kyoo's services. You can then remove the configuration files.