From 207950e6522f54e3d5111db2bbae8ab9b8281b32 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Tue, 24 Mar 2026 13:43:28 +0100 Subject: Move uploads to a named Docker volume Replace the bind-mounted src/uploads/ with a named volume shared between PHP (read-write) and Nginx (read-only). Remove entrypoint.sh since the volume handles directory creation automatically. --- docker/php/entrypoint.sh | 7 ------- 1 file changed, 7 deletions(-) delete mode 100755 docker/php/entrypoint.sh (limited to 'docker/php/entrypoint.sh') diff --git a/docker/php/entrypoint.sh b/docker/php/entrypoint.sh deleted file mode 100755 index de41f7e..0000000 --- a/docker/php/entrypoint.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -# Ensure the uploads directory exists and is writable by www-data (PHP-FPM). -# Bind-mounted volumes keep host ownership, so we fix permissions at startup. -mkdir -p /var/www/html/uploads/posts -chown -R www-data:www-data /var/www/html/uploads - -exec "$@" -- cgit v1.2.3