From 2fbe52340ae484e991790ac1d8a7eeff13ff4d95 Mon Sep 17 00:00:00 2001 From: DavidCroftDKFZ <46788708+DavidCroftDKFZ@users.noreply.github.com> Date: Tue, 28 Oct 2025 15:18:40 +0100 Subject: [PATCH] Directory sync: inherit host timezone Directory sync needs to be able to launch at specific times of day, and in order to do this in a predictable way, the timezone used inside the Docker container should be the same as the host. To do this, two files need to be mounted from the host. One file contains information about the time zone, the other file contains the file zone name. --- bbmri/modules/directory-sync-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bbmri/modules/directory-sync-compose.yml b/bbmri/modules/directory-sync-compose.yml index 834dd92..e672c41 100644 --- a/bbmri/modules/directory-sync-compose.yml +++ b/bbmri/modules/directory-sync-compose.yml @@ -16,3 +16,6 @@ services: DS_IMPORT_COLLECTIONS: ${DS_IMPORT_COLLECTIONS:-true} depends_on: - "blaze" + volumes: + - /etc/localtime:/etc/localtime:ro # inherit host timezone + - /etc/timezone:/etc/timezone:ro # inherit host timezone name