mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-08 15:35:24 +02:00
41 lines
1.1 KiB
TOML
41 lines
1.1 KiB
TOML
[variables]
|
|
postgres_user = "${username}"
|
|
postgres_password = "${password:32}"
|
|
postgres_db = "timescaledb"
|
|
timescaledb_telemetry = "off"
|
|
|
|
[config]
|
|
mounts = []
|
|
|
|
[config.env]
|
|
POSTGRES_USER = "${postgres_user}"
|
|
POSTGRES_PASSWORD = "${postgres_password}"
|
|
POSTGRES_DB = "${postgres_db}"
|
|
TIMESCALEDB_TELEMETRY = "${timescaledb_telemetry}"
|
|
|
|
[[config.mounts]]
|
|
filePath = "001_create_timescaledb.sql"
|
|
content = """
|
|
CREATE EXTENSION IF NOT EXISTS timescaledb;
|
|
"""
|
|
|
|
[[config.mounts]]
|
|
filePath = "README.md"
|
|
content = """
|
|
# TimescaleDB
|
|
|
|
TimescaleDB is deployed as a PostgreSQL-compatible database on the internal `timescaledb:5432` service.
|
|
|
|
Connection values:
|
|
|
|
- Host: `timescaledb`
|
|
- Port: `5432`
|
|
- Database: `${postgres_db}`
|
|
- Username: `${postgres_user}`
|
|
- Password: generated by Dokploy
|
|
|
|
The template creates the TimescaleDB extension during first initialization. PostgreSQL initialization variables only apply when the data volume is empty.
|
|
|
|
Telemetry is disabled by default with `TIMESCALEDB_TELEMETRY=off`. The image runs `timescaledb-tune` automatically on first initialization and reads Docker cgroup limits when available.
|
|
"""
|