From e0cb6707b739da799ad3a9cf9534f8bcbd57610f Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Fri, 6 Dec 2024 10:10:16 -0300 Subject: [PATCH] Add localtime volume mount to ensure timezone consistency --- docker-compose.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d87ce01..a8083c5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,7 @@ services: restart: unless-stopped volumes: - ./config/postgres:/var/lib/postgresql/data + - /etc/localtime:/etc/localtime:ro environment: POSTGRES_PASSWORD: itsasecret POSTGRES_USER: dendrite @@ -29,6 +30,7 @@ services: - ./config/media:/var/dendrite/media - ./config/jetstream:/var/dendrite/jetstream - ./config/search_index:/var/dendrite/searchindex + - /etc/localtime:/etc/localtime:ro depends_on: postgres: condition: service_healthy @@ -39,7 +41,8 @@ services: image: dock.mau.dev/mautrix/whatsapp restart: unless-stopped volumes: - - ./config/mautrix-whatsapp:/data + - ./config/mautrix-whatsapp:/data + - /etc/localtime:/etc/localtime:ro command: ["/usr/bin/mautrix-whatsapp", "--ignore-unsupported-server"] depends_on: postgres: @@ -50,7 +53,8 @@ services: image: dock.mau.dev/mautrix/telegram restart: unless-stopped volumes: - - ./config/mautrix-telegram:/data + - ./config/mautrix-telegram:/data + - /etc/localtime:/etc/localtime:ro depends_on: postgres: condition: service_healthy @@ -60,7 +64,8 @@ services: image: dock.mau.dev/mautrix/discord restart: unless-stopped volumes: - - ./config/mautrix-discord:/data + - ./config/mautrix-discord:/data + - /etc/localtime:/etc/localtime:ro depends_on: postgres: condition: service_healthy @@ -71,6 +76,7 @@ services: volumes: - ./config/dendrite:/etc/dendrite - ./config/media:/var/dendrite/media + - /etc/localtime:/etc/localtime:ro environment: - CRON=0 0 * * * - CLEANMEDIA_OPTS=-c /etc/dendrite/dendrite.yaml -t 30 -l