add smtp support

This commit is contained in:
knoflook 2023-01-21 12:05:46 +01:00
parent 452e40fd30
commit e58aa8cb50
2 changed files with 28 additions and 0 deletions

View File

@ -12,3 +12,12 @@ LOG_FILE=/data/vaultwarden.log
LOG_LEVEL=warn
SECRET_ADMIN_TOKEN_VERSION=v1 # length=48
# SMTP settings
#COMPOSE_FILE="$COMPOSE_FILE:compose.smtp.yml"
#SECRET_SMTP_PASSWORD_VERSION=v1
#SMTP_FROM=
#SMTP_USERNAME=
#SMTP_HOST=
#SMTP_PORT=587
#SMTP_SECURITY=starttls

19
compose.smtp.yml Normal file
View File

@ -0,0 +1,19 @@
---
version: "3.8"
services:
app:
environment:
- SMTP_FROM
- SMTP_HOST
- SMTP_PORT
- SMTP_SECURITY
- SMTP_USERNAME
- SMTP_PASSWORD_FILE=/run/secrets/smtp_password
secrets:
- smtp_password
secrets:
smtp_password:
external: true
name: ${STACK_NAME}_smtp_password_${SECRET_SMTP_PASSWORD_VERSION}