2021-05-16 21:41:38 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
up () {
|
|
|
|
# Exposed on port 32400 in pew-net
|
|
|
|
docker run \
|
|
|
|
--detach \
|
|
|
|
--name plex \
|
|
|
|
--restart unless-stopped \
|
|
|
|
--env PUID=1000 \
|
|
|
|
--env PGID=1000 \
|
|
|
|
--env VERSION=docker \
|
|
|
|
--volume /bigdata/k8s-config/plex/config:/config:rw \
|
2022-09-25 10:18:12 -04:00
|
|
|
--volume /bigdata/media/audiobooks:/media/audiobooks:ro \
|
2023-08-11 16:08:56 -04:00
|
|
|
--volume /bigdata/media/movies:/media/movies:ro \
|
2021-05-16 21:41:38 -04:00
|
|
|
--volume /bigdata/media/music:/media/music:ro \
|
2023-08-24 16:46:34 -04:00
|
|
|
--volume /bigdata/media/radio:/media/radio:ro \
|
2023-08-11 16:08:56 -04:00
|
|
|
--volume /bigdata/media/tv:/media/tv:ro \
|
2021-05-16 21:41:38 -04:00
|
|
|
--volume /media-vtluug:/media/media-vtluug:ro \
|
2023-07-24 09:05:10 -04:00
|
|
|
--volume /bigdata/tmp/plex/transcode:/transcode:rw \
|
|
|
|
--device=/dev/dri:/dev/dri:rw \
|
2023-08-16 09:15:41 -04:00
|
|
|
--publish 32400:32400 \
|
2021-05-16 21:41:38 -04:00
|
|
|
--network pew-net \
|
2022-02-26 12:14:35 -05:00
|
|
|
ghcr.io/linuxserver/plex:latest
|
2021-05-16 21:41:38 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
down () {
|
|
|
|
docker stop plex || true
|
|
|
|
docker rm plex || true
|
|
|
|
}
|
|
|
|
|
|
|
|
logs () {
|
|
|
|
docker logs --follow plex
|
|
|
|
}
|
|
|
|
|
|
|
|
$@
|