https://github.com/andersonhsporto/ft-inception
Docker cluster with Wordpress, Mariadb and nginx
https://github.com/andersonhsporto/ft-inception
debian docker docker-compose makefile nginx wordpress
Last synced: about 2 months ago
JSON representation
Docker cluster with Wordpress, Mariadb and nginx
- Host: GitHub
- URL: https://github.com/andersonhsporto/ft-inception
- Owner: andersonhsporto
- Created: 2023-01-10T01:15:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-04T14:39:35.000Z (over 1 year ago)
- Last Synced: 2025-01-17T05:28:52.180Z (3 months ago)
- Topics: debian, docker, docker-compose, makefile, nginx, wordpress
- Language: Dockerfile
- Homepage:
- Size: 138 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ft_inception
## Description
This project is about setting up a complete web server. It must run multiples services: Wordpress, Mariadb, and nginx. To do this, you will need to use Docker and docker-compose. You will also need to make sure that your SQL database works with the WordPress.
## Objectives
- Docker
- Docker-compose
- System administration
- Web stack## Structure
In the image below, you can see the structure of the project:
## Services
### Wordpress
WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. Features include a plugin architecture and a template system, referred to within WordPress as Themes.
### MariaDB
MariaDB is a community-developed, commercially supported fork of the MySQL relational database management system (RDBMS), intended to remain free and open-source software under the GNU General Public License. Development is led by some of the original developers of MySQL, who forked it due to concerns over its acquisition by Oracle Corporation in 2009.
### Nginx
Nginx is a web server which can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache. The software was created by Igor Sysoev and first publicly released in 2004. A company of the same name was founded in 2011 to provide support and Nginx plus paid software.
## Ports
| Service | Port | Exposed |
| ----------- | ---- | ------- |
| Wordpress | 8080 | no |
| MariaDB | 3306 | no |
| Nginx (SSL) | 443 | yes |## Instructions
To run this project, you will need Docker and docker-compose installed on your machine.
### Usage
To run the project, you will need to run the following command:
```bash
make all
```This will build the images and run the containers.
To stop the containers, you will need to run the following command:
```bash
make stop
```To delete the containers, you will need to run the following command:
```bash
make clean
```To delete the containers and images, you will need to run the following command:
```bash
make fclean
```To rebuild the images, you will need to run the following command:
```bash
make re
```## Docker
Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels. All containers are run by a single operating-system kernel and are thus more lightweight than virtual machines. Containers are created from images that specify their precise contents. Images are often created by combining and modifying standard images downloaded from public repositories.
## Docker-compose
Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration. To learn more about all the features of Compose see the list of features.