From 2a5902b707d1cae9bfe7823f87d4f34f55e35986 Mon Sep 17 00:00:00 2001 From: Daan Vanoverloop Date: Sun, 21 May 2023 17:53:15 +0200 Subject: [PATCH] Update --- container-ects-scraper.service | 26 ++++++++++++++++++++++++++ container-gitea-app.service | 2 +- container-jellyseerr.service | 27 +++++++++++++++++++++++++++ container-proxy-internal.service | 2 +- container-proxy.service | 9 +++++---- container-slskd.service | 31 +++++++++++++++++++++++++++++++ lan-party.service | 9 +++++++++ 7 files changed, 100 insertions(+), 6 deletions(-) create mode 100644 container-ects-scraper.service create mode 100644 container-jellyseerr.service create mode 100644 container-slskd.service create mode 100644 lan-party.service diff --git a/container-ects-scraper.service b/container-ects-scraper.service new file mode 100644 index 0000000..9bc1265 --- /dev/null +++ b/container-ects-scraper.service @@ -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 diff --git a/container-gitea-app.service b/container-gitea-app.service index 3aba288..653092a 100644 --- a/container-gitea-app.service +++ b/container-gitea-app.service @@ -23,7 +23,7 @@ ExecStart=/usr/bin/podman run --cidfile=%t/%n.ctr-id --cgroups=no-conmon --rm \ --tz=Europe/Brussels \ #-v /etc/timezone:/etc/timezone: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__NAME=gitea -e GITEA__database__USER=gitea -e GITEA__database__PASSWD=gitea \ --label "io.containers.autoupdate=registry" \ diff --git a/container-jellyseerr.service b/container-jellyseerr.service new file mode 100644 index 0000000..f011c22 --- /dev/null +++ b/container-jellyseerr.service @@ -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 diff --git a/container-proxy-internal.service b/container-proxy-internal.service index 4ccca84..5997cb0 100644 --- a/container-proxy-internal.service +++ b/container-proxy-internal.service @@ -16,7 +16,7 @@ ExecStart=/usr/bin/podman run --cidfile=%t/%n.ctr-id --cgroups=no-conmon --rm -- --ip=10.88.0.18 \ -p 5180:80 -p 82:81 \ --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 ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id Type=notify diff --git a/container-proxy.service b/container-proxy.service index 95cb385..aa57e09 100644 --- a/container-proxy.service +++ b/container-proxy.service @@ -7,17 +7,18 @@ RequiresMountsFor=%t/containers [Service] Environment=PODMAN_SYSTEMD_UNIT=%n Restart=on-failure -TimeoutStopSec=70 +TimeoutStartSec=50min +TimeoutStopSec=50min ExecStartPre=/bin/mkdir -p /home/pi/containers/proxy 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 \ --name=proxy \ - -v /home/pi/containers/proxy/data:/data:Z \ - -v /home/pi/containers/proxy/letsencrypt:/etc/letsencrypt:Z \ + -v proxy-data:/data:Z \ + -v proxy-letsencrypt:/etc/letsencrypt:Z \ --ip=10.88.0.17 \ -p 80:80 -p 443:443 -p 81:81 -p 8448:8448 \ --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 ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id Type=notify diff --git a/container-slskd.service b/container-slskd.service new file mode 100644 index 0000000..f1adb1f --- /dev/null +++ b/container-slskd.service @@ -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 diff --git a/lan-party.service b/lan-party.service new file mode 100644 index 0000000..1df2e70 --- /dev/null +++ b/lan-party.service @@ -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