From 4ba95ed96d6cf6e831ce94ebfd628e193736a0ad Mon Sep 17 00:00:00 2001 From: stebifan Date: Fri, 20 Apr 2018 13:13:56 +0200 Subject: [PATCH] Wordpress Update 4.9.5 --- templates/wordpress/1/docker-compose.yml | 82 ++++++++++++++++++++++ templates/wordpress/1/rancher-compose.yml | 85 +++++++++++++++++++++++ templates/wordpress/config.yml | 2 +- 3 files changed, 168 insertions(+), 1 deletion(-) create mode 100644 templates/wordpress/1/docker-compose.yml create mode 100644 templates/wordpress/1/rancher-compose.yml diff --git a/templates/wordpress/1/docker-compose.yml b/templates/wordpress/1/docker-compose.yml new file mode 100644 index 0000000..4ee561d --- /dev/null +++ b/templates/wordpress/1/docker-compose.yml @@ -0,0 +1,82 @@ +version: '2' +services: + mariadb: + image: 'mariadb' + volumes: + - 'mariadb_data:/var/lib/mysql' + environment: + - MYSQL_ROOT_PASSWORD=${mariadb_root_password} + - MYSQL_USER=${mariadb_user} + - MYSQL_PASSWORD=${mariadb_user_password} + - MYSQL_DATABASE=wordpress + + wordpress: + image: 'wordpress:4.9.5' + volumes: + - 'wordpress_data:/var/www/html' + depends_on: + - mariadb + links: + - mariadb:mariadb + environment: + - WORDPRESS_DB_HOST=mariadb + - WORDPRESS_DB_USER=${mariadb_user} + - WORDPRESS_DB_PASSWORD=${mariadb_user_password} + - WORDPRESS_USERNAME=${wordpress_username} + - WORDPRESS_PASSWORD=${wordpress_password} + labels: + io.rancher.container.hostname_override: container_name + service: https + + redirect-https: + image: hoffmannhosting/docker-nginx-https-redirect + labels: + io.rancher.container.hostname_override: container_name + service: http + + letsencrypt: + image: janeczku/rancher-letsencrypt:v0.5.0 + environment: + API_VERSION: Production + AWS_ACCESS_KEY: '' + AWS_SECRET_KEY: '' + AZURE_CLIENT_ID: '' + AZURE_CLIENT_SECRET: '' + AZURE_RESOURCE_GROUP: '' + AZURE_SUBSCRIPTION_ID: '' + AZURE_TENANT_ID: '' + CERT_NAME: ${DOMAIN} + CLOUDFLARE_EMAIL: '' + CLOUDFLARE_KEY: '' + DNSIMPLE_EMAIL: '' + DNSIMPLE_KEY: '' + DNS_RESOLVERS: 8.8.8.8:53,8.8.4.4:53 + DOMAINS: ${DOMAIN} + DO_ACCESS_TOKEN: '' + DYN_CUSTOMER_NAME: '' + DYN_PASSWORD: '' + DYN_USER_NAME: '' + EMAIL: s.hoffmann@hoffmann-hosting.de + EULA: 'Yes' + GANDI_API_KEY: '' + OVH_APPLICATION_KEY: '' + OVH_APPLICATION_SECRET: '' + OVH_CONSUMER_KEY: '' + PROVIDER: HTTP + PUBLIC_KEY_TYPE: RSA-2048 + RENEWAL_PERIOD_DAYS: '20' + RENEWAL_TIME: '12' + VULTR_API_KEY: '' + volumes: + - /var/lib/rancher:/var/lib/rancher + - zertifikate:/etc/letsencrypt + labels: + io.rancher.container.agent.role: environment + io.rancher.container.create_agent: 'true' + service: letsencrypt + +volumes: + mariadb_data: + driver: ${volume_driver} + wordpress_data: + driver: ${volume_driver} \ No newline at end of file diff --git a/templates/wordpress/1/rancher-compose.yml b/templates/wordpress/1/rancher-compose.yml new file mode 100644 index 0000000..0b9c85d --- /dev/null +++ b/templates/wordpress/1/rancher-compose.yml @@ -0,0 +1,85 @@ +version: '2' +catalog: + name: "WordPress" + version: "4.9.5" + description: "Blog tool, publishing platform and CMS based on bitnami images" + questions: + - variable: DOMAIN + description: "Wordpress Domain" + label: "Wordpress Domain" + required: true + default: "test.de" + type: "string" + - variable: mariadb_root_password + description: "MariaDB root password, set on first run" + label: "MariaDB Root Password" + required: true + default: "mariadb_my_root" + type: "password" + - variable: mariadb_user + description: "MariaDB database user, created on first run" + label: "MariaDB Database User" + required: true + default: "wordpress" + type: "string" + - variable: mariadb_user_password + description: "MariaDB database user password, set on first run" + label: "MariaDB Database User Password" + required: true + default: "wordpress_password" + type: "password" + - variable: mariadb_database_name + description: "WordPress database name" + label: "WordPress database name" + required: true + default: "wordpress" + type: "string" + - variable: wordpress_username + description: "WordPress application username" + label: "WordPress application username" + required: true + default: "admin" + type: "string" + - variable: wordpress_password + description: "WordPress application password" + label: "WordPress application password" + required: true + default: "bitnami" + type: "password" + - variable: volume_driver + description: "Volume driver to use with this service" + label: "Volume driver" + required: true + default: "rancher-nfs" + type: enum + options: + - local + - rancher-nfs +services: + wordpress: + scale: 1 + start_on_create: true + lb_config: + port_rules: + - target_port: 80 + hostname: ${DOMAIN} + + mariadb: + scale: 1 + start_on_create: true + + redirect-https: + scale: 1 + start_on_create: true + lb_config: + port_rules: + - target_port: 80 + hostname: ${DOMAIN} + + letsencrypt: + scale: 1 + start_on_create: true + lb_config: + port_rules: + - target_port: 80 + hostname: ${DOMAIN} \ No newline at end of file diff --git a/templates/wordpress/config.yml b/templates/wordpress/config.yml index 0be7d68..65a457e 100644 --- a/templates/wordpress/config.yml +++ b/templates/wordpress/config.yml @@ -1,5 +1,5 @@ name: WordPress description: | Blog tool, publishing platform and CMS -version: v0.2-bitnami +version: 4.9.5 category: Blogging