ð TimescaleDB
![]()
TimescaleDB is an open-source time-series database built on top of PostgreSQL. It adds powerful time-series capabilities like continuous aggregates, automatic partitioning and compression â while remaining fully compatible with standard PostgreSQL.
This container is used as the dedicated database backend for Tracearr, which requires TimescaleDB for its Quality tracking and historical data features.
ð·ïļ Category: Database
ðģ Image: timescale/timescaledb:latest-pg15
ð Links
| Â | Â |
|---|---|
| ðĶ Project | github.com/timescale/timescaledb |
| ð Support | GitHub Issues |
| ð Docs | docs.timescale.com |
ð Ports
| Port | Protocol | Description |
|---|---|---|
5432 | TCP | PostgreSQL / TimescaleDB default port. Change the host port if you already have another PostgreSQL instance running on 5432 |
ðū Volumes
| Host Path | Container Path | Description |
|---|---|---|
/mnt/cache/appdata/timescaledb/data | /var/lib/postgresql/data | Persistent database storage |
âïļ Environment Variables
| Variable | Default | Masked | Description |
|---|---|---|---|
POSTGRES_USER | tracearr | â | Database user that will be created on first startup |
POSTGRES_PASSWORD | `` | â | Secure password for the database user. Must be set before starting the container |
POSTGRES_DB | tracearr | â | Name of the database that will be automatically created on first startup |
TZ | Europe/Vienna | â | Timezone of the container, e.g. Europe/Vienna or Europe/Berlin |
ð Quick Start
- Open the MOS Hub and search for TimescaleDB
- Set a secure
POSTGRES_PASSWORD - Adjust
POSTGRES_USERandPOSTGRES_DBif needed - Click Install
- After the container is running, enable the TimescaleDB extension:
docker exec -it timescaledb psql -U tracearr -d tracearr -c "CREATE EXTENSION IF NOT EXISTS timescaledb;"
- Point your Tracearr
DATABASE_URLto this container
ð DATABASE_URL for Tracearr
Use this format in your Tracearr configuration:
postgres://DB_USER:DB_PASSWORD@HOST_IP:5433/DB_NAME
Example:
postgres://tracearr:mysecretpassword@192.168.11.253:5433/tracearr
â ïļ Note: The host port is
5433(not5432) to avoid conflicts if you already have a standard PostgreSQL container running on your server.
ðĄ Tip: After migrating Tracearr to this container, drop any manually created
library_stats_dailytable and restart Tracearr â it will recreate it correctly as a TimescaleDB continuous aggregate.
ð For more information: Visit the TimescaleDB documentation for advanced time-series features, continuous aggregates, and hypertable optimization.