This project consists of set up a web server with Nginx, phpMyAdmin, MySQL, WordPress and SSL on Docker
Docker is a standard to build and share containerized apps.
Run the script
./src/build_run.sh
# Build the image based on our Dockerfile
docker build -t ft_server .
# Clean other our old containers
docker rm -f $(docker ps -qa)
# Create the container who execute a script on CMMD => setup_application.sh
docker run --name ft_server -it -p 80:80 -p 443:443 ft_server
Ports
- Port 80 is where nginx is listening
- Port 443 is used for secure web browser communication
NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. (For ft_server we are using it as a web serving)
phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web.
WordPress is the simplest, most popular way to create your own website or blog.
MySQL is a relational database management system based on SQL – Structured Query Language
docker build -t ft_server .
# Run container
docker run --name ft_server -it -p 80:80 -p 443:443 ft_server
# Show running containers
docker ps
# Show dead containers
docker ps -a
# Open the running container
docker exec -it ft_nginx /bin/bash
# Stop the running container
docker stop ft_nginx