Testing with volumes declared in NGINX

This commit is contained in:
WilliamMiceli
2019-01-07 11:38:06 -05:00
parent 5d898a7fb3
commit 34b3bd79c7

View File

@@ -38,7 +38,7 @@ services:
# restart: on-failure # restart: on-failure
# user: www-data # user: www-data
# volumes_from: # volumes_from:
# - nextcloud # - nginx
nextcloud: nextcloud:
image: nextcloud:fpm-alpine image: nextcloud:fpm-alpine
dns: # Using Cloudflare DNS dns: # Using Cloudflare DNS
@@ -60,7 +60,6 @@ services:
{{- if .Values.HOST_LABEL}} {{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}} {{- end}}
# io.rancher.sidekicks: cron
traefik.enable: false traefik.enable: false
links: links:
# - cron # - cron
@@ -69,13 +68,8 @@ services:
- redis - redis
{{- end}} {{- end}}
restart: on-failure restart: on-failure
volumes: volumes_from:
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system - nginx
- /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
- /RancherCattle/${DATA_DIR}/Configuration/Nextcloud:/var/www/html/config # Nextcloud configuration files
- /RancherCattle/${DATA_DIR}/Apps:/var/www/html/custom_apps # Nextcloud apps
- /RancherCattle/${DATA_DIR}/Nextcloud:/var/www/html # Nextcloud site
- /RancherCattle/${DATA_DIR}/UserData:/var/www/html/data # Users' data file
nginx: nginx:
image: nginx:latest # Can't use ":alpine" until I have a way to get the "www-data" user added automatically. (Project for another time) image: nginx:latest # Can't use ":alpine" until I have a way to get the "www-data" user added automatically. (Project for another time)
dns: # Using Cloudflare DNS dns: # Using Cloudflare DNS
@@ -86,6 +80,7 @@ services:
{{- if .Values.HOST_LABEL}} {{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}} {{- end}}
io.rancher.sidekicks: nextcloud
traefik.enable: true traefik.enable: true
### Start Nextcloud Segment ### Start Nextcloud Segment
traefik.nextcloud.frontend.entryPoints: http,https traefik.nextcloud.frontend.entryPoints: http,https
@@ -122,7 +117,11 @@ services:
volumes: volumes:
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system - /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
- /RancherCattle/${DATA_DIR}/Configuration/Nextcloud:/var/www/html/config # Nextcloud configuration files
- /RancherCattle/${DATA_DIR}/Configuration/NGINX:/etc/nginx # NGINX configuration files - /RancherCattle/${DATA_DIR}/Configuration/NGINX:/etc/nginx # NGINX configuration files
- /RancherCattle/${DATA_DIR}/Apps:/var/www/html/custom_apps # Nextcloud apps
- /RancherCattle/${DATA_DIR}/Nextcloud:/var/www/html # Nextcloud site
- /RancherCattle/${DATA_DIR}/UserData:/var/www/html/data # Users' data file
mysql: mysql:
image: mysql:5 image: mysql:5
dns: # Using Cloudflare DNS dns: # Using Cloudflare DNS