diff --git a/dockerfiles/services/nginx-php/Dockerfile b/dockerfiles/services/nginx-php/Dockerfile index 5d0c7d67a3c80d446b0583a8510dccba943d12cb..4d0bedc530477af197755395678ecd9c46e74c65 100644 --- a/dockerfiles/services/nginx-php/Dockerfile +++ b/dockerfiles/services/nginx-php/Dockerfile @@ -6,6 +6,7 @@ RUN apt-get update && apt-get install -y \ mysql-client \ php5-fpm \ php5-mysql \ + ssmtp \ curl && \ rm -rf /var/lib/apt/lists/* && \ rm -rf /etc/nginx/conf.d/* && \ @@ -14,6 +15,7 @@ RUN apt-get update && apt-get install -y \ sed -i 's/access_log.*/access_log \/dev\/stdout;/g' /etc/nginx/nginx.conf && \ sed -i 's/error_log.*/error_log \/dev\/stdout info;/g' /etc/nginx/nginx.conf && \ sed -i 's/^pid/daemon off;\npid/g' /etc/nginx/nginx.conf && \ + sed -i "s/.*sendmail_path.*/sendmail_path = \/usr\/sbin\/ssmtp -t/g" /etc/php5/fpm/php.ini && \ sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php5/fpm/php.ini ADD basic.conf /etc/nginx/conf.d/basic.conf @@ -23,6 +25,8 @@ RUN chmod u+x /opt/entrypoint.sh ADD mysql-check.sh /opt/mysql-check.sh RUN chmod u+x /opt/mysql-check.sh +COPY ssmtp.conf /etc/ssmtp/ssmtp.conf + ADD environment /etc/environment ENTRYPOINT ["/opt/entrypoint.sh"] diff --git a/dockerfiles/services/nginx-php/ssmtp.conf b/dockerfiles/services/nginx-php/ssmtp.conf new file mode 100644 index 0000000000000000000000000000000000000000..aa6b53bf0a457815701db3a6db5e886195fe73de --- /dev/null +++ b/dockerfiles/services/nginx-php/ssmtp.conf @@ -0,0 +1,4 @@ +mailhub=172.17.42.1 +root=postmaster +FromLineOverride=YES +