--- services: nextcloud-fpm: environment: &smtp-configuration SMTP_HOST: ${SMTP_HOST:?err} SMTP_SECURE: ${SMTP_SECURE:-ssl} SMTP_PORT: ${SMTP_PORT:-465} SMTP_AUTHTYPE: ${SMTP_AUTHTYPE:-LOGIN} SMTP_NAME: ${SMTP_NAME:?err} SMTP_PASSWORD: ${SMTP_PASSWORD:?err} MAIL_FROM_ADDRESS: ${MAIL_FROM_ADDRESS:?err} MAIL_DOMAIN: ${MAIL_DOMAIN:?err} nextcloud-cron: environment: <<: *smtp-configuration