feat: migrate to service def

This commit is contained in:
Marc 2024-09-28 11:59:15 -04:00
parent ad06829a45
commit 98bce8509c
Signed by: marc
GPG key ID: 048E042F22B5DC79
5 changed files with 20 additions and 25 deletions

View file

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

View file

@ -1,5 +1,7 @@
FROM lscr.io/linuxserver/deluge:latest
ENV TZ=America/Toronto
ENV PGUID=1000
ENV PGID=1000
EXPOSE 8112 6881/tcp 6881/udp

18
service.yml Normal file
View file

@ -0,0 +1,18 @@
name: deluge
ports:
- host: 8112
container: 8112
containers:
- name: app
volumes:
- host: /mnt/hintonburggrad/apps/deluge/config
container: /config
- host: /mnt/hintonburggrad/apps/deluge/downloads
container: /downloads
- host: /mnt/hintonburggrad/media
container: /complete
image: deluge-app:latest
build:
images:
- path: ./deluge.Dockerfile
tag: deluge-app

View file

@ -1,19 +0,0 @@
#!/bin/bash
podman pod create \
-p 8112:8112 \
--replace \
"deluge"
podman run \
-d \
--pod "deluge" \
-e PGUID=1000 \
-e PGID=1000 \
--name "deluge_app" \
--env-file "$ENV_FILE_DIR"/deluge.env \
--mount type=bind,source="$APP_DATA_DIR"/deluge/config,target=/config \
--mount type=bind,source="$APP_DATA_DIR"/deluge/downloads,target=/downloads \
--mount type=bind,source="$STORAGE_DIR",target=/complete \
--replace \
"spad-deluge-app:$IMAGE_VERSION"

View file

@ -1,3 +0,0 @@
#!/bin/bash
podman pod stop "deluge"