refactor: transition to service def format
This commit is contained in:
parent
6d63eea68f
commit
168b304d7f
5 changed files with 40 additions and 25 deletions
3
build.sh
3
build.sh
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
podman build -t "spad-plex-app:$IMAGE_VERSION" -f Dockerfile-plex-app .
|
40
service.yml
Normal file
40
service.yml
Normal 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
|
19
start.sh
19
start.sh
|
@ -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"
|
3
stop.sh
3
stop.sh
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
podman rm -f spad-plex-app
|
Loading…
Reference in a new issue