Coder Social home page Coder Social logo

blaisek / inception Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.78 MB

This project aims to broaden your knowledge of system administration by using Docker. You will virtualize several Docker images.

Makefile 14.98% Dockerfile 18.85% Shell 66.17%

inception's Introduction

Welcome to inception ๐Ÿ‹

This project aims to broaden your knowledge of system administration by using Docker. You will virtualize several Docker images.

Table of Contents

  1. Mandatory Part
  2. Commands
  3. Project Structure
  4. Resources

Docker containers

  • NGINX
  • MariaDB
  • WordPress

Commands ๐Ÿ’ป

how to create env variables create permanent data add host build run stop containers restart stop and remove images

$ make

how to create env variables

$ make env

how to create permanent data

$ make vol

how to add host to /etc/hosts

$ make host

how to build and run

$ make up

how to stop containers

$ make stop

how to restart

$ make re

how to stop and remove containers images volumes and networks

$ make clean

Project structure ๐Ÿ“‚

srcs
โ”œโ”€โ”€ docker-compose.yml # Main docker-compose file
โ”œโ”€โ”€ .env # generated by make env
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ Makefile
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ requirements
    โ”œโ”€โ”€ mariadb # MariaDB image
    โ”‚	โ”œโ”€โ”€ conf
    โ”‚	โ”‚	โ”œโ”€โ”€ create_db.sql # SQL script to create the database
    โ”‚	โ”‚	โ””โ”€โ”€ mariadb-server.cnf # MariaDB configuration file
    โ”‚   โ”œโ”€โ”€ scripts
    โ”‚   โ”‚   โ””โ”€โ”€ entrypoint.sh # Script to create the database
    โ”‚	โ”œโ”€โ”€ Dockerfile
    โ”‚	โ””โ”€โ”€ .dockerignore
    โ”œโ”€โ”€ nginx # Nginx image
    โ”‚	โ”œโ”€โ”€ conf
    โ”‚	โ”‚	โ””โ”€โ”€ nginx.conf # Nginx configuration file
    โ”‚	โ””โ”€โ”€ Dockerfile
    โ”œโ”€โ”€ tools # Tools scritps
    โ”‚	โ”œโ”€โ”€ addHost.sh # Add hosts to /etc/hosts
    โ”‚	โ”œโ”€โ”€ envGen.sh # Generate .env file
    โ”‚   โ””โ”€โ”€ volGen.sh # Generate permanent data
    โ””โ”€โ”€ wordpress # Wordpress image
        โ”œโ”€โ”€ conf
      	โ”‚     โ””โ”€โ”€ www.conf # PHP configuration file
        โ”œโ”€โ”€ tools
        โ”‚     โ””โ”€โ”€ create_wordpress.sh # Script to create the wordpress database
        โ””โ”€โ”€ Dockerfile

Ressources ๐Ÿ“š

inception's People

Contributors

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