From b054d04ee1958ff222adba256ca893268e72754e Mon Sep 17 00:00:00 2001 From: WilliamMiceli Date: Tue, 18 Dec 2018 23:46:35 -0500 Subject: [PATCH] Updated persistent directories and added host time sync --- templates/Nextcloud/0/docker-compose.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/Nextcloud/0/docker-compose.yml b/templates/Nextcloud/0/docker-compose.yml index 92440c8..7fbfab9 100644 --- a/templates/Nextcloud/0/docker-compose.yml +++ b/templates/Nextcloud/0/docker-compose.yml @@ -44,8 +44,10 @@ services: - "${WEB_PORT}:80" restart: on-failure volumes: - - /RancherCattleData/${DATA_DIR}/Application:/var/www/html - - /RancherCattleData/${DATA_DIR}/UserData:/var/www/html/data + - /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 + - /RancherCattle/${DATA_DIR}/Application:/var/www/html + - /RancherCattle/${DATA_DIR}/UserData:/var/www/html/data mysql: image: mysql:5 dns: @@ -63,7 +65,9 @@ services: {{- end}} restart: on-failure volumes: - - /RancherCattleData/${DATA_DIR}/Database:/var/lib/mysql + - /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 + - /RancherCattle/${DATA_DIR}/Database:/var/lib/mysql {{- if eq .Values.REDIS "true"}} redis: image: redis:latest