fix: docker-compose 添加 MAIL_* 环境变量,确保 daemon 线程中邮件配置不丢失
This commit is contained in:
@ -29,6 +29,14 @@ services:
|
|||||||
command: gunicorn -c gunicorn.conf.py run:app
|
command: gunicorn -c gunicorn.conf.py run:app
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql://prod_user:StrongPassword123!@db:5432/inventory_system
|
DATABASE_URL: postgresql://prod_user:StrongPassword123!@db:5432/inventory_system
|
||||||
|
MAIL_ENABLED: "true"
|
||||||
|
MAIL_SERVER: smtp.mxhichina.com
|
||||||
|
MAIL_PORT: "465"
|
||||||
|
MAIL_USERNAME: wms@iris-rs.cn
|
||||||
|
MAIL_PASSWORD: Q7nYyyESWlaThKjx
|
||||||
|
MAIL_DEFAULT_SENDER: wms@iris-rs.cn
|
||||||
|
MAIL_USE_SSL: "true"
|
||||||
|
MAIL_USE_TLS: "false"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
|
|||||||
@ -26,6 +26,14 @@ services:
|
|||||||
command: gunicorn -c gunicorn.conf.py run:app --reload
|
command: gunicorn -c gunicorn.conf.py run:app --reload
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql://test:1234@db:5432/inventory_system
|
DATABASE_URL: postgresql://test:1234@db:5432/inventory_system
|
||||||
|
MAIL_ENABLED: "true"
|
||||||
|
MAIL_SERVER: smtp.mxhichina.com
|
||||||
|
MAIL_PORT: "465"
|
||||||
|
MAIL_USERNAME: wms@iris-rs.cn
|
||||||
|
MAIL_PASSWORD: Q7nYyyESWlaThKjx
|
||||||
|
MAIL_DEFAULT_SENDER: wms@iris-rs.cn
|
||||||
|
MAIL_USE_SSL: "true"
|
||||||
|
MAIL_USE_TLS: "false"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user