mirror of
https://gitlab.com/Snogard/kaido.git
synced 2025-08-20 10:50:06 +02:00
[komga] fixed default internal port, added configurable ports
This commit is contained in:
parent
cdbc18654c
commit
b12ce87f1a
@ -6,10 +6,20 @@ source /opt/kaido/src/libs/bash/lib.sh
|
||||
imageName=docker.io/gotson/komga:1.2.1
|
||||
containerName=komga
|
||||
|
||||
|
||||
dstConfigPath=/mnt/storage/containers/$containerName/config
|
||||
dstDataPath=/mnt/storage/containers/$containerName/data
|
||||
|
||||
|
||||
# envs
|
||||
externalPort=10111
|
||||
internalPort=25600
|
||||
|
||||
if [ -f "/ect/kaido/containers/$containerName/envs.sh" ]; then
|
||||
source /ect/kaido/containers/$containerName/envs.sh
|
||||
fi
|
||||
|
||||
|
||||
# pre install
|
||||
create_folder $dstConfigPath
|
||||
create_folder $dstDataPath
|
||||
@ -21,7 +31,7 @@ echo "Creating new container"
|
||||
podman create \
|
||||
--name $containerName \
|
||||
--user 1000:1000 \
|
||||
-p 10111:8080/tcp \
|
||||
-p $externalPort:$internalPort/tcp \
|
||||
--mount type=bind,source=$dstConfigPath,target=/config \
|
||||
--mount type=bind,source=$dstDataPath,target=/data \
|
||||
$imageName
|
||||
|
Loading…
x
Reference in New Issue
Block a user