2023-12-02 09:40:33 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
up () {
|
|
|
|
docker network create pew-net || true
|
|
|
|
|
|
|
|
# Exposed on port 32400 in pew-net
|
|
|
|
docker run \
|
|
|
|
--detach \
|
|
|
|
--name plex \
|
|
|
|
--restart unless-stopped \
|
|
|
|
--env PUID=1000 \
|
|
|
|
--env PGID=1000 \
|
2024-09-02 16:54:16 -04:00
|
|
|
--env PLEX_CLAIM=claim-G7h1y2AkupBbyvyF5RzP \
|
2023-12-02 09:40:33 -05:00
|
|
|
--env VERSION=docker \
|
|
|
|
--device /dev/dri:/dev/dri:rw \
|
|
|
|
--volume /bigdata/plex/config:/config:rw \
|
|
|
|
--volume /bigdata/media/homemedia:/media/homemedia:ro \
|
|
|
|
--volume /bigdata/media/audiobooks:/media/audiobooks:ro \
|
|
|
|
--volume /bigdata/media/movies:/media/movies:ro \
|
|
|
|
--volume /bigdata/media/music:/media/music:ro \
|
|
|
|
--volume /bigdata/media/radio:/media/radio:ro \
|
|
|
|
--volume /bigdata/media/tv:/media/tv:ro \
|
|
|
|
--network host \
|
|
|
|
ghcr.io/linuxserver/plex:latest
|
|
|
|
}
|
|
|
|
|
|
|
|
down () {
|
|
|
|
docker stop plex || true
|
|
|
|
docker rm plex || true
|
|
|
|
}
|
|
|
|
|
|
|
|
logs () {
|
|
|
|
docker logs --follow plex
|
|
|
|
}
|
|
|
|
|
|
|
|
$@
|