From 5b634b3c4f1d576641e5d51e2105a2ab9bda4708 Mon Sep 17 00:00:00 2001 From: Anze Date: Wed, 18 Nov 2020 21:02:34 +0100 Subject: [PATCH] Use TimescaleDB instead of base PostgreSQL --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ab27071..f606f9b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -36,7 +36,7 @@ services: db: - image: postgres:12.1-alpine + image: timescale/timescaledb:latest-pg12 container_name: grafolean-snmp-db volumes: # You should always save DB data to a host directory unless you are prepared to lose it. By default @@ -50,7 +50,7 @@ services: - POSTGRES_PASSWORD=${DB_PASS:-admin} restart: always healthcheck: - test: ["CMD-SHELL", "pg_isready -h db -t 1 -q"] + test: ["CMD-SHELL", "pg_isready -h db -U ${DB_USER:-admin} -t 1 -q"] interval: 10s timeout: 5s retries: 3