Added time sync with host to some templates

This commit is contained in:
William Miceli
2019-05-15 09:37:51 -04:00
parent c46b373762
commit b74bf09c04
3 changed files with 15 additions and 2 deletions

View File

@@ -33,6 +33,8 @@ 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
{{- if eq .Values.PERSIST_CONF "true"}}
- /Rancher/${DATA_DIR}/Configuration:/usr/local/apache2/conf
{{- end}}

View File

@@ -35,4 +35,7 @@ services:
traefik.web.frontend.rule: Host:${TRAEFIK_HOST}
traefik.web.port: "80"
### End Web Segment
restart: on-failure
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

View File

@@ -32,6 +32,9 @@ services:
### End Hubot Segment
links:
- rocketchat:rocketchat
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
mongo:
image: mongo:latest
dns: # Using Cloudflare DNS
@@ -44,6 +47,8 @@ services:
{{- end}}
traefik.enable: false
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
- /Rancher/${DATA_DIR}/Database/Data:/data/db
- /Rancher/${DATA_DIR}/Database/Dump:/dump
command: mongod --smallfiles
@@ -74,4 +79,7 @@ services:
traefik.rocketchat.port: "3000"
### End RocketChat Segment
links:
- mongo:mongo
- mongo:mongo
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