Skip to content

karisti/42_inception

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42_inception

Demo image

Description

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.

Lessons

  • 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

Prerequisites

  • Docker
  • Docker-compose
  • VM or host with permissions to modify /etc/hosts

Usage

  1. Change DATA_PATH on Makefile, and MARIADB_HOST_VOLUME_PATH and WORDPRESS_HOST_VOLUME_PATH on ./srcs/.env to your own paths. Customize .env with your own configuration.
  2. make start

Resources

Basic docker / docker-compose configuration

Nginx installation and configuration

MariaDB installation and configuration

Worpress + php-fpm installation and configuration

Others

System administration

About

Small infrastructure composed of three different services (Nginx, Wordpress, php-fpm, MariaDB) with docker-compose. 42 Madrid cursus project.

Topics

Resources

Stars

Watchers

Forks