feat: migrate from monorepo

This commit is contained in:
Marc 2024-04-10 23:53:35 -04:00
commit d991849734
Signed by: marc
GPG key ID: 048E042F22B5DC79
5 changed files with 42 additions and 0 deletions

3
Dockerfile-plex-app Normal file
View file

@ -0,0 +1,3 @@
FROM plexinc/pms-docker:1.32.8.7639-fb6452ebf
ENV TZ=America/Toronto

5
build.sh Normal file
View file

@ -0,0 +1,5 @@
#!/bin/bash
source constants.sh
podman build -t $APP_IMAGE_NAME:$IMAGE_VERSION -f Dockerfile-plex-app .

8
constants.sh Normal file
View file

@ -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

21
start.sh Normal file
View file

@ -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

5
stop.sh Normal file
View file

@ -0,0 +1,5 @@
#!/bin/bash
source constants.sh
podman rm -f $APP_CONTAINER_NAME