From c437f4878269ee36b0488162ae6abfb5b4b683ec Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Tue, 7 Aug 2018 20:40:24 -0400 Subject: [PATCH] Switching over to rancher-nfs --- templates/Bind/0/docker-compose.yml | 10 +++++++++- templates/Bind/0/rancher-compose.yml | 16 ++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/templates/Bind/0/docker-compose.yml b/templates/Bind/0/docker-compose.yml index a7dee7d..b466ab8 100644 --- a/templates/Bind/0/docker-compose.yml +++ b/templates/Bind/0/docker-compose.yml @@ -22,4 +22,12 @@ services: {{- end}} restart: on-failure volumes: - - ${STORAGE_BASE_DIR}${DATA_DIR}:/data \ No newline at end of file + - Data:/data + +volumes: + Data: + driver: rancher-nfs + driver_opts: + host: 10.0.10.21 + export: /RancherCattleData/${DATA_DIR}/Data + onRemove: retain \ No newline at end of file diff --git a/templates/Bind/0/rancher-compose.yml b/templates/Bind/0/rancher-compose.yml index 1a9a316..84b3887 100644 --- a/templates/Bind/0/rancher-compose.yml +++ b/templates/Bind/0/rancher-compose.yml @@ -37,23 +37,15 @@ catalog: label: "Webmin Port" description: | The port that the Webmin interface will be accessible on. - default: "10000" + default: "1100" required: false type: string - - variable: "STORAGE_BASE_DIR" - label: "Base Storage Directory" - description: | - The base path of where persistent storage should be kept at. - default: "/RancherStorage/Bind" - required: true - type: string - - - variable: "DATA_DIR" + - variable: DATA_DIR label: "Data Directory" description: | - The path of where persistent data should be kept at. - default: "/Data" + The directory within the stack directory to store data + default: "Personal/Bind" required: true type: string