czetsuya / docker-apache-php-mysql-wordpress

A dockerized wordpress installation with Apache and Php demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Apache, PHP, MySQL and Wordpress

Blog: https://www.czetsuyatech.com/2020/04/docker-compose-with-apache-php-mysql-wordpress.html

This project is a demonstration of how docker works. It's actually composed of 3 sets of services:

  • MariaDB, Phpmyadmin, Adminer
  • MariaDB, Apache, PHP
  • MariaDB, Wordpress

MariaDB instance is the same for the 3 sets.

Requirements:

  • Ubuntu with Docker installed

MariaDB, Phpmyadmin, Adminer

MariaDB database is created and Phpmyadmin and adminer connects to it.

MariaDB, Apache, PHP

MariaDB database is created and a Php script hosted on Apache server will connect to the database and return whether the connection is successful or not.

MariaDB, Wordpress

Running Wordpress using the MariaDB instance.

How to run?

Once you have docker and docker-compose installed, go to the root of this project and execute:

// start the services
docker-compose up -d --build

// stop the services
docker-compose down

// if you want to run the services again, there is no need for the --build parameter
docker-compose up -d

And the following URLs should be available:

About

A dockerized wordpress installation with Apache and Php demo


Languages

Language:PHP 52.2%Language:Dockerfile 47.8%