From eb61b571013bb0f5799282b7cb7788c8bf142cc3 Mon Sep 17 00:00:00 2001 From: WilliamMiceli Date: Wed, 5 Dec 2018 15:20:03 -0500 Subject: [PATCH] First test setup of PHPMyAdmin --- templates/PHPMyAdmin/0/README.md | 3 ++ templates/PHPMyAdmin/0/docker-compose.yml | 39 ++++++++++++++++++++++ templates/PHPMyAdmin/0/rancher-compose.yml | 35 +++++++++++++++++++ templates/PHPMyAdmin/config.yml | 8 +++++ 4 files changed, 85 insertions(+) create mode 100644 templates/PHPMyAdmin/0/README.md create mode 100644 templates/PHPMyAdmin/0/docker-compose.yml create mode 100644 templates/PHPMyAdmin/0/rancher-compose.yml create mode 100644 templates/PHPMyAdmin/config.yml diff --git a/templates/PHPMyAdmin/0/README.md b/templates/PHPMyAdmin/0/README.md new file mode 100644 index 0000000..d2230bd --- /dev/null +++ b/templates/PHPMyAdmin/0/README.md @@ -0,0 +1,3 @@ +# PHPMyAdmin + +https://hub.docker.com/r/phpmyadmin/phpmyadmin/ \ No newline at end of file diff --git a/templates/PHPMyAdmin/0/docker-compose.yml b/templates/PHPMyAdmin/0/docker-compose.yml new file mode 100644 index 0000000..90a4ef4 --- /dev/null +++ b/templates/PHPMyAdmin/0/docker-compose.yml @@ -0,0 +1,39 @@ +version: '2' + +services: + ghost: + image: phpmyadmin/phpmyadmin:latest + dns: + - 1.1.1.1 + - 1.0.0.1 + environment: + PMA_ARBITRARY: true + labels: + io.rancher.container.pull_image: always + {{- if .Values.HOST_LABEL}} + io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} + {{- end}} + {{- if .Values.TRAEFIK_HOST}} + traefik.enable: true + ### Start Web Segment + traefik.web.frontend.entryPoints: http,https + traefik.web.frontend.headers.forceSTSHeader: true + traefik.web.frontend.headers.SSLRedirect: true + traefik.web.frontend.headers.STSPreload: true + traefik.web.frontend.headers.STSSeconds: 15552000 + traefik.web.frontend.redirect.entryPoint: https + traefik.web.frontend.redirect.permanent: true + traefik.web.frontend.rule: Host:${TRAEFIK_HOST} + traefik.web.port: "80" + ### End Web Segment + {{- else}} + traefik.enable: false + {{- end}} + networks: + - db-admin + ports: + - "${WEB_PORT}:80" + restart: on-failure + +networks: + db-admin: \ No newline at end of file diff --git a/templates/PHPMyAdmin/0/rancher-compose.yml b/templates/PHPMyAdmin/0/rancher-compose.yml new file mode 100644 index 0000000..47a8778 --- /dev/null +++ b/templates/PHPMyAdmin/0/rancher-compose.yml @@ -0,0 +1,35 @@ +version: '2' +catalog: + name: PHPMyAdmin + 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: "TRAEFIK_HOST" + label: "Public Host Domain" + description: | + The host that Traefik will use to provide public access. + Leaving this empty will disable Traefik on this stack. + default: "subdomain.domain.tld" + required: false + type: string + + - variable: "WEB_PORT" + label: "Local Web Port" + description: | + The port to locally access the web interface on. + default: "10700" + required: true + type: string \ No newline at end of file diff --git a/templates/PHPMyAdmin/config.yml b/templates/PHPMyAdmin/config.yml new file mode 100644 index 0000000..bd27073 --- /dev/null +++ b/templates/PHPMyAdmin/config.yml @@ -0,0 +1,8 @@ +name: PHPMyAdmin +description: | + Status: NOT READY +version: latest +category: Database Administration +maintainer: WilliamMiceli +# license: +# projectURL: \ No newline at end of file