mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-10 08:25:23 +02:00
The postgres:18-alpine image moved PGDATA from /var/lib/postgresql/data
to /var/lib/postgresql, so mounting the volume at the old path made the
entrypoint abort and the db container restart forever, failing the
service_healthy dependency for dash and status-page.
- Mount db_data at /var/lib/postgresql (postgres 18 layout)
- Remove host port mappings (Dokploy routes via domains/Traefik)
- Generate POSTGRES_PASSWORD and CLICKHOUSE_PASSWORD with ${password:32}
instead of hardcoded credentials
- Drop unused DASH_PORT/STATUS_PAGE_PORT env and dangling empty
[[config.mounts]] section in template.toml
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
25 lines
557 B
TOML
25 lines
557 B
TOML
[variables]
|
|
main_domain = "${domain}"
|
|
second_domain = "${domain}"
|
|
secret_base = "${base64:64}"
|
|
db_password = "${password:32}"
|
|
clickhouse_password = "${password:32}"
|
|
|
|
[config]
|
|
[[config.domains]]
|
|
serviceName = "dash"
|
|
port = 3000
|
|
host = "${main_domain}"
|
|
[[config.domains]]
|
|
serviceName = "status-page"
|
|
port = 3001
|
|
host = "${second_domain}"
|
|
|
|
|
|
[config.env]
|
|
BETTER_AUTH_SECRET = "${secret_base}"
|
|
BETTER_AUTH_URL = "http://${main_domain}"
|
|
NEXT_PUBLIC_URL = "http://${main_domain}"
|
|
POSTGRES_PASSWORD = "${db_password}"
|
|
CLICKHOUSE_PASSWORD = "${clickhouse_password}"
|