12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Running Joomla! in Docker on Ubuntu Server</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Browser Based,Docker Made Easy,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Docker,Docker Container,Docker Simplified,Linux,Container,Containerization,Containerize,Docker How To,Docker Installation Tutorial,Docker Made Simple,Docker Tutorial,Getting Started With Docker,Joomla,CMS,Content Management System,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Running Joomla! in Docker on Ubuntu Server">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="12/28/2022 10:14:17 AM" />
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Running Joomla! in Docker on Ubuntu Server</h1>
- </div>
- <div></div>
- <div id="content">
- <h2>What is Joomla?</h2>
- <blockquote><em>Joomla! is a free and open-source content management system (CMS) for publishing web content. Over the years Joomla! has won several awards. It is built on a model–view–controller web application framework that can be used independently of the CMS that allows you to build powerful online applications.</em> -<a href="https://www.joomla.org/about-joomla.html" target="_blank">https://www.joomla.org/about-joomla.html</a></blockquote>
- <h2>Installing Docker</h2>
- <ol>
- <li>Log into the Linux host and run the following commands in a terminal window
- <div class="codeBlock"># update software respositories<br />
- sudo apt update<br />
- # install available software updates<br />
- sudo apt upgrade -y<br />
- # install prerequisites<br />
- sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y<br />
- # add docker gpg key<br />
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -<br />
- # add docker apt repository<br />
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"<br />
- # install docker<br />
- sudo apt install docker-ce docker-compose containerd.io -y<br />
- # add the current user to the docker group<br />
- sudo usermod -aG docker $USER<br />
- # reauthenticate for the new group membership to take effect<br />
- su - $USER</div>
- </li>
- </ol>
- <h2>Running Joomla Container</h2>
- <ol>
- <li>Continue with the following commands in a terminal window
- <div class="codeBlock"># create working directories<br />
- mkdir ~/docker/joomla -p && mkdir ~/docker/mariadb -p<br />
- # set owner of working directories<br />
- sudo chown "$USER":"$USER" ~/docker -R<br />
- # create containers network<br />
- docker network create containers<br />
- # run the mariadb docker container<br />
- docker run -d --name mariadb -e MYSQL_ROOT_PASSWORD=r00tp@$$ -e MYSQL_USER=joomla_rw -e MYSQL_PASSWORD='J00mla!!' -e MYSQL_DATABASE=joomla -v ~/docker/mariadb:/var/lib/mysql --network containers mariadb:latest<br />
- # run the joomla docker container<br />
- docker run -d --name joomla -p 8080:80 -e JOOMLA_DB_HOST=mariadb -e JOOMLA_DB_USER=joomla_rw -e JOOMLA_DB_PASSWORD='J00mla!!' -e JOOMLA_DB_NAME=joomla -v ~/docker/joomla:/var/www/html --network containers joomla:latest</div>
- </li>
- <li>Open a web browser and navigate to http://DNSorIP:8080</li>
- <li>The Joomla! setup screen should be displayed</li>
- <li>Select a Language and set the site title > Click Setup Login Data</li>
- <li>Create an admin/super user account > Click Setup Database Connection</li>
- <li>Enter the database configuration as follows:
- <p>Database Type: MySQLi<br />
- Host Name: mariadb<br />
- Username: joomla_rw<br />
- Password: J00mla!!<br />
- Database Name: joomla<br />
- Table Prefix: jmla_</p>
- </li>
- <li>Click the Install Joomla button</li>
- <li>When the installation completes, click on the Completed & Open Site button</li>
- <li>Welcome to Joomla!</li>
- </ol>
- <p>Source: <a href="https://hub.docker.com/_/joomla" target="_blank">https://hub.docker.com/_/joomla</a></p> </div>
- </div>
- </body>
- </html>
-
|