How to Install WordPress on Docker using Portainer

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys welcome to striker bytes today we are going to be using portainer to install wordpress on docker wordpress is a free and open source content management system written in php and paired with a mysql or mariadb database in this video we are going to install wordpress access the installation perform the initial setup and review the admin panel we will pull the official wordpress docker image from the docker hub a link to the official wordpress docker image on the docker hub is in the video description the wordpress docker image page on the docker hub lists instructions and environmental variables that can be used during your installation today we are only going to do an extremely basic installation of the application so that you can use it to help you learn the basics of wordpress powered websites the first thing we need to do is copy the contents of the docker compose file from the application image page on the docker hub next make sure you highlight all of the text in the file and copy it to your clipboard now we are ready to login to portainer once logged in click on stacks in the left-hand sidebar stacks allows you to execute a docker compose file by using the web editor click on the add stack button first make sure you give your new stack a name i'll call this stack wordpress next go ahead and paste the contents of your clipboard into the web editor as you can see we will be deploying the main wordpress application container and a database container additionally this will create two volumes on your system one volume for the wordpress container and one volume for the database container looking through the default environment variables in the wordpress container we can see there are four that need to be reviewed the first is the path to the wordpress database host we will leave this as is because it points to the mysql container that is included in this installation next we will change the default database username to striker then the password can be edited as well finally for this container we will use the database striker db now the database container must be edited to create the database parameters that we specified in the wordpress application container the database name will be striker db the username needs to be striker and the password needs to match the password we specified in the application container for this basic installation those are all of the edits that need to be made now we can scroll down and click deploy the stack this could take a few minutes depending on your internet connection the docker host is now downloading the wordpress and database container images onto your system and preparing to run them now that our new stack of containers has been created it can be viewed and controlled using portainer for the default installation you can visit port 8080 to visit the application i adjusted the port on my installation to port 8085 since port 8080 was in use on my machine by another application after visiting the application for the first time in your browser you will be prompted to select your language when you select your language click on continue next we can configure the most basic parameters of our new wordpress installation for this installation i'll make the site title striker bytes of course the username will be striker for this video i'll make a weak but easy to remember password make sure you use a strong and more secure password for your installation next i'll make up an email address then i'll check the search engine visibility box in order to discourage search engines from indexing the site finally i'll click on install wordpress if everything goes smoothly you should see a success screen similar to this one now i'll click on the login button to go to the login screen i'll enter the username and password from the setup screen after clicking login we are brought to the main wordpress dashboard from here you can control the entire website clicking on the posts button on the sidebar will take you to the post management screen as you can see the installation comes with a test post clicking on it will take us to the editor let's go back and create a new post this post will be titled test post i'll add some text and then click on publish now we can view the post on our website clicking the website title will take you to the home page i'm not a fan of this default template let's go back into the admin dashboard and change the active website template we can do that by clicking on the logo in the top left hand corner of the screen next open the appearance menu and click on themes we will be presented with a list of website themes that are pre-installed let's activate this one once the theme is activated we can click on our website name at the top of the screen to visit the home page and check it out this is a little better now let's go back to the dashboard and review some other settings clicking on settings from the sidebar reveals some basic website settings be aware if you change the wordpress address url or site address url you could lose access to your installation otherwise here you can familiarize yourself with various settings to control how your installation behaves that's all for this video if you have any suggestions for other applications that you would like to see please leave them in the comments section below also if this video helped you in any way consider clicking the like button and subscribing thank you for watching have a great day
Info
Channel: StrykerBytes
Views: 14,906
Rating: undefined out of 5
Keywords: docker, portainer, wordpress, self-hosted, self hosted, tutorial, blog, website
Id: PUelQSznyfk
Channel Id: undefined
Length: 7min 50sec (470 seconds)
Published: Thu Sep 30 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.