-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ac1876
commit e298a9f
Showing
1 changed file
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ This image provides various versions that are available via tags. | |
Here are some example snippets to help you get started creating a container. | ||
|
||
### Podman | ||
Create the container with: | ||
Create the container: | ||
``` | ||
podman create \ | ||
--name=komga \ | ||
|
@@ -73,6 +73,79 @@ TimeoutStartSec=900 | |
WantedBy=multi-user.target default.target | ||
``` | ||
|
||
If you wanted to run komf alongside komga I would recommend running them both of them in a pod. Here's some example Quadlet files: | ||
|
||
#### komga.pod | ||
|
||
``` | ||
[Pod] | ||
# Komga | ||
PublishPort=25600 | ||
[Install] | ||
# Start komga pod on boot | ||
WantedBy=multi-user.target default.target | ||
``` | ||
|
||
#### komga.container | ||
|
||
``` | ||
[Unit] | ||
Description=Media server for comics/mangas/BDs/magazines/eBooks with API, OPDS and Kobo Sync support | ||
[Container] | ||
## General | ||
AutoUpdate=registry | ||
Image=docker.io/gotson/komga:latest | ||
Pod=komga.pod | ||
## Network | ||
PublishPort=25600:25600 | ||
## Volumes | ||
# %h is for user home directory | ||
Volume=%h/path/to/config:/config | ||
Volume=%h/path/to/data:/data | ||
## Environment Variables | ||
Environment=<ENV_VAR>=<extra configuration> | ||
[Service] | ||
# Add 143 exit code to prevent the systemd service entering a failed state when stopping it | ||
SuccessExitStatus=0 143 | ||
# Extend Timeout to allow time to pull the image | ||
TimeoutStartSec=900 | ||
``` | ||
|
||
#### komf.container | ||
|
||
``` | ||
[Unit] | ||
Description=Komga and Kavita metadata fetcher | ||
After=komga.service | ||
[Container] | ||
## General | ||
AutoUpdate=registry | ||
Image=docker.io/sndxr/komf:latest | ||
Pod=komga.pod | ||
## Volumes | ||
Volume=%h/Server/komga-pod/komf:/config | ||
# Environment Variables | ||
Environment="KOMF_KOMGA_BASE_URI=http://localhost:25600" | ||
Environment="[email protected]" | ||
Environment="JAVA_TOOL_OPTIONS=-XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact -XX:ShenandoahGuaranteedGCInterval=3600000 -XX:TrimNativeHeapInterval=3600000" | ||
Secret=komga_password,type=env,target=KOMF_KOMGA_PASSWORD | ||
[Service] | ||
# Add 143 exit code to prevent the systemd service entering a failed state when stopping it | ||
SuccessExitStatus=0 143 | ||
# Extend Timeout to allow time to pull the image | ||
TimeoutStartSec=900 | ||
``` | ||
|
||
## Parameters | ||
|
||
Container images are configured using parameters passed at runtime (such as those above). | ||
|