diff --git a/templates/zerotier/0/docker-compose.yml b/templates/zerotier/0/docker-compose.yml index e69de29..3bfa27a 100644 --- a/templates/zerotier/0/docker-compose.yml +++ b/templates/zerotier/0/docker-compose.yml @@ -0,0 +1,16 @@ +version: "3" +services: + zerotier: + container_name: #(Optional) Custom name for the container, rather than a generated default name. + image: zerotier/zerotier-containerized:latest + cap_add: + - NET_ADMIN + - SYS_ADMIN + command: -d + devices: + - "/dev/net/tun" + network_mode: + - "host" + restart: unless-stopped + volumes: + - "${CONFIG_STORAGE}:/var/lib/zerotier-one" \ No newline at end of file diff --git a/templates/zerotier/0/rancher-compose.yml b/templates/zerotier/0/rancher-compose.yml index f57d566..d36d45b 100644 --- a/templates/zerotier/0/rancher-compose.yml +++ b/templates/zerotier/0/rancher-compose.yml @@ -1,15 +1,13 @@ version: '2' catalog: - name: # Name of the versioned template of the Catalog Entry - version: # Version of the versioned template of the Catalog Entry - description: # Description of the versioned template of the Catalog Entry - minimum_rancher_version: # The minimum version of Rancher that supports the template, v1.0.1 and 1.0.1 are acceptable inputs - maximum_rancher_version: # The maximum version of Rancher that supports the template, v1.0.1 and 1.0.1 are acceptable inputs - upgrade_from: # The previous versions that this template can be upgraded from + name: "ZeroTier-Containerized" # Name of the versioned template of the Catalog Entry + version: "latest" # Version of the versioned template of the Catalog Entry + description: "Will fill in description later." # Description of the versioned template of the Catalog Entry questions: #Used to request user input for configuration options - - variable: # A single word that is used to pair the question and answer. - label: # The "question" to be answered. + - variable: "CONFIG_STORAGE" # A single word that is used to pair the question and answer. + label: "Persistent Config Path" # The "question" to be answered. description: | # The description of the question to show the user how to answer the question. - default: # (Optional) A default value that will be pre-populated into the UI - required: # (Optional) Whether or not an answer is required. By default, it's considered `false`. - type: # How the questions are formatted and types of response expected \ No newline at end of file + The path to where ZeroTier should hold it's persistent files. Preferrably a local-only location. + default: "/var/lib/Storage-Local/zerotier-one" # (Optional) A default value that will be pre-populated into the UI + required: false # (Optional) Whether or not an answer is required. By default, it's considered `false`. + type: string # How the questions are formatted and types of response expected \ No newline at end of file diff --git a/templates/zerotier/config.yml b/templates/zerotier/config.yml index 9ad6b08..2389139 100644 --- a/templates/zerotier/config.yml +++ b/templates/zerotier/config.yml @@ -1,8 +1,8 @@ name: ZeroTier-Containerized# Name of the Catalog Entry description: | - # Description of the Catalog Entry + Will put in description later. # Description of the Catalog Entry version: # Version of the Catalog to be used category: Networking # Category to be used for searching catalog entries maintainer: WilliamMiceli # The maintainer of the catalog entry -license: # The license +# license: # The license projectURL: https://zerotier.com # A URL related to the catalog entry \ No newline at end of file