- This topic is intended to introduce you to system administration.
- It will make you aware of the importance of using scripts to automate your tasks.
- You will discover the "docker" technology and use it to install a complete web server.
- This server will run multiples services: Wordpress, phpMyAdmin, and a SQL database.
- Read the pdf HERE
# Build the image based on our Dockerfile
docker build -t [image name] [Dockerfile path]
# Create the container who execute a script on CMMD => setup_application.sh
docker run --name [container name] -it -p 80:80 -p 443:443 [image name]
# Enter container's interactive mode
docker exec -it [container] /bin/bash
# Enable autoindex
docker exec -it [container] /bin/bash /tmp/autoindex/ai_on.sh
# Disable autoindex
docker exec -it [container] /bin/bash /tmp/autoindex/ai_off.sh
# Check old containers
docker ps -a
# Remove Containers
docker rm -f [container]
A rich, deep research to understand all the services used is vital. With Docker is even easier and faster to explore practically!
- Great starting place - LINK
- Understand Virtualization and Containerization
- Familiarize yourself with Docker enviroment - LINK
- Explore LEMP stack implementation - LINK | LINK (there are differences in some commands from debian 9, 10, and buster)
- MariaDB vs MySQL - LINK
- Check your host ports - LINK
- Install Wordpress along LEMP stack - LINK
- NGINX configuration - LINK
- Generate SSL key - LINK
- SED command for autoindex - LINK