separate smtp config

This commit is contained in:
2026-10-08 14:51:42 +02:00
parent 2cff59b910
commit ca95209b4f
3 changed files with 23 additions and 12 deletions
+2
View File
@@ -6,10 +6,12 @@ DOMAIN=plausible.example.com
#EXTRA_DOMAINS=', `www.plausible.example.com`'
LETS_ENCRYPT_ENV=production
#LOG_LEVEL=debug
COMPOSE_FILE="compose.yml"
DISABLE_REGISTRATION=true # true or false
# Mail Configuration
#COMPOSE_FILE="$COMPOSE_FILE:compose.mail.yml"
#SECRET_SMTP_PASSWORD_VERSION=v1 # generate=false
#MAILER_ADAPTER=Bamboo.Mua
#MAILER_EMAIL=noreply@example.com
+21
View File
@@ -0,0 +1,21 @@
---
version: "3.8"
services:
app:
environment:
- MAILER_ADAPTER
- SMTP_HOST_ADDR
- MAILER_EMAIL
- MAILER_NAME
- SMTP_HOST_PORT
- SMTP_USER_NAME
- SMTP_USER_PWD
- SMTP_HOST_SSL_ENABLED
secrets:
- smtp_password
secrets:
smtp_password:
name: ${STACK_NAME}_smtp_password_${SECRET_SMTP_PASSWORD_VERSION}
external: true
-12
View File
@@ -13,20 +13,11 @@ services:
- SECRET_KEY_BASE
- DATABASE_URL=postgres://plausible:plausible@${STACK_NAME}_db:5432/plausible
- CLICKHOUSE_DATABASE_URL=http://${STACK_NAME}_events:8123/plausible_events_db
- MAILER_ADAPTER
- SMTP_HOST_ADDR
- MAILER_EMAIL
- MAILER_NAME
- SMTP_HOST_PORT
- SMTP_USER_NAME
- SMTP_USER_PWD
- SMTP_HOST_SSL_ENABLED
- DISABLE_REGISTRATION
- LOG_LEVEL
secrets:
- totp_secret
- key_base
- smtp_password
configs:
- source: plausible_entrypoint
target: /plausible_entrypoint.sh
@@ -151,6 +142,3 @@ secrets:
key_base:
name: ${STACK_NAME}_key_base_${SECRET_KEY_BASE_VERSION}
external: true
smtp_password:
name: ${STACK_NAME}_smtp_password_${SECRET_SMTP_PASSWORD_VERSION}
external: true