forked from coop-cloud/vaultwarden
add smtp support
This commit is contained in:
@ -12,3 +12,12 @@ LOG_FILE=/data/vaultwarden.log
|
|||||||
LOG_LEVEL=warn
|
LOG_LEVEL=warn
|
||||||
|
|
||||||
SECRET_ADMIN_TOKEN_VERSION=v1 # length=48
|
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
19
compose.smtp.yml
Normal 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}
|
Reference in New Issue
Block a user