From 38c44b664383c52aebfe8715cfd57d036d617613 Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Wed, 5 Sep 2018 23:14:18 -0400 Subject: [PATCH] Added volumes to sync container and host time --- templates/Bind/0/docker-compose.yml | 2 ++ templates/EclipseChe-Single/0/docker-compose.yml | 2 ++ templates/Ghost/0/docker-compose.yml | 2 ++ templates/InvoiceNinja/0/docker-compose.yml | 4 ++++ templates/Nextcloud/0/docker-compose.yml | 4 ++++ templates/SnipeIT/0/docker-compose.yml | 5 ++++- templates/Traefik/0/docker-compose.yml | 2 ++ 7 files changed, 20 insertions(+), 1 deletion(-) diff --git a/templates/Bind/0/docker-compose.yml b/templates/Bind/0/docker-compose.yml index 27a4fc8..89254e2 100644 --- a/templates/Bind/0/docker-compose.yml +++ b/templates/Bind/0/docker-compose.yml @@ -24,6 +24,8 @@ services: restart: on-failure volumes: - Data:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro volumes: Data: diff --git a/templates/EclipseChe-Single/0/docker-compose.yml b/templates/EclipseChe-Single/0/docker-compose.yml index 5e8d3a1..6612059 100644 --- a/templates/EclipseChe-Single/0/docker-compose.yml +++ b/templates/EclipseChe-Single/0/docker-compose.yml @@ -22,6 +22,8 @@ services: - /var/run/docker.sock:/var/run/docker.sock - Data:/data - Repo:/repo + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro volumes: Data: diff --git a/templates/Ghost/0/docker-compose.yml b/templates/Ghost/0/docker-compose.yml index 7b30b9b..6424101 100644 --- a/templates/Ghost/0/docker-compose.yml +++ b/templates/Ghost/0/docker-compose.yml @@ -31,6 +31,8 @@ services: restart: on-failure volumes: - Content:/var/lib/ghost/content + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro networks: public-proxy: diff --git a/templates/InvoiceNinja/0/docker-compose.yml b/templates/InvoiceNinja/0/docker-compose.yml index ce014e1..5c84dba 100644 --- a/templates/InvoiceNinja/0/docker-compose.yml +++ b/templates/InvoiceNinja/0/docker-compose.yml @@ -34,6 +34,8 @@ services: volumes: - Logo:/var/www/app/public/logo - Storage:/var/www/app/storage + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro cron: image: invoiceninja/invoiceninja:latest dns: @@ -94,6 +96,8 @@ services: restart: on-failure volumes: - Database:/var/lib/mysql + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro web: image: nginx command: [nginx-debug, '-g', 'daemon off;'] diff --git a/templates/Nextcloud/0/docker-compose.yml b/templates/Nextcloud/0/docker-compose.yml index 8c8f2ee..9407a0a 100644 --- a/templates/Nextcloud/0/docker-compose.yml +++ b/templates/Nextcloud/0/docker-compose.yml @@ -36,6 +36,8 @@ services: volumes: - Application:/var/www/html - UserData:/var/www/html/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro mysql: image: mysql:5 dns: @@ -54,6 +56,8 @@ services: restart: on-failure volumes: - Database:/var/lib/mysql + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro networks: public-proxy: diff --git a/templates/SnipeIT/0/docker-compose.yml b/templates/SnipeIT/0/docker-compose.yml index 03168ad..5d66135 100644 --- a/templates/SnipeIT/0/docker-compose.yml +++ b/templates/SnipeIT/0/docker-compose.yml @@ -32,7 +32,8 @@ services: restart: on-failure volumes: - ${STORAGE_BASE_DIR}${APP_DIR}:/var/lib/snipeit - + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro mysql: image: mysql:5 dns: @@ -53,6 +54,8 @@ services: restart: on-failure volumes: - ${STORAGE_BASE_DIR}${DB_DIR}:/var/lib/mysql + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro networks: snipe-net: \ No newline at end of file diff --git a/templates/Traefik/0/docker-compose.yml b/templates/Traefik/0/docker-compose.yml index 8229c8f..8d72e8b 100644 --- a/templates/Traefik/0/docker-compose.yml +++ b/templates/Traefik/0/docker-compose.yml @@ -25,6 +25,8 @@ services: - /var/run/docker.sock:/var/run/docker.sock - /RancherConfig/${DATA_DIR}/traefik.toml:/traefik.toml - /RancherConfig/${DATA_DIR}/acme.json:/acme.json + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro networks: public-proxy: \ No newline at end of file