commit d991849734a38d924148d73758684ad3bd72c302 Author: Marc Cataford Date: Wed Apr 10 23:53:35 2024 -0400 feat: migrate from monorepo diff --git a/Dockerfile-plex-app b/Dockerfile-plex-app new file mode 100644 index 0000000..8e65404 --- /dev/null +++ b/Dockerfile-plex-app @@ -0,0 +1,3 @@ +FROM plexinc/pms-docker:1.32.8.7639-fb6452ebf + +ENV TZ=America/Toronto diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..9dd46c7 --- /dev/null +++ b/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +source constants.sh + +podman build -t $APP_IMAGE_NAME:$IMAGE_VERSION -f Dockerfile-plex-app . diff --git a/constants.sh b/constants.sh new file mode 100644 index 0000000..f4c5085 --- /dev/null +++ b/constants.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +export APP_NAME="plex" +export APP_CONTAINER_NAME=$APP_NAME-app +export APP_IMAGE_NAME=$CONTAINER_NAME_PREFIX-$APP_CONTAINER_NAME +export DB_CONTAINER_NAME=$APP_NAME-db +export DB_IMAGE_NAME=$CONTAINER_NAME_PREFIX-$DB_CONTAINER_NAME +export NETWORK_NAME=$APP_NAME-local diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..ba8a74f --- /dev/null +++ b/start.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +source constants.sh + +podman run \ + --detach \ + --name $APP_CONTAINER_NAME \ + --env-file $ENV_FILE_DIR/plex.env \ + --publish 32401:32400 \ + --publish 32469:32469 \ + --publish 3005:3005 \ + --publish 8324:8324 \ + --publish 1900:1900/udp \ + --publish 32410:32410/udp \ + --publish 32412:32412/udp \ + --publish 32413:32413/udp \ + --publish 32414:32414/udp \ + --mount type=bind,source=$APP_DATA_DIR/plex/database,target=/config \ + --mount type=bind,source=$APP_DATA_DIR/plex/transcode,target=/transcode \ + --mount type=bind,source=$STORAGE_DIR/media,target=/data \ + $APP_IMAGE_NAME:$IMAGE_VERSION diff --git a/stop.sh b/stop.sh new file mode 100644 index 0000000..78156cb --- /dev/null +++ b/stop.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +source constants.sh + +podman rm -f $APP_CONTAINER_NAME