GithubHelp home page GithubHelp logo

karisti / 42_inception Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 40 KB

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

Makefile 18.30% Shell 25.15% Dockerfile 56.55%
mysql 42 42cursus 42inception 42madrid 42projects 42school docker docker-compose mariadb nginx php-fpm

42_inception's Introduction

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

42_inception's People

Contributors

karisti avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.