From ce2b96ca8a3359adb19a3914f9af6615c023a277 Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Tue, 20 Mar 2018 15:52:16 -0400 Subject: [PATCH] Changing from local storage to NFS storage --- templates/zerotier/0/docker-compose.yml | 3 ++- templates/zerotier/0/rancher-compose.yml | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/zerotier/0/docker-compose.yml b/templates/zerotier/0/docker-compose.yml index a2ff569..e4fb103 100644 --- a/templates/zerotier/0/docker-compose.yml +++ b/templates/zerotier/0/docker-compose.yml @@ -15,4 +15,5 @@ services: network_mode: "host" restart: unless-stopped volumes: - - ${CONFIG_STORAGE}:/var/lib/zerotier-one \ No newline at end of file + - ${STORAGE_VOLUME}:/var/lib/zerotier-one +volumes_driver: rancher-nfs \ No newline at end of file diff --git a/templates/zerotier/0/rancher-compose.yml b/templates/zerotier/0/rancher-compose.yml index 7b90fdb..10fe5a2 100644 --- a/templates/zerotier/0/rancher-compose.yml +++ b/templates/zerotier/0/rancher-compose.yml @@ -11,11 +11,11 @@ catalog: default: "ZeroTier" required: false type: string - - variable: "CONFIG_STORAGE" - label: "Persistent Config Path" + - variable: "STORAGE_VOLUME" + label: "Persistent Storage Volume" description: | - The path to where ZeroTier should hold it's persistent files. Preferrably a local-only location. - default: "/var/lib/Storage-Local/zerotier-one" + The Volume Name that ZeroTier should use for it's persistent storage + default: "Test" required: false type: string - variable: "HOST_LABEL_KEY"