diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-24 13:43:28 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-24 13:43:28 +0100 |
| commit | 207950e6522f54e3d5111db2bbae8ab9b8281b32 (patch) | |
| tree | 19bbb9043509a9ddb3c1fc011d4c5660f51f5ac4 /docker | |
| parent | 03147e99dea93bda229634cd5980b8474ad41b14 (diff) | |
| download | camagru-207950e6522f54e3d5111db2bbae8ab9b8281b32.tar.gz camagru-207950e6522f54e3d5111db2bbae8ab9b8281b32.zip | |
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')
| -rw-r--r-- | docker/php/Dockerfile | 2 | ||||
| -rwxr-xr-x | docker/php/entrypoint.sh | 7 |
2 files changed, 0 insertions, 9 deletions
diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index cb7befd..e3d3dea 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -22,8 +22,6 @@ tls off" > /etc/msmtprc RUN echo "upload_max_filesize = 10M" > /usr/local/etc/php/conf.d/uploads.ini \ && echo "post_max_size = 10M" >> /usr/local/etc/php/conf.d/uploads.ini -COPY entrypoint.sh /usr/local/bin/entrypoint.sh -ENTRYPOINT ["entrypoint.sh"] CMD ["php-fpm"] WORKDIR /var/www/html 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 "$@" |
