ft_server is the project, which studies system administration.
This project is intended to learn the basics of system and network administration. It will allow to install a complete web server, using a deployment technology named "Docker".
-
Build container.
docker build -t wordpress .
-
Run container.
# Default docker run -p 80:80 -p 443:443 -d wordpress # autoindex on docker run -p 80:80 -p 443:443 -e AUTOINDEX=on -d wordpress # autoindex off docker run -p 80:80 -p 443:443 -e AUTOINDEX=off -d wordpress
- Place all the necessary files in
srcs
folder -
Dockerfile
at the root of repository - Only one container
- Debian buster
- Nginx
- Run the
docker build .
command. - Run the
docker run xxx
command. (xxx is the container just built) - Launch the container with flags.
- Run multiple services
- Redirect to the correct website, according to the url
- SSL protocol
- https://localhost
- Certificate
- Autoindex which can be deactivated when the container is launched
- Database(MySQL) works with the WordPress and phpMyAdmin
- Place all the necessary files in
srcs
folder Dockerfile
at the root of repository- Don't use docker-compose
- Only one container
- Debian buster
- Nginx
- WordPress
- phpMyAdmin
- MySQL
- SSL protocol
- Run several services at the same time
- Database works with the WordPress and phpMyAdmin
- Redirect to the correct website depending on the URL
- Disableable autoindex