Friday, February 25, 2022

Running Joomla on Docker

 in This Tutorial you will Learn " How To install Joomla using Docker on Rocky Linux 8.5"

Docker is an open-source virtualization technology known a containerization platform for software containers.
Joomla! is an award winning open source CMS platform for building websites and applications.                      
________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; sestatus ; dnf groupinstall "Development Tools" -y
docker-compose --version ; docker --version
docker network create joomla-network
docker pull mysql:5.7
docker pull joomla
docker volume create mysql-data ; docker volume inspect mysql-data
ln -s /var/lib/docker/volumes/mysql-data/_data /mysql

docker run -d --name joomladb  -v mysql-data:/var/lib/mysql --network joomla-network -e "MYSQL_ROOT_PASSWORD=strogpass123" -e MYSQL_USER=joomla -e "MYSQL_PASSWORD=strogpass123" -e "MYSQL_DATABASE=joomla" mysql:5.7

docker volume create joomla-data ; docker volume inspect joomla-data
ln -s /var/lib/docker/volumes/joomla-data/_data /joomla

docker run -d --name joomla -p 80:80 -v joomla-data:/var/www/html --network joomla-network -e JOOMLA_DB_HOST=joomladb -e JOOMLA_DB_USER=joomla -e JOOMLA_DB_PASSWORD=strogpass123 joomla

http://mail.example.com    ! admin/x9rb8iiph2tw
__________________________________________________________________________________________

1 comment: