This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
spadinastan/services/plex/start.sh
Marc Cataford d84dfe0ec2
feat(plex): move Plex setup to task model
fix: ports published for plex

fix: Dockerfile name
2023-12-15 15:44:47 -05:00

24 lines
754 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/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:dev