Git Product home page Git Product logo

inception's Introduction

Inception 42

Setting a complete Web app (Nginx, wordpress+php-fpm, MariaDB) in Docker, each service in its own Container.

Table of Contents

What is Inception ?

Inception is a 42 project, that aims to broaden student's knowledge about the world of Docker and containerization.

What topics I need to know about Docker ?

  1. Dockerfile
  2. docker-compose
  3. Docker Networks
  4. Docker Volumes
  5. Docker Images
  6. Docker Containers
  7. Docker Environment Variables

What Technologies are used ?

  1. Containerization : Docker
  2. Web server : Nginx
  3. CMS : Wordpress
  4. Backend Programming Language : php
  5. Database Server : MariaDB

How the web app's architecture will look like ?

Each service will have its own container (Nginx, Wordpress+php, MariaDB). Services will communicate between each other in a local Docker Network, and only the port 443 of the Nginx service will be exposed to the Internet.

How to run the Project ?

  1. Clone the repositery:
    git clone https://gitlab.com/inception-42
  2. Change the working directory:
    cd inception-42
  3. Make sure that you are running dockerd, if not run it by the following command:
    service docker start
  4. Run make:
    make
    It will take few minutes first time to build images and download necessary packages.
  5. Then you are ready to start setting up your wordpress website, by checking your localhost in your browser.
    https://localhost

How to change the database's passwords ?

You can configure them and change the default ones, from .env file in the root of the repositery. By changing, the values of each environment variable.

Where the database and website's files are stored ?

By default, they are stored in this directory /home/anaouadi/data/
There are two different subdirectories:

  1. wordpress : website's files
  2. db : database

Thanks to Docker volumes, even after stoping your web app or a service, your data will persist and you can always check it and move it from your host machine or make backups.

How can I configure each service ?

Each service is already configured and customized so it will work smoothly, but if you want to change any configuration, you check the README.md of the service that you want in /inception/srcs/requirements/service/README.md

inception's People

Contributors

aynaever 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.