瀏覽代碼

Alberto hugonin master. Wordpress templates for arm32 and arm64. (#173)

Co-authored-by: Alberto Hugonin <alberto.hugonin@icloud.com>
Co-authored-by: AlbertoHugonin <55670783+AlbertoHugonin@users.noreply.github.com>
Robert Middleswarth 3 年之前
父節點
當前提交
b9de4a14aa

二進制
docs/images/WordPress_Adding_SSL_Certificate.PNG


二進制
docs/images/WordPress_Enable_SSL_Certificate.PNG


二進制
docs/images/WordPress_New_Proxy_Host.PNG


二進制
docs/images/WordPress_Portainer_Stack_Installation.PNG


+ 31 - 0
docs/wordpress_installation.md

@@ -0,0 +1,31 @@
+# WORDPRESS + SSL SETUP
+
+### WORDPRESS STACK
+
+Remember to choose a port for http not used for another service and a username and password for the mysql server used by wordpress
+
+![Stack_Install](https://raw.githubusercontent.com/novaspirit/pi-hosted/master/docs/images/WordPress_Portainer_Stack_Installation.PNG)
+
+### Nginx Proxy Manager
+
+[Novaspirit Tech - Nginx Proxy Manager Installation](https://www.youtube.com/watch?v=yl2Laxbqvo8)
+
+We now have to add a host to redirect all the traffic to the correct port
+
+![WordPress New Proxy Host](https://raw.githubusercontent.com/novaspirit/pi-hosted/master/docs/images/WordPress_New_Proxy_Host.PNG)
+
+Now you should be able with www.your_domain_here to access your site from the outside (if you have port 80 and 443 open)
+
+### HOW TO ENABLE SSL 
+
+To use the site as a shop you should enable SSL by using Let's Encrypt in the Nginx dashboard
+
+![WordPress Adding SSL Certificate](https://raw.githubusercontent.com/novaspirit/pi-hosted/master/docs/images/WordPress_Adding_SSL_Certificate.PNG)
+
+Remember to add the certificate to the proxy host
+![WordPress Enable SSL Certificate](https://raw.githubusercontent.com/novaspirit/pi-hosted/master/docs/images/WordPress_Enable_SSL_Certificate.PNG)
+
+
+### OFFLINE SETUP
+
+Just proceed after you deploy the stack to access the site using the correct ip address and port combination

二進制
images/wordpress.png


+ 39 - 0
stack/wordpress-stack.yml

@@ -0,0 +1,39 @@
+version: '3.1'
+
+services:
+
+  wordpress:
+    image: wordpress
+    container_name: wordpress:latest
+    restart: unless-stopped
+    ports:
+      - ${WEB_SERVER_PORT}:80
+    environment:
+      WORDPRESS_DB_HOST: db:3306
+      WORDPRESS_DB_USER: ${MYSQL_DATABASE_USER_NAME}
+      WORDPRESS_DB_PASSWORD: ${MYSQL_DATABASE_PASSWORD}
+      WORDPRESS_DB_NAME: wordpress
+    networks:
+      - wordpress     
+    volumes:
+      - wordpress:/var/www/html
+
+  db:
+    image: jc21/mariadb-aria:latest
+    restart: unless-stopped
+    environment:
+      MYSQL_DATABASE: wordpress
+      MYSQL_USER: ${MYSQL_DATABASE_USER_NAME}
+      MYSQL_PASSWORD: ${MYSQL_DATABASE_PASSWORD}
+      MYSQL_ROOT_PASSWORD: ${MYSQL_DATABASE_ROOT_PASSWORD}
+    networks:
+      - wordpress     
+    volumes:
+      - db:/var/lib/mysql
+
+volumes:
+  wordpress:
+  db:
+
+networks:
+  wordpress:

+ 39 - 1
template/portainer-v2-arm32.json

@@ -4785,6 +4785,44 @@
 				"url": "https://github.com/novaspirit/pi-hosted"
 			}
 		},
+		{
+			"categories":[
+				"WordPress",
+				"Web"
+			],
+			"description":"Wordpress setup with a MySQL database",
+			"env":[
+				{
+					"default": "5080",
+					"name":"WEB_SERVER_PORT",
+					"label":"External Port for webserver forward to port 80"
+				},
+				{
+					"default": "wordpress",
+					"name":"MYSQL_DATABASE_USER_NAME",
+					"label":"Database user name"
+				},
+				{
+					"name":"MYSQL_DATABASE_PASSWORD",
+					"label":"Database password for user"
+				},
+				{
+					"name":"MYSQL_DATABASE_ROOT_PASSWORD",
+					"label":"Database root password"
+				}
+			],
+			"logo":"https://raw.githubusercontent.com/novaspirit/pi-hosted/master/images/wordpress.png",
+			"note":"Deploys a Wordpress instance connected to a MySQL database.",
+
+			"platform":"linux",
+
+			"repository":{
+				"url": "https://github.com/novaspirit/pi-hosted",
+				"stackfile": "stack/wordpress-stack.yml"
+			},
+			"title":"Wordpress",
+			"type": 3
+		},
 		{
 			"categories": [
 				"Other",
@@ -4886,4 +4924,4 @@
 			]
 		}
 	]
-}
+}

+ 38 - 0
template/portainer-v2-arm64.json

@@ -4825,6 +4825,44 @@
 				"url": "https://github.com/novaspirit/pi-hosted"
 			}
 		},
+		{
+			"categories":[
+				"WordPress",
+				"Web"
+			],
+			"description":"Wordpress setup with a MySQL database",
+			"env":[
+				{
+					"default": "5080",
+					"name":"WEB_SERVER_PORT",
+					"label":"External Port for webserver forward to port 80"
+				},
+				{
+					"default": "wordpress",
+					"name":"MYSQL_DATABASE_USER_NAME",
+					"label":"Database user name"
+				},
+				{
+					"name":"MYSQL_DATABASE_PASSWORD",
+					"label":"Database password for user"
+				},
+				{
+					"name":"MYSQL_DATABASE_ROOT_PASSWORD",
+					"label":"Database root password"
+				}
+			],
+			"logo":"https://raw.githubusercontent.com/novaspirit/pi-hosted/master/images/wordpress.png",
+			"note":"Deploys a Wordpress instance connected to a MySQL database.",
+
+			"platform":"linux",
+
+			"repository":{
+				"url": "https://github.com/novaspirit/pi-hosted",
+				"stackfile": "stack/wordpress-stack.yml"
+			},
+			"title":"Wordpress",
+			"type": 3
+		},
 		{
 			"categories": [
 				"Other",