refactor(deluge): extract into own pod
This commit is contained in:
parent
ed73fa0659
commit
f8038836ea
2 changed files with 15 additions and 11 deletions
|
@ -2,14 +2,20 @@
|
||||||
|
|
||||||
source constants.sh
|
source constants.sh
|
||||||
|
|
||||||
|
podman pod create \
|
||||||
|
-p 8112:8112 \
|
||||||
|
--replace \
|
||||||
|
"deluge"
|
||||||
|
|
||||||
podman run \
|
podman run \
|
||||||
--detach \
|
-d \
|
||||||
--pod services \
|
--pod "deluge" \
|
||||||
-e PGUID=1000 \
|
-e PGUID=1000 \
|
||||||
-e PGID=1000 \
|
-e PGID=1000 \
|
||||||
--name $APP_CONTAINER_NAME \
|
--name "$APP_CONTAINER_NAME" \
|
||||||
--env-file $ENV_FILE_DIR/deluge.env \
|
--env-file "$ENV_FILE_DIR"/deluge.env \
|
||||||
--mount type=bind,source=$APP_DATA_DIR/deluge/config,target=/config \
|
--mount type=bind,source="$APP_DATA_DIR"/deluge/config,target=/config \
|
||||||
--mount type=bind,source=$APP_DATA_DIR/deluge/downloads,target=/downloads \
|
--mount type=bind,source="$APP_DATA_DIR"/deluge/downloads,target=/downloads \
|
||||||
--mount type=bind,source=$STORAGE_DIR,target=/complete \
|
--mount type=bind,source="$STORAGE_DIR",target=/complete \
|
||||||
$APP_IMAGE_NAME:$IMAGE_VERSION
|
--replace \
|
||||||
|
"$APP_IMAGE_NAME:$IMAGE_VERSION"
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source constants.sh
|
podman pod stop "deluge"
|
||||||
|
|
||||||
podman rm -f $APP_CONTAINER_NAME
|
|
||||||
|
|
Reference in a new issue