From 99592b61e3a1c0f1be44544ef7406f0a7629afb1 Mon Sep 17 00:00:00 2001 From: WilliamMiceli Date: Wed, 5 Dec 2018 22:42:27 -0500 Subject: [PATCH] Sync time and timezone with host --- templates/Nextcloud/0/docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/Nextcloud/0/docker-compose.yml b/templates/Nextcloud/0/docker-compose.yml index c7cdd69..78d3022 100644 --- a/templates/Nextcloud/0/docker-compose.yml +++ b/templates/Nextcloud/0/docker-compose.yml @@ -36,6 +36,8 @@ services: - "${WEB_PORT}:80" restart: on-failure volumes: + - /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system + - /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system - /RancherCattleData/${DATA_DIR}/Application:/usr/local/apache2/htdocs # - /RancherCattleConfig/${DATA_DIR}/httpd:/usr/local/apache2/conf - /RancherCattleData/${DATA_DIR}/Application:/var/www/html @@ -81,6 +83,7 @@ services: {{- end}} restart: on-failure volumes: + - /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system - /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system - /RancherCattleData/${DATA_DIR}/Database:/var/lib/mysql {{- if eq .Values.REDIS "true"}}