add more mail config keys + tmpfs

This commit is contained in:
Mayel de Borniol 2024-10-20 14:58:17 +01:00
parent e619a451f0
commit 992284418a
2 changed files with 42 additions and 14 deletions

View File

@ -44,7 +44,8 @@ INVITE_ONLY=true
# max file upload size - default is 20 meg
UPLOAD_LIMIT=20000000
DB_MEMORY_LIMIT=1000M
# in megabytes
DB_MEMORY_LIMIT=1000
# how much info to include in logs (from less to more: emergency, alert, critical, error, warning, notice, info, debug)
LOG_LEVEL=info
@ -59,11 +60,24 @@ LOG_LEVEL=info
# if `INVITE_ONLY` is true, what should be the secret code to sign up?
# INVITE_KEY=123
# signup to mailgun.com and edit with your domain and API key
# signup to an email service and edit with relevant info, see: https://docs.bonfirenetworks.org/Bonfire.Mailer.html
# MAIL_DOMAIN=mgo.example.com
# MAIL_KEY=xyz
# MAIL_FROM=admin@example.com
# MAIL_PROJECT_ID=
# MAIL_PRIVATE_KEY=
# MAIL_BASE_URI=
# MAIL_REGION=
# MAIL_SESSION_TOKEN=
# MAIL_SERVER=
# MAIL_USER=
# MAIL_PASSWORD=
# MAIL_PORT=
# MAIL_TLS=
# MAIL_SSL=
# MAIL_SMTP_AUTH=
# MAIL_RETRIES=
# MAIL_ARGS=
# Store uploads in S3-compatible service:
# UPLOADS_S3_BUCKET=

View File

@ -38,15 +38,21 @@ services:
- MAIL_BACKEND
- MAIL_DOMAIN
- MAIL_FROM
# for Mailgun
- MAIL_KEY
- MAIL_PROJECT_ID
- MAIL_PRIVATE_KEY
- MAIL_BASE_URI
# for SMTP
- MAIL_REGION
- MAIL_SESSION_TOKEN
- MAIL_SERVER
- MAIL_USER
- MAIL_PASSWORD
- MAIL_PORT
- MAIL_TLS
- MAIL_SSL
- MAIL_SMTP_AUTH
- MAIL_RETRIES
- MAIL_ARGS
- SENTRY_DSN
- OTEL_ENABLED
@ -132,15 +138,23 @@ services:
- postgres_password
volumes:
- db-data:/var/lib/postgresql/data
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 1096000000 # (about 1GB)
- type: tmpfs
target: /dev/shm
tmpfs:
size: 1000000000
# about 1 GB in bytes ^
networks:
- internal
# shm_size: ${DB_MEMORY_LIMIT}
# tmpfs:
# - /tmp:size=${DB_MEMORY_LIMIT}
# shm_size: ${DB_MEMORY_LIMIT} # unsupported by docker swarm
tmpfs:
- /tmp:size=${DB_MEMORY_LIMIT}M
command: >
postgres
-c max_connections=200
-c shared_buffers=${DB_MEMORY_LIMIT}MB
# -c shared_preload_libraries='pg_stat_statements'
# -c statement_timeout=1800000
# -c pg_stat_statements.track=all
#entrypoint: ['tail', '-f', '/dev/null'] # uncomment when the Postgres DB is corrupted and won't start