18 lines
587 B
Bash
18 lines
587 B
Bash
#!/bin/bash
|
|
|
|
source constants.sh
|
|
|
|
docker network create $NETWORK_NAME || echo "Network $NETWORK_NAME already exists"
|
|
|
|
docker run \
|
|
--detach \
|
|
--network $NETWORK_NAME \
|
|
--name $APP_CONTAINER_NAME \
|
|
--env-file $ENV_FILE_DIR/deluge.env \
|
|
--publish 8112:8112 \
|
|
--publish 6881:6881/udp \
|
|
--publish 6881:6881/tcp \
|
|
--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=$STORAGE_DIR,target=/complete \
|
|
$APP_IMAGE_NAME:$IMAGE_VERSION
|