From 285dfd90f64e11f06ef386fc28bedd738e5a2ff6 Mon Sep 17 00:00:00 2001 From: Pieter Hollander Date: Thu, 25 Jul 2024 22:58:39 +0200 Subject: [PATCH] Change to TZ env var. --- compose.timescaledb.yml | 4 +--- compose.yml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/compose.timescaledb.yml b/compose.timescaledb.yml index 3729a72..c4c78a1 100644 --- a/compose.timescaledb.yml +++ b/compose.timescaledb.yml @@ -30,14 +30,12 @@ services: PG_DB: ${PG_DB} TIMESCALEDB_ENABLED: ${TIMESCALEDB_ENABLED} LOG_LEVEL: ${LOG_LEVEL} + TZ: ${TZ} depends_on: timescaledb: condition: service_healthy networks: - internal - volumes: - - /etc/timezone:/etc/timezone:ro - - /etc/localtime:/etc/localtime:ro networks: internal: diff --git a/compose.yml b/compose.yml index c431ae1..6b4d5f3 100644 --- a/compose.yml +++ b/compose.yml @@ -10,6 +10,4 @@ services: PG_DB: ${PG_DB} TIMESCALEDB_ENABLED: ${TIMESCALEDB_ENABLED} LOG_LEVEL: ${LOG_LEVEL} - volumes: - - /etc/timezone:/etc/timezone:ro - - /etc/localtime:/etc/localtime:ro \ No newline at end of file + TZ: ${TZ} \ No newline at end of file