🗃️ Removed the .claude/settings.local.json 🗃️
Some checks failed
ampache / release-ampache (push) Has been cancelled

Dockerfile
.env.scripts
.gitattributes
.gitea/
.gitignore
LICENSE.md
README.md
rootfs/root/docker/setup/04-users.sh
rootfs/root/docker/setup/05-custom.sh
rootfs/tmp/
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/bin/pkmgr
rootfs/usr/local/etc/docker/bin/
rootfs/usr/local/etc/docker/init.d/
This commit is contained in:
casjay
2026-05-12 20:05:22 -04:00
parent 6d8b3f0ae3
commit c07f970f14
22 changed files with 1420 additions and 228 deletions

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# casjaysdevdocker/ampache - launches php-fpm84 (background) then httpd (foreground).
#
# Single command for the framework's EXEC_CMD_BIN slot.
set -e
mkdir -p /run/apache2 /run/php-fpm /tmp/php-sessions /data/logs/php-fpm /data/logs/apache2
chown -Rf apache:apache /run/apache2 /run/php-fpm /tmp/php-sessions /data/logs/php-fpm /data/logs/apache2 2>/dev/null || true
# php-fpm: daemonize=no per our config; we put it in background here.
if ! pgrep -x php-fpm84 >/dev/null 2>&1; then
/usr/sbin/php-fpm84 --fpm-config /etc/php84/php-fpm.conf >>/data/logs/php-fpm/stdout.log 2>>/data/logs/php-fpm/stderr.log &
# wait up to 10s for the unix socket
i=0
while [ ! -S /run/php-fpm/php-fpm.sock ] && [ $i -lt 10 ]; do sleep 1; i=$((i+1)); done
fi
# httpd in foreground (-D FOREGROUND).
exec /usr/sbin/httpd -D FOREGROUND -f /etc/apache2/httpd.conf