Skip to content

This project aims to broaden your knowledge of system administration by using Docker. You will virtualize several Docker images, creating them in your new personal virtual machine.

Notifications You must be signed in to change notification settings

MarJC5/Inception

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42Lausanne
Project n°13 - Inception

This project aims to broaden your knowledge of system administration by using Docker. You will virtualize several Docker images, creating them in your new personal virtual machine.

Let's talk about Docker

... (more to come)

How to use this repository

# Clone the repository
git clone https://github.com/MarJC5/Inception.git

# Go to the repository
cd Inception/srcs

# Generate .env file
make env #fill the prompts

# Add hosts to your /etc/hosts file
make host

# Build the images
make

# Open the browser and go to https://jmartin.42.fr
# Further instructions are available with:
make help
make info

Project structure

srcs
├── docker-compose.yml # Main docker-compose file
├── .env # generated by make env
├── .env.example
└── requirements
    ├── mariadb # MariaDB image
    │	├── conf
    │	│	├── create_db.sql # SQL script to create the database
    │	│	└── mariadb-server.cnf # MariaDB configuration file
    │	├── Dockerfile
    │	├── .dockerignore
    │	└── scripts
    │	    └── entrypoint.sh # MariaDB configuration script
    ├── nginx # Nginx image
    │	├── conf
    │	│	└── nginx.conf # Nginx configuration file
    │	├── Dockerfile
    │	└── .dockerignore
    ├── tools # Tools scritps
    │	├── add-host.sh # Add hosts to /etc/hosts
    │	└── env-gen.sh # Generate .env file
    └── wordpress # Wordpress image
        ├── conf
        │	├── php.conf.ini # PHP configuration file
        │	└── phpinfo.php # PHP info page for testing purposes only
        ├── Dockerfile
        ├── .dockerignore
        └── scripts
            └── entrypoint.sh # Wordpress installation script

Bonus

srcs/requirements/bonus
├── adminer # Adminer image
│  ├── Dockerfile
│  └── .dockerignore
├── backup # Backup image
│  ├── Dockerfile
│  ├── .dockerignore
│  └── scripts
│     └── backup.sh # Backup script
└── website # Static Website image
    ├── app
    │  ├── data
    │  │   └── data.json # Data file
    │  ├── images # Static images
    │  ├── index.html # HTML file for the website
    │  ├── js
    │  │  └── render.js # Render the data file into the HTML page
    │  ├── package.json # npm package file
    │  ├── package-lock.json
    │  ├── server.js # NodeJS server to serve the website on port 3000
    │  ├── stylesheets
    │  │   ├── compiled.css # Compiled CSS file from tailwindcss regarding the class used in the HTML page
    │  │   └── style.css # Default tailwindcss stylesheet
    │  └── tailwind.config.js # Tailwindcss configuration file
    ├── Dockerfile
    └── .dockerignore

About

This project aims to broaden your knowledge of system administration by using Docker. You will virtualize several Docker images, creating them in your new personal virtual machine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published