This commit is contained in:
Daan Vanoverloop 2023-05-21 17:53:15 +02:00
parent 391c766e02
commit 2a5902b707
Signed by: Danacus
GPG Key ID: F2272B50E129FC5C
7 changed files with 100 additions and 6 deletions

View File

@ -0,0 +1,26 @@
[Unit]
Description=Podman container-ects-scraper.service
Wants=network-online.target
After=network-online.target
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
ExecStartPre=/bin/rm -f %t/%n.ctr-id
ExecStart=/usr/bin/podman run \
--cidfile=%t/%n.ctr-id \
--cgroups=no-conmon \
--rm \
--sdnotify=conmon \
--name=ects-scraper \
-v ects-scraper-cache:/cache:z \
-d \
-p 5467:8000 ects-scraper
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
Type=notify
NotifyAccess=all
[Install]
WantedBy=default.target

View File

@ -23,7 +23,7 @@ ExecStart=/usr/bin/podman run --cidfile=%t/%n.ctr-id --cgroups=no-conmon --rm \
--tz=Europe/Brussels \ --tz=Europe/Brussels \
#-v /etc/timezone:/etc/timezone:ro \ #-v /etc/timezone:/etc/timezone:ro \
#-v /etc/localtime:/etc/localtime:ro \ #-v /etc/localtime:/etc/localtime:ro \
-e USER_UID=1001 -e USER_GID=1001 \ -e USER_UID=1002 -e USER_GID=1002 \
-e GITEA__database__DB_TYPE=postgres -e GITEA__database__HOST=localhost \ -e GITEA__database__DB_TYPE=postgres -e GITEA__database__HOST=localhost \
-e GITEA__database__NAME=gitea -e GITEA__database__USER=gitea -e GITEA__database__PASSWD=gitea \ -e GITEA__database__NAME=gitea -e GITEA__database__USER=gitea -e GITEA__database__PASSWD=gitea \
--label "io.containers.autoupdate=registry" \ --label "io.containers.autoupdate=registry" \

View File

@ -0,0 +1,27 @@
[Unit]
Description=Podman container-jellyseerr.service
Wants=network-online.target
After=network-online.target
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
ExecStartPre=/bin/rm -f %t/%n.ctr-id
ExecStart=/usr/bin/podman run \
--cidfile=%t/%n.ctr-id \
--cgroups=no-conmon \
--rm \
--sdnotify=conmon \
--name=jellyseerr \
-e TZ=Europe/Brussels \
-p 5055:5055 \
-v jellyseerr-config:/app/config:z \
docker.io/fallenbagel/jellyseerr:latest
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
Type=notify
NotifyAccess=all
[Install]
WantedBy=default.target

View File

@ -16,7 +16,7 @@ ExecStart=/usr/bin/podman run --cidfile=%t/%n.ctr-id --cgroups=no-conmon --rm --
--ip=10.88.0.18 \ --ip=10.88.0.18 \
-p 5180:80 -p 82:81 \ -p 5180:80 -p 82:81 \
--label "io.containers.autoupdate=registry" \ --label "io.containers.autoupdate=registry" \
docker.io/jc21/nginx-proxy-manager:latest docker.io/jc21/nginx-proxy-manager:2.9.22
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
Type=notify Type=notify

View File

@ -7,17 +7,18 @@ RequiresMountsFor=%t/containers
[Service] [Service]
Environment=PODMAN_SYSTEMD_UNIT=%n Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure Restart=on-failure
TimeoutStopSec=70 TimeoutStartSec=50min
TimeoutStopSec=50min
ExecStartPre=/bin/mkdir -p /home/pi/containers/proxy ExecStartPre=/bin/mkdir -p /home/pi/containers/proxy
ExecStartPre=/bin/rm -f %t/%n.ctr-id ExecStartPre=/bin/rm -f %t/%n.ctr-id
ExecStart=/usr/bin/podman run --cidfile=%t/%n.ctr-id --cgroups=no-conmon --rm --sdnotify=conmon --replace -d \ ExecStart=/usr/bin/podman run --cidfile=%t/%n.ctr-id --cgroups=no-conmon --rm --sdnotify=conmon --replace -d \
--name=proxy \ --name=proxy \
-v /home/pi/containers/proxy/data:/data:Z \ -v proxy-data:/data:Z \
-v /home/pi/containers/proxy/letsencrypt:/etc/letsencrypt:Z \ -v proxy-letsencrypt:/etc/letsencrypt:Z \
--ip=10.88.0.17 \ --ip=10.88.0.17 \
-p 80:80 -p 443:443 -p 81:81 -p 8448:8448 \ -p 80:80 -p 443:443 -p 81:81 -p 8448:8448 \
--label "io.containers.autoupdate=registry" \ --label "io.containers.autoupdate=registry" \
docker.io/jc21/nginx-proxy-manager:latest docker.io/jc21/nginx-proxy-manager:2.9.22
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
Type=notify Type=notify

31
container-slskd.service Normal file
View File

@ -0,0 +1,31 @@
[Unit]
Description=Podman container-slskd.service
Wants=network-online.target
After=network-online.target
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
ExecStartPre=/bin/rm -f %t/%n.ctr-id
ExecStart=/usr/bin/podman run \
--cidfile=%t/%n.ctr-id \
--cgroups=no-conmon \
--rm \
--sdnotify=conmon \
--name=slskd \
-e SLSKD_REMOTE_CONFIGURATION=true \
-v slskd-data:/app:z \
-v /nas/media:/nas \
-d \
-p 5030:5030 \
-p 5031:5031 \
-p 50300:50300 \
docker.io/slskd/slskd:latest
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
Type=notify
NotifyAccess=all
[Install]
WantedBy=default.target

9
lan-party.service Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=LAN Party
[Service]
WorkingDirectory=/home/rocky/lan_party
ExecStart=/home/rocky/lan_party/lan_party_backend
[Install]
WantedBy=default.target