The aim of this project is to use the "docker" technology to install a complete Web service. This service can run multiple tasks, in this case: Wordpress, phpMyAdmin, and a SQL database. For a better understanding about the project, check this link.
Feel free to download the project:
git clone https://github.com/wblech/ft_server.git
To build a docker image:
docker build -t ft_server .
Run image:
docker run -it -p 80:80 -p 443:443 ft_server
Browser:
https://localhost
https://localhost/wordpress
https://localhost/phpmyadmin
Switching the NGINX index ON or OFF
docker exec $(docker ps | grep ft_server | cut -d ' ' -f 1) bash autoindex.sh
Delete image:
docker rm $(docker ps -a | grep ft_server | cut -d ' ' -f 1)