"Dockerizing Dreams, One Container at a Time!" - Lebron James π
Inception is a robust project designed to create a fully dockerized web environment. Leveraging Docker's power, we set up a stack with Nginx, WordPress, and MariaDB, each in separate containers for optimized performance and scalability. π³π»
- MariaDB Container: Includes
mariadb-serverfor robust data management. A custom script (maria.sh) initializes the database. ποΈ - Nginx Container: Installs
nginxandopensslfor secure web serving, with SSL certificates generated on-the-fly. Custom Nginx configuration is provided vianginx.conf. ππ - WordPress Container: This container includes PHP and its extensions, alongside
wp-clifor WordPress management. A specific script (wp_conf.sh) configures and launches WordPress. π
- Clone the repository:
git clone https://github.com/joao-per/Inception.git - Change localhost to joao-per.42.fr in
/etc/hostsfile - Build and launch the containers:
docker-compose up --build - Access the website at:
https://joao-per.42.fr
- MariaDB: Configured through
maria.sh, initializing the database system. - Nginx:
nginx_config.confsets up SSL and reverse proxy to WordPress. - WordPress:
wp_conf.shdownloads, configures, and installs WordPress with predefined environment variables.
- Ensure Docker and Docker Compose are installed on your system.
- Modify environment variables in
.envfile for custom configuration. - Access container logs for debugging:
docker logs <container-name> - Access container shell for debugging:
docker exec -it <container-name> /bin/bash
