docker compose for timescaledb and postgresql-adaptor
✓ Published0🌍 Public
JJastor11
Last edited May 6, 2020
Created on Dec 10, 2025
This example shows a Docker Compose setup that runs TimescaleDB and the Timescale Prometheus adapter as two linked services for time-series data storage and querying. The YAML configuration defines a `timescaledb` service using the `timescale/timescaledb:latest-pg12` image with host path mapping to `/data/timescaledb`, and a `prometheus_postgresql_adapter` service using `timescale/timescale-prometheus:latest` that connects to the database via environment variables. Port mappings expose PostgreSQL on 5432 and the adapter's telemetry endpoint on 9201. The adapter is configured with retry logic and debug logging through `TS_PROM_` prefixed environment variables.
AI-generated description