2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2025-02-01 20:36:57 +01:00
docker/.examples/dockerfiles/smtp/fpm-alpine/Dockerfile
Philipp Holzer 0826aaefa9
Improvements and Examples
- Adding `sendmail` feature to `apache` and `fpm`
- Adding section `.examples/dockerfiles`
- Adding section `.examples/dockerfiles/cron` to combine app & external cron-jobs
- Adding section `.examples/dockerfiles/smtp` for further SMTP-settings
2018-05-20 15:44:03 +02:00

15 lines
No EOL
481 B
Docker

FROM friendica:develop-fpm-alpine
RUN set -ex; \
\
apk add --no-cache \
ssmtp \
; \
# disable the current mailhub
sed -i "s|mailhub=|#mailhub= |g" /etc/ssmtp/ssmtp.conf; \
# enable the new mailhub
echo "mailhub=${:-localhost}" >> /etc/ssmtp/ssmtp.conf;SMTP_HOST
# simple = using an smtp without any credentials (mostly in local networks)
# custom = you need to set host, port, auth_options, authinfo (e.g. for GMX support)
ENV SMTP_TYPE simple