diff --git a/build.sh b/build.sh deleted file mode 100644 index 491af86..0000000 --- a/build.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -podman build -t "spad-plex-app:$IMAGE_VERSION" -f Dockerfile-plex-app . diff --git a/Dockerfile-plex-app b/plex.Dockerfile similarity index 100% rename from Dockerfile-plex-app rename to plex.Dockerfile diff --git a/service.yml b/service.yml new file mode 100644 index 0000000..9599e8d --- /dev/null +++ b/service.yml @@ -0,0 +1,40 @@ +name: plex +ports: + - host: 32401 + container: 32400 + - host: 32469 + container: 32469 + - host: 3005 + container: 3005 + - host: 8324 + container: 8324 + - host: 1900 + container: 1900 + type: udp + - host: 32410 + container: 32410 + type: udp + - host: 32412 + container: 32412 + type: udp + - host: 32413 + container: 32413 + type: udp + - host: 32414 + container: 32414 + type: udp +containers: + - name: app + image: plex-app:latest + env-file: /mnt/hintonburggrad/envs/plex.env + volumes: + - host: /tmp/hintonburggrad/media + container: /data + - host: /tmp/hintonburggrad/apps/plex/database + container: /config + - host: /tmp/hintonburggrad/apps/plex/transcode + container: /transcode +build: + images: + - path: ./plex.Dockerfile + tag: plex-app diff --git a/start.sh b/start.sh deleted file mode 100644 index 8e453fa..0000000 --- a/start.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -podman run \ - --detach \ - --name "plex_app" \ - --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" \ - "spad-plex-app:$IMAGE_VERSION" diff --git a/stop.sh b/stop.sh deleted file mode 100644 index d0fb514..0000000 --- a/stop.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -podman rm -f spad-plex-app