42 school project about use Docker
to install a complete web server which will run multiples services: Wordpress
, phpMyAdmin
and a SQL
Database.
My Notion tutorial (spanish) about the proyect step by step.
-
Clone
-
Build the image (inside the directory)
docker build --tag lemp_img .
-
Run the container
docker run -p 80:80 -p 443:443 -it lemp_img
-
Go to http://localhost
- Place all the necessary files for the configuration in a
src
folder, incluing Wordpress files. - Dockerfile file should be at the root of the repository.
- Set up the web server with Nginx in only one docker container. Container OS must be Debian Buster.
- Server must be able to run several services (Wordpress website, phpMyAdmin and MySQL) at the same time.
- The SQL db should works with de WordPress and phpMyAdmin.
- Server should be able to use
SSL
protocol. - Depending on the URL, the server should redirects to the correct website.
- Server should run with an autoindex that must be able to be disabled.
- Don't use Docker Compose
Platform to build, run and share applications with containers. Official documentation