Updated persistent directories and added host time sync

This commit is contained in:
WilliamMiceli
2018-12-18 23:46:35 -05:00
parent 5dd0d4eb31
commit b054d04ee1

View File

@@ -44,8 +44,10 @@ services:
- "${WEB_PORT}:80" - "${WEB_PORT}:80"
restart: on-failure restart: on-failure
volumes: volumes:
- /RancherCattleData/${DATA_DIR}/Application:/var/www/html - /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system
- /RancherCattleData/${DATA_DIR}/UserData:/var/www/html/data - /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: mysql:
image: mysql:5 image: mysql:5
dns: dns:
@@ -63,7 +65,9 @@ services:
{{- end}} {{- end}}
restart: on-failure restart: on-failure
volumes: 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"}} {{- if eq .Values.REDIS "true"}}
redis: redis:
image: redis:latest image: redis:latest