diff --git a/templates/Redis/0/docker-compose.yml b/templates/Redis/0/docker-compose.yml new file mode 100644 index 0000000..f3a3bdc --- /dev/null +++ b/templates/Redis/0/docker-compose.yml @@ -0,0 +1,27 @@ +version: '2' + +services: + phpmyadmin: + image: redis:${IMAGE_TAG} + dns: # Using Cloudflare DNS + - 1.1.1.1 + - 1.0.0.1 + environment: + labels: + io.rancher.container.pull_image: always + {{- if .Values.HOST_LABEL}} + io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} + {{- end}} + traefik.enable: false + restart: on-failure + stdin_open: true + tty: true + volumes: + - /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 + {{- if .Values.DATA_DIR}} + {{- if eq .Values.CUSTOM_CONF "true"}} + - /RancherCattle/${DATA_DIR}/Redis/Configuration/redis.conf:/usr/local/etc/redis/redis.conf + {{- end}} + - /RancherCattle/${DATA_DIR}/Redis/Data:/data + {{- end}} \ No newline at end of file diff --git a/templates/Redis/0/rancher-compose.yml b/templates/Redis/0/rancher-compose.yml new file mode 100644 index 0000000..144fbda --- /dev/null +++ b/templates/Redis/0/rancher-compose.yml @@ -0,0 +1,47 @@ +version: '2' +catalog: + name: Redis + version: latest + # description: + # minimum_rancher_version: + # maximum_rancher_version: + # upgrade_from: + # uuid: + questions: + + - variable: "HOST_LABEL" + label: "Host Label Key/Value Pair" + description: | + The Key/Value pair on the host which the stack should be deployed. + default: "host.id=Host1" + required: false + type: string + + - variable: "IMAGE_TAG" + label: "Image Tag" + description: | + The image tag to use for the desired container variant. + default: "latest" + required: true + type: enum + options: + - "latest" + - "alpine" + - "32bit" + - "stretch" + + - variable: "CUSTOM_CONF" + label: "Custom Configuration" + description: | + Whether a custom configuration file should be mounted from the persistent data directory or not. + default: false + required: true + type: boolean + + - variable: "DATA_DIR" + label: "Data Directory" + description: | + The directory to store persistent data for the stack. + default: "Personal/Redis" + required: true + type: string diff --git a/templates/Redis/config.yml b/templates/Redis/config.yml new file mode 100644 index 0000000..1cba709 --- /dev/null +++ b/templates/Redis/config.yml @@ -0,0 +1,8 @@ +name: Redis +description: | + Redis is an open-source, networked, in-memory, key-value data store with optional durability. +version: latest +# category: +maintainer: WilliamMiceli +# license: +# projectURL: \ No newline at end of file