aboutsummaryrefslogtreecommitdiffstats
path: root/docker/php/entrypoint.sh
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-03-24 13:43:28 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-03-24 13:43:28 +0100
commit207950e6522f54e3d5111db2bbae8ab9b8281b32 (patch)
tree19bbb9043509a9ddb3c1fc011d4c5660f51f5ac4 /docker/php/entrypoint.sh
parent03147e99dea93bda229634cd5980b8474ad41b14 (diff)
downloadcamagru-207950e6522f54e3d5111db2bbae8ab9b8281b32.tar.gz
camagru-207950e6522f54e3d5111db2bbae8ab9b8281b32.zip
Move uploads to a named Docker volumeHEADmaster
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.
Diffstat (limited to 'docker/php/entrypoint.sh')
-rwxr-xr-xdocker/php/entrypoint.sh7
1 files changed, 0 insertions, 7 deletions
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 "$@"