mirror of
https://github.com/CoolnsX/selfhost_podman.git
synced 2026-06-17 07:22:08 +05:30
feat: add bentoPDF
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=BentoPDF container
|
||||
|
||||
[Container]
|
||||
Network=host
|
||||
ContainerName=bentopdf
|
||||
Image=ghcr.io/alam00000/bentopdf-simple:latest
|
||||
|
||||
Volume=%h/podman/bentopdf:/tmp
|
||||
Volume=./nginx-listen-on-unix.sh:/docker-entrypoint.d/99-nginx-listen-on-unix.sh:ro
|
||||
|
||||
# Enable auto-update container
|
||||
AutoUpdate=registry
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
TimeoutStartSec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
entrypoint_log() {
|
||||
if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then
|
||||
echo "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
SOCKET="${NGINX_SOCKET:-/tmp/nginx.sock}"
|
||||
|
||||
entrypoint_log "[coolans] Changing Nginx listen port to $SOCKET"
|
||||
sed -i -e "s|listen 8080;|listen unix:${SOCKET};|" -e "/listen \[::\]:8080;/d" /etc/nginx/nginx.conf
|
||||
Reference in New Issue
Block a user