refactor: transition to service def format

This commit is contained in:
Marc 2024-09-27 00:02:49 -04:00
parent 6d63eea68f
commit 168b304d7f
Signed by: marc
GPG key ID: 048E042F22B5DC79
5 changed files with 40 additions and 25 deletions

View file

@ -1,3 +0,0 @@
#!/bin/bash
podman build -t "spad-plex-app:$IMAGE_VERSION" -f Dockerfile-plex-app .

40
service.yml Normal file
View file

@ -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

View file

@ -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"

View file

@ -1,3 +0,0 @@
#!/bin/bash
podman rm -f spad-plex-app