From 3a421b1344514387340688815ae0093dc10297b3 Mon Sep 17 00:00:00 2001 From: Pieter Hollander Date: Wed, 27 Mar 2024 18:13:23 +0100 Subject: [PATCH] Change timescaleDB bind mount to docker volume for easier deployment. --- docker/compose.with-database-grafana.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/compose.with-database-grafana.yml b/docker/compose.with-database-grafana.yml index 0d473f0..b7fa9d4 100644 --- a/docker/compose.with-database-grafana.yml +++ b/docker/compose.with-database-grafana.yml @@ -14,7 +14,7 @@ services: volumes: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro - - /opt/opendtu-logger/database:/var/lib/postgresql/data + - opendtu_db:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ${PG_USER}"] interval: 5s @@ -61,4 +61,5 @@ networks: internal: attachable: true volumes: - opendtu_logger_grafana: \ No newline at end of file + opendtu_logger_grafana: + opendtu_db: