From ee5551662a9e3983d8669f44ef9a8fa381bb8780 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 21 Feb 2024 09:03:56 -0800 Subject: [PATCH 1/2] Update gitea to run on host loopback. Also update volume for the mounted slab. --- env-gitea | 2 +- gitea.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/env-gitea b/env-gitea index a14ca02..623d815 100644 --- a/env-gitea +++ b/env-gitea @@ -1,7 +1,7 @@ GITEA__service__DISABLE_REGISTRATION=true GITEA__mailer__ENABLED=true GITEA__database__DB_TYPE=postgres -GITEA__database__HOST=postgresql:5432 +GITEA__database__HOST=10.0.2.2:5432 GITEA__database__NAME=gitea GITEA__database__USER=gitea_user GITEA__database__PASSWD=secret diff --git a/gitea.sh b/gitea.sh index 691e6f5..9c09128 100755 --- a/gitea.sh +++ b/gitea.sh @@ -5,11 +5,10 @@ podman run \ -d \ --env-file /opt/podman/env-gitea \ --name gitea \ - --net slirp4netns:port_handler=slirp4netns \ + --net slirp4netns:allow_host_loopback=true \ -p 127.0.0.1:10110:3000 \ -p 127.0.0.1:2222:22 \ - --restart unless-stopped \ - -v gitea-data:/data \ + -v /mnt/slab1/gitea:/data \ -v /etc/timezone:/etc/timezone:ro \ -v /etc/localtime:/etc/localtime:ro \ docker.io/gitea/gitea:latest From 5879f305822c8a56dd77af77e2cd92f4c8c568e3 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 21 Feb 2024 09:06:02 -0800 Subject: [PATCH 2/2] Add stirling-pdf initial working container. --- env-stirling-pdf | 4 ++++ stirling-pdf.sh | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 env-stirling-pdf create mode 100755 stirling-pdf.sh diff --git a/env-stirling-pdf b/env-stirling-pdf new file mode 100644 index 0000000..6e5cc85 --- /dev/null +++ b/env-stirling-pdf @@ -0,0 +1,4 @@ +DOCKER_ENABLE_SECURITY=true +SECURITY_ENABLE_LOGIN=true +SECURITY_INITIALLOGIN_USERNAME=eliribble +SECURITY_INITIALLOGIN_PASSWORD=secret diff --git a/stirling-pdf.sh b/stirling-pdf.sh new file mode 100755 index 0000000..3c03349 --- /dev/null +++ b/stirling-pdf.sh @@ -0,0 +1,12 @@ +#!/bin/bash +podman run -d \ + --env-file=/opt/podman/env-stirling-pdf \ + -p 10240:8080 \ + -v /mnt/slab1/stirling-pdf/training-data:/usr/share/tessdata \ + -v /mnt/slab1/stirling-pdf/configs:/configs \ + -v /var/log/stirling-pdf:/logs \ + --name stirling-pdf \ + docker.io/frooodle/s-pdf:latest + +# Can also add these for customisation but are not required +# -v /location/of/customFiles:/customFiles \