Created WordPress and MySQL containers | PlexGuide.com

Created WordPress and MySQL containers

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

hawk2g

Active
Original poster
May 2, 2018
38
21
After watching the PG youtube vid about making your own containers, I decided to give it a go. I really wanted my PG server to host a web page so I went with WordPress. WordPress also needed a DB, so I did one for MySQL as well.

I'll attach a zip file which includes the yml files for the 2, 2x sh files that ask for a username and password to create and a edited version of pgbox.sh so it can allow these questions before installing the containers.

I don't know if pgbox.sh has changed since 7.2.4, but you can upload the other 4 files (since they don't exist in any PG version) and safely add the following code at /opt/plexguide/menu/pgbox/pgbox.sh

This for permissions
chmod -R 755 /opt/plexguide/menu
Code:
elif [ "$p" == "mysql" ]; then bash /opt/plexguide/menu/mysql/mysql.sh;
elif [ "$p" == "wordpress" ]; then bash /opt/plexguide/menu/wordpress/wordpress.sh;
paste it between
Code:
if [ "$p" == "plex" ]; then bash /opt/plexguide/menu/plex/plex.sh;
elif [ "$p" == "nzbthrottle" ]; then nzbt; fi
so it looks like this
Code:
if [ "$p" == "plex" ]; then bash /opt/plexguide/menu/plex/plex.sh;
elif [ "$p" == "mysql" ]; then bash /opt/plexguide/menu/mysql/mysql.sh;
elif [ "$p" == "wordpress" ]; then bash /opt/plexguide/menu/wordpress/wordpress.sh;
elif [ "$p" == "nzbthrottle" ]; then nzbt; fi
The only problem I am having is that WordPress doesn't show up in the TLD for Traefik or App Removal section, while MySQL does. I know very little programming and all of this was made by looking at existing files and replacing bits and pieces, so maybe someone with more knowledge may spot a rookie mistake that is causing it.
 

Attachments

  • Like
Reactions: 1 user

Admin9705

Administrator
Project Manager
Donor
Jan 17, 2018
5,156
2,117
Thanks. Will check out. We had it prior but meant to readd. Was part of pg5
 
  • Like
Reactions: 1 user

Admin9705

Administrator
Project Manager
Donor
Jan 17, 2018
5,156
2,117
ya it will be. i had it before, but i know tons more so it properly backups and works with traefik and etc; you could tell the subdomain u want generate, select the ports and deploy with traefik. even set to your top level domain. wiht multiple verisons running.
 

Recommend NewsGroups

      Up To a 58% Discount!

Trending