This project consists in having you set up a small infrastructure composed of three different services running in different Docker containers, connected between them by a docker-network. The three services are an nginx server, WordPress with php-fpm and an MariaDB database. Also, it will have two volumes for the WorPress database and the WordPress website files, making this data persistent on the host. In case of crash, the containers are restarted automatically. ft_server is the project that precedes this one.
- Docker: creation of custom images
- Docker-compose: configuration, networks, volumes, environment variables, service dependencies and service healthchecks
- Nginx web server configuration with and without SSL
- Wordpress website installation and configuration
- MariaDB database installation and configuration
- Docker
- Docker-compose
- VM or host with permissions to modify
/etc/hosts
- Change
DATA_PATH
on Makefile, andMARIADB_HOST_VOLUME_PATH
andWORDPRESS_HOST_VOLUME_PATH
on ./srcs/.env to your own paths. Customize .env with your own configuration. make start
- Get started with Docker-compose
- Docker-compose dependencies between services
- Docker-compose environment variables
- Docker-compose Networking overview
- Docker-compose Use volumes
- Docker-compose healthcheck
- Docker CMD vs ENTRYPOINT
- Docker Compose in 12 Minutes [YouTube]
- Docker Compose Tutorial - Docker in Practice [YouTube]
- Introducción a Docker Compose [YouTube]
- CÓMO escribir LOS MEJORES Dockerfiles [YouTube]
- Node, Mongo & Docker Compose [YouTube]
- Nginx Worpress recipe
- Configure Nginx to use TLS 1.2 / 1.3 only
- Nginx failing to reload - how to track down why?
- Como recargar y reiniciar Nginx
- Automating 'mysql_secure_installation'
- mysqld_safe — MySQL Server Startup Script
- How To Install MariaDB on Debian 10
- How to Install MariaDB on Debian 11
- Installing and Securing MariaDB on Ubuntu Bionic
- How to run Mariadb with Docker and Docker-Compose
- It's mysql or mysqld?
- MariaDB basic usage
- SHOW DATABASES Statement