Docker LEMP development environment for WordPress.
For learning purposes only.
This project aims to run a website, with multiple services, from a single docker container.
- Web server with Nginx
- SQL Database with MariaDB
- Database web admin with PhpMyAdmin
- OpenSource CMS with Wordpress
The project also have a self-signed certificate OpenSSL and an autoindex script on the container's root directory.
Docker: https://docs.docker.com/engine/install/
docker build -t $(IMAGE_NAME) .
builds the image
docker run -d -p 80:80 -p 443:443 --name $(CONTAINER_NAME) $(IMAGE_NAME)
runs the image as a container
docker stop $(CONTAINER_NAME)
stops the container
docker rmi $(IMAGE_NAME)
removes the image
docker rm $(CONTAINER_NAME)
removes the container
docker exec -it $(CONTAINER_NAME) bash
access the server CLI
docker exec $(CONTAINER_NAME) bash /autoindex.sh on
enables directory listing
docker exec $(CONTAINER_NAME) bash /autoindex.sh off
disables directory listing\
You can acess the website from your browser: