mirror of
https://gitlab.com/Snogard/kaido.git
synced 2025-08-20 10:50:06 +02:00
added komga installation
This commit is contained in:
parent
52ec4475d1
commit
be587a466f
32
src/commands/install/install-komga.sh
Normal file
32
src/commands/install/install-komga.sh
Normal 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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user