feat: migrate to service def
This commit is contained in:
parent
ad06829a45
commit
98bce8509c
5 changed files with 20 additions and 25 deletions
3
build.sh
3
build.sh
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
podman build -t "spad-deluge-app:$IMAGE_VERSION" -f Dockerfile-deluge-app .
|
|
@ -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
18
service.yml
Normal 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
|
19
start.sh
19
start.sh
|
@ -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"
|
3
stop.sh
3
stop.sh
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
podman pod stop "deluge"
|
Loading…
Reference in a new issue