Wordpress
This commit is contained in:
parent
e7ff6eed31
commit
53e35941ed
77
templates/wordpress/0/docker-compose.yml
Normal file
77
templates/wordpress/0/docker-compose.yml
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
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.5.1'
|
||||||
|
volumes:
|
||||||
|
- 'wordpress_data:/var/www/html'
|
||||||
|
depends_on:
|
||||||
|
- mariadb
|
||||||
|
environment:
|
||||||
|
- WORDPRESS_DB_HOST=db
|
||||||
|
- WORDPRESS_DB_USER=${mariadb_user}
|
||||||
|
- WORDPRESS_DB_PASSWORD=${mariadb_user_password}
|
||||||
|
- WORDPRESS_USERNAME=${wordpress_username}
|
||||||
|
- WORDPRESS_PASSWORD=${wordpress_password}
|
||||||
|
|
||||||
|
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}
|
92
templates/wordpress/0/rancher-compose.yml
Normal file
92
templates/wordpress/0/rancher-compose.yml
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
version: '2'
|
||||||
|
catalog:
|
||||||
|
name: "WordPress"
|
||||||
|
version: "4.5.1"
|
||||||
|
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
|
||||||
|
health_check:
|
||||||
|
port: 80
|
||||||
|
interval: 5000
|
||||||
|
unhealthy_threshold: 3
|
||||||
|
request_line: 'GET / HTTP/1.0'
|
||||||
|
healthy_threshold: 2
|
||||||
|
response_timeout: 5000
|
||||||
|
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}
|
12
templates/wordpress/README.md
Normal file
12
templates/wordpress/README.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
## What is inside WordPress Stack?
|
||||||
|
* MariaDB Database
|
||||||
|
* WordPress (php/apache)
|
||||||
|
* Rancher Load Balancer (haproxy)
|
||||||
|
|
||||||
|
## Info
|
||||||
|
* To persist website and database data, two volumes are created: mariadb_data, wordpress_data.
|
||||||
|
* You can choose from one of existing rancher volume types depending on your own environment.
|
||||||
|
|
||||||
|
## Compatibility Notes
|
||||||
|
|
||||||
|
* Version v0.2-bitnami has some known [issue](https://github.com/bitnami/bitnami-docker-testlink/issues/17#issuecomment-261783035) with Docker overlay and overlay2 storage driver. Please try to switch to aufs or devicemapper.
|
21
templates/wordpress/catalogIcon-wordpress.svg
Normal file
21
templates/wordpress/catalogIcon-wordpress.svg
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
viewBox="-241 323.5 122.5 122.5" enable-background="new -241 323.5 122.5 122.5" xml:space="preserve">
|
||||||
|
<g id="Layer_1_1_">
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#464342" d="M-232.3,384.7c0,20.8,12.1,38.8,29.6,47.3l-25.1-68.7C-230.7,369.9-232.3,377.1-232.3,384.7z"/>
|
||||||
|
<path fill="#464342" d="M-144.3,382.1c0-6.5-2.3-11-4.3-14.5c-2.7-4.3-5.2-8-5.2-12.3c0-4.8,3.7-9.3,8.8-9.3c0.2,0,0.5,0,0.7,0
|
||||||
|
c-9.3-8.6-21.8-13.8-35.5-13.8c-18.4,0-34.5,9.4-43.9,23.7c1.2,0,2.4,0.1,3.4,0.1c5.5,0,14-0.7,14-0.7c2.8-0.2,3.2,4,0.3,4.3
|
||||||
|
c0,0-2.8,0.3-6,0.5l19.1,56.9l11.5-34.5l-8.2-22.4c-2.8-0.2-5.5-0.5-5.5-0.5c-2.8-0.2-2.5-4.5,0.3-4.3c0,0,8.7,0.7,13.8,0.7
|
||||||
|
c5.5,0,14-0.7,14-0.7c2.8-0.2,3.2,4,0.3,4.3c0,0-2.9,0.3-6,0.5l19,56.5l5.2-17.5C-146,391.8-144.3,386.6-144.3,382.1z"/>
|
||||||
|
<path fill="#464342" d="M-178.8,389.3l-15.8,45.8c4.7,1.4,9.7,2.1,14.8,2.1c6.1,0,12-1.1,17.5-3c-0.1-0.2-0.3-0.5-0.4-0.7
|
||||||
|
L-178.8,389.3z"/>
|
||||||
|
<path fill="#464342" d="M-133.6,359.5c0.2,1.7,0.4,3.5,0.4,5.4c0,5.3-1,11.3-4,18.8l-16.1,46.4c15.6-9.1,26.1-26,26.1-45.4
|
||||||
|
C-127.2,375.6-129.5,367-133.6,359.5z"/>
|
||||||
|
<path fill="#464342" d="M-179.7,323.5c-33.8,0-61.3,27.5-61.3,61.3c0,33.8,27.5,61.3,61.3,61.3c33.8,0,61.3-27.5,61.3-61.3
|
||||||
|
C-118.5,351-146,323.5-179.7,323.5z M-179.7,443.2c-32.2,0-58.5-26.2-58.5-58.5c0-32.2,26.2-58.5,58.5-58.5
|
||||||
|
c32.2,0,58.5,26.2,58.5,58.5C-121.3,417-147.5,443.2-179.7,443.2z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.6 KiB |
5
templates/wordpress/config.yml
Normal file
5
templates/wordpress/config.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
name: WordPress
|
||||||
|
description: |
|
||||||
|
Blog tool, publishing platform and CMS
|
||||||
|
version: v0.2-bitnami
|
||||||
|
category: Blogging
|
Loading…
Reference in New Issue
Block a user