mirror of
https://github.com/friendica/docker
synced 2025-01-25 04:20:16 +01:00
Philipp Holzer
9361e82fc7
- Added `.examples/docker-compose/insecure/mariadb-cron-smtp` - Added `.examples/docker-compose/with-traefik-proxy/mariadb-cron-smtp` - Updated README.md
18 lines
No EOL
560 B
Docker
18 lines
No EOL
560 B
Docker
# Based on .exmples/dockerfiles/smtp/fpm-alpine
|
|
FROM friendica/server:fpm-alpine
|
|
|
|
ENV SMTP_HOST smtp.example.org
|
|
|
|
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=${SMTP_HOST:-localhost}" >> /etc/ssmtp/ssmtp.conf;
|
|
|
|
# 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 |