summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-25 19:04:12 +0100
committerJoe Carstairs <me@joeac.net>2026-06-25 19:04:12 +0100
commitabfb28dea224f915e62cf400f49ce2683e564c2b (patch)
tree68309c911be04c4438b6531cfe5fa0dfb20c5f3a
parent1ef4c22ec69e700583e0672bb6ef2edad32218bc (diff)
http.Dockerfile: db dir is owned by nginx and mode 600
-rw-r--r--http.Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/http.Dockerfile b/http.Dockerfile
index c53e630..05440a9 100644
--- a/http.Dockerfile
+++ b/http.Dockerfile
@@ -7,6 +7,7 @@ COPY http/php-fpm.conf /etc/php85/php-fpm.d/joeac.net-http_pool.conf
COPY http/nginx.conf /etc/nginx/nginx.conf
CMD mkdir -p "$(dirname "$DB_PATH")" \
&& touch $DB_PATH \
- && chmod -R g+rw "$(dirname "$DB_PATH")" \
+ && chown -R nginx:nginx "$(dirname "$DB_PATH")" \
+ && chmod -R 600 "$(dirname "$DB_PATH")" \
&& php-fpm85 \
&& nginx -g "daemon off;"