Revert "Remove own SMTP server"
continuous-integration/drone/push Build is passing Details

This reverts commit c0f2522a40.

Actually, we need it
This commit is contained in:
Luke Murphy 2020-11-08 19:35:44 +01:00
parent 3b1ad04462
commit 49d502c5c8
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 27 additions and 0 deletions

View File

@ -38,6 +38,9 @@ export SMTP_ENABLE_STARTTLS_AUTO=true
export SMTP_PORT=587
export SMTP_USER_NAME=foodsoft
export SMTP_SERVER_PORT=25
export SMTP_SERVER_HOST=mail.autonomic.zone
export SECRET_DB_PASSWORD_VERSION=v1
export SECRET_DB_ROOT_PASSWORD_VERSION=v1
export SECRET_SHARED_LISTS_DB_PASSWORD_VERSION=v1

View File

@ -113,6 +113,30 @@ services:
networks:
- internal
smtp:
image: "foodcoops/foodsoft:4.7.0"
configs:
- source: db_config
target: /usr/src/app/config/database.yml
- source: entrypoint
target: /usr/src/app/docker-entrypoint.sh
mode: 0555
entrypoint: /usr/src/app/docker-entrypoint.sh
secrets:
- db_password
- secret_key_base
environment:
- FOODSOFT_SERVICE=smtp
- MYSQL_DB
- MYSQL_HOST
- MYSQL_PORT
- MYSQL_USER
- SECRET_KEY_BASE_FILE=/run/secrets/secret_key_base
- SMTP_SERVER_HOST
- SMTP_SERVER_PORT
networks:
- internal
db:
image: "mariadb:10.5"
command: "mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_520_ci"