diff --git a/webmails/rainloop/Dockerfile b/webmails/rainloop/Dockerfile index 1d873f95..fd4b7549 100644 --- a/webmails/rainloop/Dockerfile +++ b/webmails/rainloop/Dockerfile @@ -73,7 +73,7 @@ COPY config.py /config.py EXPOSE 80/tcp VOLUME ["/data"] -CMD php-fpm7 && /start.py +CMD /start.py HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1 RUN echo $VERSION >> /version diff --git a/webmails/rainloop/start.py b/webmails/rainloop/start.py index e0a6e414..3905791f 100755 --- a/webmails/rainloop/start.py +++ b/webmails/rainloop/start.py @@ -23,6 +23,8 @@ os.makedirs(base + "configs", exist_ok=True) conf.jinja("/defaults/default.ini", os.environ, "/data/_data_/_default_/domains/default.ini") conf.jinja("/defaults/application.ini", os.environ, "/data/_data_/_default_/configs/application.ini") conf.jinja("/defaults/php.ini", os.environ, "/etc/php7/php.ini") +# Start the fastcgi process manager now that config files have been adjusted +os.system("php-fpm7") os.system("chown -R nginx:nginx /data") os.system("chmod -R a+rX /var/www/rainloop/")