From c3cabed6e70126d1ffa6f056d087da138a8646b3 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 25 Jun 2026 17:51:59 +0100 Subject: [PATCH] db is g+rw in http.Dockerfile --- compose.yml | 6 +++--- http.Dockerfile | 2 +- smtp.Dockerfile | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/compose.yml b/compose.yml index 812c70a..7bd8d93 100644 --- a/compose.yml +++ b/compose.yml @@ -23,12 +23,12 @@ services: context: . dockerfile: smtp.Dockerfile args: - LOCAL_SMTP_PORT: 2500 + LOCAL_SMTP_PORT: $LOCAL_SMTP_PORT env_file: - .env environment: - LOCAL_SMTP_PORT: 2500 - LOCAL_SMTP_PASSWORD: smtp + SMTP_PORT: $LOCAL_SMTP_PORT + SMTP_PASSWORD: $LOCAL_SMTP_PORT REMOTE_SMTP_PASSWORD_FILE: /run/secrets/remote_smtp_password secrets: - remote_smtp_password diff --git a/http.Dockerfile b/http.Dockerfile index 3ff404f..9024461 100644 --- a/http.Dockerfile +++ b/http.Dockerfile @@ -7,6 +7,6 @@ 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 o+w "$(dirname "$DB_PATH")" \ + && chmod -R g+rw "$(dirname "$DB_PATH")" \ && php-fpm85 \ && nginx -g "daemon off;" diff --git a/smtp.Dockerfile b/smtp.Dockerfile index cd0916c..32efbb5 100644 --- a/smtp.Dockerfile +++ b/smtp.Dockerfile @@ -1,7 +1,4 @@ FROM git.joeac.net/joeac/armv7/msmtp:1.8.32-alpine3.23 ARG LOCAL_SMTP_PORT EXPOSE $LOCAL_SMTP_PORT -ENV SMTP_PORT=${LOCAL_SMTP_PORT} \ - SMTP_USER=${LOCAL_SMTP_USER} \ - SMTP_PASSWORD=${LOCAL_SMTP_PASSWORD} COPY smtp/.msmtprc ./