diff --git a/Containers/domaincheck/Dockerfile b/Containers/domaincheck/Dockerfile index fd4e6779..360cc3d7 100644 --- a/Containers/domaincheck/Dockerfile +++ b/Containers/domaincheck/Dockerfile @@ -3,10 +3,11 @@ RUN set -ex; \ apk add --no-cache bash lighttpd netcat-openbsd; \ adduser -S www-data -G www-data; \ rm -rf /etc/lighttpd/lighttpd.conf; \ - chmod +r -R /etc/lighttpd; \ + chmod 777 -R /etc/lighttpd; \ mkdir -p /var/www/domaincheck; \ - chown www-data:www-data -R /var/www -COPY --chown=www-data:www-data lighttpd.conf /etc/lighttpd/lighttpd.conf + chown www-data:www-data -R /var/www; \ + chmod 777 -R /var/www/domaincheck +COPY --chown=www-data:www-data lighttpd.conf /lighttpd.conf COPY --chmod=775 start.sh /start.sh diff --git a/Containers/domaincheck/start.sh b/Containers/domaincheck/start.sh index d9186030..06c0aef2 100644 --- a/Containers/domaincheck/start.sh +++ b/Containers/domaincheck/start.sh @@ -11,7 +11,7 @@ if [ -z "$APACHE_PORT" ]; then export APACHE_PORT="443" fi -CONF_FILE="$(sed "s|ipv6-placeholder|\[::\]:$APACHE_PORT|" /etc/lighttpd/lighttpd.conf)" +CONF_FILE="$(sed "s|ipv6-placeholder|\[::\]:$APACHE_PORT|" /lighttpd.conf)" echo "$CONF_FILE" > /etc/lighttpd/lighttpd.conf # Check config file diff --git a/php/containers.json b/php/containers.json index 5686ef6a..dfeb8350 100644 --- a/php/containers.json +++ b/php/containers.json @@ -454,7 +454,12 @@ "secrets": [ "INSTANCE_ID" ], - "stop_grace_period": 1 + "stop_grace_period": 1, + "read_only": true, + "tmpfs": [ + "/etc/lighttpd", + "/var/www/domaincheck" + ] }, { "container_name": "nextcloud-aio-clamav",