Install Promscale using a Docker image

You can use Docker to install TimescaleDB with the Promscale extension, and the Promscale Connector. The Docker images are available for download from Docker Hub.

The TimescaleDB images have a suffix that indicates the version of PostgreSQL and TimescaleDB. For example, the tag pg14.2-ts2.6.1-latest includes PostgreSQL 14.2and TimescaleDB 2.6.1. pg14-latest is the latest image available for PostgreSQL version 14. Reference the appropriate images when deploying Promscale and follow the instructions provided by your container platform. If you are using Kubernetes follow these instructions instead.

important

Running Promscale directly using docker run is not recommended for production environments. This can be useful for testing purposes and is just provided as an example.

Install Promscale with Docker

Before you begin, you must have Docker installed on your local system. For packages and instructions, see the Docker installation documentation.

Installing Promscale using Docker

  1. Use Docker to create a network for Promscale and TimescaleDB:

    1. docker network create --driver bridge promscale
  2. Install TimescaleDB in a Docker container on a network named promscale. It also port forwards to port 5432 on your local system:

    1. docker run --name timescaledb -e POSTGRES_PASSWORD=<password> \
    2. -e TSTUNE_PROFILE=promscale \
    3. -d -p 5432:5432 \
    4. --network promscale \
    5. timescale/timescaledb-ha:pg14-latest \
    6. postgres -csynchronous_commit=off
  3. Run the Promscale Connector Docker container on a network named promscale. It also port forwards to port 9201 on your local system:

    1. docker run --name promscale -d -p 9201:9201 \
    2. --network promscale timescale/promscale:latest \
    3. -db.password=<password> \
    4. -db.port=5432 \
    5. -db.name=postgres \
    6. -db.host=timescaledb \
    7. -db.ssl-mode=allow

For upgrading the Promscale, see the [upgrade] section.