summaryrefslogtreecommitdiffhomepage
path: root/public/v2/apps/wordpress.json
diff options
context:
space:
mode:
authorKasra Bigdeli <[email protected]>2019-08-14 13:00:30 -0400
committerKasra Bigdeli <[email protected]>2019-08-14 13:00:30 -0400
commitd5223e80f564cc21ca90f67008fa12f76e1f069e (patch)
treef241e5b065d7fa24dcef18923bbe653262788d9b /public/v2/apps/wordpress.json
parent3f6dc9213224d35c97857f6db6aa20da5119ba67 (diff)
downloadcaprover-one-click-apps-d5223e80f564cc21ca90f67008fa12f76e1f069e.tar.gz
caprover-one-click-apps-d5223e80f564cc21ca90f67008fa12f76e1f069e.zip
Added v2
Diffstat (limited to 'public/v2/apps/wordpress.json')
-rw-r--r--public/v2/apps/wordpress.json73
1 files changed, 73 insertions, 0 deletions
diff --git a/public/v2/apps/wordpress.json b/public/v2/apps/wordpress.json
new file mode 100644
index 0000000..f3d63b6
--- /dev/null
+++ b/public/v2/apps/wordpress.json
@@ -0,0 +1,73 @@
+{
+ "captainVersion": "2",
+ "documentation": "Taken from https://docs.docker.com/compose/wordpress/ port mapping removed from WP as it's not needed",
+ "dockerCompose": {
+ "version": "3.3",
+ "services": {
+ "$$cap_appname-db": {
+ "image": "mysql:$$cap_mysql_version",
+ "notExposeAsWebApp": "true",
+ "volumes": [
+ "$$cap_appname-db-data:/var/lib/mysql"
+ ],
+ "restart": "always",
+ "environment": {
+ "MYSQL_ROOT_PASSWORD": "$$cap_db_pass",
+ "MYSQL_DATABASE": "wordpress",
+ "MYSQL_USER": "$$cap_db_user",
+ "MYSQL_PASSWORD": "$$cap_db_pass"
+ }
+ },
+ "$$cap_appname-wordpress": {
+ "depends_on": [
+ "$$cap_appname-db"
+ ],
+ "image": "wordpress:$$cap_wp_version",
+ "volumes": [
+ "$$cap_appname-wp-data:/var/www/html"
+ ],
+ "restart": "always",
+ "environment": {
+ "WORDPRESS_DB_HOST": "srv-captain--$$cap_appname-db:3306",
+ "WORDPRESS_DB_USER": "$$cap_db_user",
+ "WORDPRESS_DB_PASSWORD": "$$cap_db_pass"
+ }
+ }
+ },
+ "volumes": {
+ "db_data": {}
+ }
+ },
+ "instructions": {
+ "start": "WordPress is an online, open source website creation tool written in PHP. But in non-geek speak, it’s probably the easiest and most powerful blogging and website content management system (or CMS) in existence today.\n\n Enter your WordPress Configuration parameters and click on next. A MySQL (database) and a WordPress container will be created for you. The process will take about a minute for the process to finish.",
+ "end": "Wordpress is deployed and available as $$cap_appname-wordpress . \n\n IMPORTANT: It will take up to 2 minutes for wordpress to be ready. Before that, you might see 502 error page.\n"
+ },
+ "variables": [{
+ "id": "$$cap_db_user",
+ "label": "Database user",
+ "defaultValue": "wordpressuser",
+ "validRegex": "/^([a-zA-Z0-9])+$/"
+ },
+ {
+ "id": "$$cap_db_pass",
+ "label": "Database password",
+ "description": "",
+ "validRegex": "/.{1,}/"
+ },
+ {
+ "id": "$$cap_wp_version",
+ "label": "WordPress Version",
+ "defaultValue": "4.9",
+ "description": "Checkout their docker page for the valid tags https://hub.docker.com/r/library/wordpress/tags/",
+ "validRegex": "/^([^\\s^\\/])+$/"
+ },
+ {
+ "id": "$$cap_mysql_version",
+ "label": "MySQL Version",
+ "defaultValue": "5.7",
+ "description": "Checkout their docker page for the valid tags https://hub.docker.com/r/library/mysql/tags/",
+ "validRegex": "/^([^\\s^\\/])+$/"
+ }
+ ]
+
+} \ No newline at end of file