This project sets up a WordPress site with MariaDB and Nginx using Docker and Docker Compose.
.
├── Makefile
├── .env
└── srcs
├── docker-compose.yml
└── requirements
├── mariadb
│ ├── Dockerfile
│ └── mdb-conf.sh
├── nginx
│ ├── Dockerfile
│ └── nginx.conf
└── wordpress
├── Dockerfile
└── wp_conf.sh
- Docker
- Docker Compose
- Make
- Create a
.envfile with your configuration variables. - Build and start the containers:
make up
- Stop the containers:
make down
- Rebuild everything:
make re
- Clean all containers, images, and volumes:
make prune
mariadb→${HOME}/data/mariadbwordpress→${HOME}/data/wordpress
- WordPress will be available at
https://<your-domain> - Nginx uses a self-signed SSL certificate by default
- Add an
.env.examplefile for easier setup