Compare commits

..

2 Commits

Author SHA1 Message Date
Eli Ribble 5879f30582 Add stirling-pdf initial working container. 2024-02-21 09:06:02 -08:00
Eli Ribble ee5551662a Update gitea to run on host loopback.
Also update volume for the mounted slab.
2024-02-21 09:03:56 -08:00
4 changed files with 19 additions and 4 deletions

View File

@ -1,7 +1,7 @@
GITEA__service__DISABLE_REGISTRATION=true GITEA__service__DISABLE_REGISTRATION=true
GITEA__mailer__ENABLED=true GITEA__mailer__ENABLED=true
GITEA__database__DB_TYPE=postgres GITEA__database__DB_TYPE=postgres
GITEA__database__HOST=postgresql:5432 GITEA__database__HOST=10.0.2.2:5432
GITEA__database__NAME=gitea GITEA__database__NAME=gitea
GITEA__database__USER=gitea_user GITEA__database__USER=gitea_user
GITEA__database__PASSWD=secret GITEA__database__PASSWD=secret

4
env-stirling-pdf Normal file
View File

@ -0,0 +1,4 @@
DOCKER_ENABLE_SECURITY=true
SECURITY_ENABLE_LOGIN=true
SECURITY_INITIALLOGIN_USERNAME=eliribble
SECURITY_INITIALLOGIN_PASSWORD=secret

View File

@ -5,11 +5,10 @@ podman run \
-d \ -d \
--env-file /opt/podman/env-gitea \ --env-file /opt/podman/env-gitea \
--name 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:10110:3000 \
-p 127.0.0.1:2222:22 \ -p 127.0.0.1:2222:22 \
--restart unless-stopped \ -v /mnt/slab1/gitea:/data \
-v gitea-data:/data \
-v /etc/timezone:/etc/timezone:ro \ -v /etc/timezone:/etc/timezone:ro \
-v /etc/localtime:/etc/localtime:ro \ -v /etc/localtime:/etc/localtime:ro \
docker.io/gitea/gitea:latest docker.io/gitea/gitea:latest

12
stirling-pdf.sh Executable file
View File

@ -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 \