35 lines
761 B
Bash
Executable File
35 lines
761 B
Bash
Executable File
#!/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 \
|
|
--volume /bigdata/media/movies:/media/movies:ro \
|
|
--volume /bigdata/media/audiobooks:/media/audiobooks:ro \
|
|
--volume /bigdata/media/music:/media/music:ro \
|
|
--volume /media-vtluug:/media/media-vtluug:ro \
|
|
--volume /bigdata/tmp/plex/transcode:/transcode:rw \
|
|
--device=/dev/dri:/dev/dri:rw \
|
|
--network pew-net \
|
|
ghcr.io/linuxserver/plex:latest
|
|
}
|
|
|
|
down () {
|
|
docker stop plex || true
|
|
docker rm plex || true
|
|
}
|
|
|
|
logs () {
|
|
docker logs --follow plex
|
|
}
|
|
|
|
$@
|