Want to skip the self-assembly, and have Komga INSTANTLY "Just Workβ’"?
ElfHosted is an open-source app hosting platform (geek-cookbook-as-a-service), crafted with love by @funkypenguin - get your ElfHosted instance of Komga now!
So you've just watched a bunch of superhero movies, and you're suddenly inspired to deep-dive into the weird world of comic books? You're already rocking AutoPirate with Mylar and NZBGet to grab content, but how to manage and enjoy your growing collection?
Komga is a media server with a beautifully slick interface, allowing you to read your comics / manga in CBZ, CBR, PDF and epub format. Komga includes an integrated web reader, as well as a Tachiyomi plugin and an OPDS server for integration with other mobile apps such as Chunky on iPad.
DNS entry for the hostname you intend to use (or a wildcard), pointed to your keepalived IP
Related:
Traefik Forward Auth or Authelia to secure your Traefik-exposed services with an additional layer of authentication
AutoPirate components (specifically Mylar), for searching for, downloading, and managing comic books
Preparation
Setup data locations
First we create a directory to hold the komga database, logs and other persistent data:
mkdir/var/data/komga
Komga Docker Swarm config
Create a docker swarm config file in docker-compose syntax (v3), something like the example below:
Fast-track with premix! π
"Premix" is a git repository which includes necessary docker-compose and env files for all published recipes. This means that you can launch any recipe with just a git pull and a docker stack deploy π.
π Update: Premix now includes an ansible playbook, enabling you to deploy an entire stack + recipes, with a single ansible command! (more here)
version:"3.2"services:komga:image:gotson/komgaenv_file:/var/data/config/komga/komga.envvolumes:-/var/data/media/:/media-/var/data/komga:/configdeploy:replicas:1labels:# traefik common-traefik.enable=true-traefik.docker.network=traefik_public# traefikv1-traefik.frontend.rule=Host:komga.example.com-traefik.port=8080# traefikv2-"traefik.http.routers.komga.rule=Host(`komga.example.com`)"-"traefik.http.services.komga.loadbalancer.server.port=8080"-"traefik.enable=true"# Remove if you wish to access the URL directly-"traefik.http.routers.komga.middlewares=forward-auth@file"networks:-traefik_publicnetworks:traefik_public:external:true
Serving
Avengers Assemble!
Launch the Komga stack by running docker stack deploy komga -c <path -to-docker-compose.yml>
Log into your new instance at https://YOUR-FQDN. Since it's a fresh installation, Komga will prompt you to setup a username and password, after which you'll be able to setup your library, and tweak all teh butt0ns!
Did you receive excellent service? Want to compliment the chef? (..and support development of current and future recipes!) Sponsor me on Github / Ko-Fi / Patreon, or see the contribute page for more (free or paid) ways to say thank you! π
Employ your chef (engage) π€
Is this too much of a geeky PITA? Do you just want results, stat? I do this for a living - I'm a full-time Kubernetes contractor, providing consulting and engineering expertise to businesses needing short-term, short-notice support in the cloud-native space, including AWS/Azure/GKE, Kubernetes, CI/CD and automation.
Want to know now when this recipe gets updated, or when future recipes are added? Subscribe to the RSS feed, or leave your email address below, and we'll keep you updated.