Wordpress Update 4.9.5

This commit is contained in:
stebifan 2018-04-20 13:13:56 +02:00
parent baf33a1bd6
commit 4ba95ed96d
3 changed files with 168 additions and 1 deletions

View File

@ -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}

View File

@ -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}

View File

@ -1,5 +1,5 @@
name: WordPress
description: |
Blog tool, publishing platform and CMS
version: v0.2-bitnami
version: 4.9.5
category: Blogging