Sync time and timezone with host
This commit is contained in:
@@ -52,9 +52,8 @@ services:
|
|||||||
{{- end}}
|
{{- end}}
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
{{- if eq .Values.HOST_TIME "true"}}
|
- /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
|
- /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
|
||||||
{{- end}}
|
|
||||||
- /RancherCattleData/${DATA_DIR}/Application:/var/lib/snipeit
|
- /RancherCattleData/${DATA_DIR}/Application:/var/lib/snipeit
|
||||||
- /RancherCattleData/${DATA_DIR}/Backups:/var/www/html/storage/app/backups
|
- /RancherCattleData/${DATA_DIR}/Backups:/var/www/html/storage/app/backups
|
||||||
mysql:
|
mysql:
|
||||||
@@ -74,6 +73,7 @@ services:
|
|||||||
{{- end}}
|
{{- end}}
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
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
|
- /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
|
||||||
- /RancherCattleData/${DATA_DIR}/Database:/var/lib/mysql
|
- /RancherCattleData/${DATA_DIR}/Database:/var/lib/mysql
|
||||||
|
|
||||||
|
|||||||
@@ -63,12 +63,4 @@ catalog:
|
|||||||
description: |
|
description: |
|
||||||
A random 32-Character string which will be used for encryption.
|
A random 32-Character string which will be used for encryption.
|
||||||
required: true
|
required: true
|
||||||
type: password
|
type: password
|
||||||
|
|
||||||
- variable: "HOST_TIME"
|
|
||||||
label: "Use Host's Date/Time"
|
|
||||||
description: |
|
|
||||||
Use the host's date and time for the container.
|
|
||||||
default: true
|
|
||||||
required: true
|
|
||||||
type: boolean
|
|
||||||
Reference in New Issue
Block a user