This commit is contained in:
msnie
2024-02-03 11:58:42 +01:00
parent 17ca1c805f
commit 5b0b5f548c
706 changed files with 135245 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
DOMAIN_NAME=knast.cc
DEFAULT_NETWORK=traefik
+61
View File
@@ -0,0 +1,61 @@
FROM ubuntu:20.04
ARG S6_OVERLAY_VERSION=v2.2.0.3
ARG S6_OVERLAY_ARCH=aarch64
ARG PLEX_BUILD=linux-aarch64
ARG PLEX_DISTRO=debian
ARG DEBIAN_FRONTEND="noninteractive"
ENV TERM="xterm" LANG="C.UTF-8" LC_ALL="C.UTF-8"
ENTRYPOINT ["/init"]
RUN \
# Update and get dependencies
apt-get update && \
apt-get install -y \
tzdata \
curl \
xmlstarlet \
uuid-runtime \
unrar \
&& \
\
# Fetch and extract S6 overlay
curl -J -L -o /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.gz https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-${S6_OVERLAY_ARCH}.tar.gz && \
tar xzf /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.gz -C / --exclude='./bin' && \
tar xzf /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.gz -C /usr ./bin && \
\
# Add user
useradd -U -d /config -s /bin/false plex && \
usermod -G users plex && \
\
# Setup directories
mkdir -p \
/config \
/transcode \
/data \
&& \
\
# Cleanup
apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/* && \
rm -rf /var/tmp/*
EXPOSE 32400/tcp 8324/tcp 32469/tcp 1900/udp 32410/udp 32412/udp 32413/udp 32414/udp
VOLUME /config /transcode
ENV CHANGE_CONFIG_DIR_OWNERSHIP="true" \
HOME="/config"
ARG TAG=beta
ARG URL=
COPY root/ /
RUN \
# Save version and install
/installBinary.sh
HEALTHCHECK --interval=5s --timeout=2s --retries=20 CMD /healthcheck.sh || exit 1
+46
View File
@@ -0,0 +1,46 @@
version: "3.3"
services:
pms-docker:
image: linuxserver/plex:latest
networks:
- traefik
container_name: plex
restart: unless-stopped
hostname: plex.knast.cc
ports:
- 32400:32400
- 3005:3005
- 8324:8324
- 32469:32469
- 1900:1900
- 32410:32410
- 32412:32412
- 32413:32413
- 32414:32414
environment:
- TZ=Europe/Copenhagen
- PLEX_CLAIM=claim-6Zvsp8xmyzZLfQHGyX8w
- ADVERTISE_IP=http://plex.knast.cc:32400/
volumes:
# - "/var/lib/plexmediaserver:/config"
- '/srv/plex:/config'
- "/tmp/:/transcode"
# - "/srv/pseudotv:/mnt/pseudotv"
- "nfs_data:/shares"
# image: plexinc/pms-docker:latest
labels:
- traefik.enable=true
- "traefik.http.routers.plex.entrypoints=websecure"
- "traefik.http.routers.plex.rule=Host(`plex.$DOMAIN_NAME`)"
- "traefik.http.routers.plex.tls.certresolver=letsencr"
- "traefik.http.services.plex.loadbalancer.server.port=32400"
volumes:
nfs_data:
external: true
networks:
traefik:
external: true