mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-08 15:35:24 +02:00
* fix: use environment variables from configuration in habitica-server * feat: add users to mongodb replicaSet This commit adds admin and habitica users + enables replicaSet auth by introducing a keyfile. Dokploy DB backups require specifying an user and password, so this enables that feature for Habitica app. * chore: less retries * chore: do not start server until mongo is healthy * fix: ensure habitica user exists for habitica db * fix: remove BASE_URL to prevent infinite redirects * fix: add missing ADMIN_EMAIL --------- Co-authored-by: Jorge Gómez Zarzosa <jorgegomez@bmat.com>
33 lines
852 B
TOML
33 lines
852 B
TOML
[variables]
|
|
main_domain = "${domain}"
|
|
mail_password = "${password:32}"
|
|
mongo_key = "${base64:756}"
|
|
mongo_admin_password = "${password}"
|
|
mongo_habitica_password = "${password}"
|
|
|
|
[config]
|
|
[[config.domains]]
|
|
serviceName = "client"
|
|
port = 80
|
|
host = "habitica.${main_domain}"
|
|
|
|
[config.env]
|
|
BASE_URL = "https://habitica.${main_domain}"
|
|
INVITE_ONLY = "false"
|
|
EMAIL_SERVER_URL = "mail.example.com"
|
|
EMAIL_SERVER_PORT = "587"
|
|
EMAIL_SERVER_AUTH_USER = "mail_user"
|
|
EMAIL_SERVER_AUTH_PASSWORD = "${mail_password}"
|
|
MONGO_KEYFILE_CONTENT = "${mongo_key}"
|
|
MONGO_ADMIN_USER = "admin"
|
|
MONGO_ADMIN_PASSWORD = "${mongo_admin_password}"
|
|
MONGO_HABITICA_USER = "habitica"
|
|
MONGO_HABITICA_PASSWORD = "${mongo_habitica_password}"
|
|
ADMIN_EMAIL = "no-reply@${main_domain}"
|
|
|
|
[[config.mounts]]
|
|
serviceName = "mongo"
|
|
type = "volume"
|
|
source = "habitica-mongo-data"
|
|
target = "/data/db"
|