added komga installation

This commit is contained in:
Snogard 2023-07-18 16:25:54 +02:00
parent 52ec4475d1
commit be587a466f
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,32 @@
#!/bin/bash
# docs https://komga.org/docs
source /opt/kaido/src/libs/bash/lib.sh
# setup
imageName=docker.io/gotson/komga:1.2.1
containerName=komga
dstConfigPath=/mnt/storage/containers/$containerName/config
dstDataPath=/mnt/storage/containers/$containerName/data
# pre install
create_folder $dstConfigPath
create_folder $dstDataPath
stop_and_remove_container $containerName
# install
echo "Creating new container"
podman create \
--name $containerName \
--user 1000:1000 \
-p 10111:8080/tcp \
--mount type=bind,source=$dstConfigPath,target=/config \
--mount type=bind,source=$dstDataPath,target=/data \
$imageName
# systemd
create_systemd_services $containerName
systemctl --user enable --now $containerName

View File

@ -11,6 +11,7 @@ containerName_db=${podName}_mongodb
imageName_youtubedl=docker.io/tzahi12345/youtubedl-material:4.3.2
imageName_db=docker.io/library/mongo:4.4.22
max_old_space_size=4096
# TODO: replace with raspberry identification
if [ $(uname -m) == "aarch64" ]; then
imageName_db=docker.io/library/mongo:4.4.18