Give database config to smtp service too

This commit is contained in:
Luke Murphy 2020-11-08 17:07:00 +01:00
parent 58edaadac4
commit 6121cdd176
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 9 additions and 0 deletions

View File

@ -100,9 +100,18 @@ services:
smtp:
image: "foodcoops/foodsoft:4.7.0"
command: ./proc-start mail
configs:
- source: db_config
target: /usr/src/app/config/database.yml
secrets:
- db_password
environment:
- SMTP_SERVER_PORT
- SMTP_SERVER_HOST
- MYSQL_DB
- MYSQL_HOST
- MYSQL_PORT
- MYSQL_USER
networks:
- internal