diff --git a/templates/Nextcloud-NFS/0/docker-compose.yml b/templates/Nextcloud-NFS/0/docker-compose.yml index ed9fadb..2d4eab1 100644 --- a/templates/Nextcloud-NFS/0/docker-compose.yml +++ b/templates/Nextcloud-NFS/0/docker-compose.yml @@ -3,7 +3,7 @@ services: nextcloud: image: nextcloud:stable-apache - depends_on: + depends_on: # Hopefully one day I'll upgrade to a rancher version that actually makes use of this. Here just for a future reminder. - mysql dns: - 1.1.1.1 @@ -67,12 +67,15 @@ volumes: Nextcloud-Application: driver: rancher-nfs driver_opts: + export: /RancherCattleData/$${STACK_NAME}/${DATA_DIR}/Application/ onRemove: retain Nextcloud-UserData: driver: rancher-nfs driver_opts: + export: /RancherCattleData/$${STACK_NAME}/${DATA_DIR}/UserData/ onRemove: retain Nextcloud-Database: driver: rancher-nfs driver_opts: + export: /RancherCattleData/$${STACK_NAME}/${DATA_DIR}/Database/ onRemove: retain \ No newline at end of file diff --git a/templates/Nextcloud-NFS/0/rancher-compose.yml b/templates/Nextcloud-NFS/0/rancher-compose.yml index 708efbf..8ab9f82 100644 --- a/templates/Nextcloud-NFS/0/rancher-compose.yml +++ b/templates/Nextcloud-NFS/0/rancher-compose.yml @@ -28,6 +28,7 @@ catalog: label: "MySQL Root Password" description: | A secure password to be used by the "root" MySQL user. + # default: required: true type: password @@ -35,6 +36,7 @@ catalog: label: "MySQL User Password" description: | A secure password to be used by the "nextcloud_user" MySQL user. + # default: required: true type: password @@ -42,6 +44,7 @@ catalog: label: "Nextcloud Admin Username" description: | The username of the Nextcloud admin user. + # default: required: true type: string @@ -49,9 +52,18 @@ catalog: label: "Nextcloud Admin Password" description: | A secure password for the Nextcloud admin user. + # default: required: true type: password + - variable: DATA_DIR + label: "Data Directory" + description: | + The directory within the stack directory to store data + default: "Personal" + required: true + type: string + services: nextcloud: scale: 1