{"id":21458503,"url":"https://github.com/mguardia10/42cursus_inception","last_synced_at":"2025-03-17T04:18:05.163Z","repository":{"id":251883832,"uuid":"838713798","full_name":"MGuardia10/42cursus_inception","owner":"MGuardia10","description":"This project aims to broaden your knowledge of System Administration by using Docker.","archived":false,"fork":false,"pushed_at":"2024-10-08T17:38:08.000Z","size":3002,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T13:44:07.496Z","etag":null,"topics":["42school","bash-scripting","docker","docker-compose","inception-42"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MGuardia10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-06T07:42:26.000Z","updated_at":"2024-10-08T17:38:12.000Z","dependencies_parsed_at":"2024-09-08T13:29:15.936Z","dependency_job_id":"7923623b-db3a-4680-979d-5d3c0ac4feed","html_url":"https://github.com/MGuardia10/42cursus_inception","commit_stats":null,"previous_names":["mguardia10/42cursus_inception"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGuardia10%2F42cursus_inception","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGuardia10%2F42cursus_inception/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGuardia10%2F42cursus_inception/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGuardia10%2F42cursus_inception/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MGuardia10","download_url":"https://codeload.github.com/MGuardia10/42cursus_inception/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243971213,"owners_count":20376784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["42school","bash-scripting","docker","docker-compose","inception-42"],"created_at":"2024-11-23T06:20:19.415Z","updated_at":"2025-03-17T04:18:05.135Z","avatar_url":"https://github.com/MGuardia10.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 42cursus_inception\nThis project aims to broaden your knowledge of System Administration by using Docker.\n\nThis project consists in having you set up a small infrastructure composed of different\nservices under specific rules. The whole project has to be done in a virtual machine. You\nhave to use docker compose. You can see the subject [**HERE.**](https://github.com/MGuardia10/42cursus/blob/main/subjects/en/inception_subject_en.pdf)\n\n![Docker](https://img.shields.io/badge/Docker-a?style=for-the-badge\u0026logo=docker\u0026color=grey)\n![Bash](https://img.shields.io/badge/Bash-a?style=for-the-badge\u0026logo=GNUBash\u0026color=grey)\n![Makefile](https://img.shields.io/badge/Makefile-a?style=for-the-badge\u0026logo=monster\u0026logoColor=orange\u0026color=grey)\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003eRules to follow:\u003c/strong\u003e\u003c/summary\u003e\n  \u003cbr\u003e\n  \u003cul\u003e\n    \u003cli\u003eEach Docker image must have the same name as its corresponding service.\u003c/li\u003e\n    \u003cli\u003eEach service has to run in a dedicated container.\u003c/li\u003e\n    \u003cli\u003eFor performance matters, the containers must be built either from the penultimate stable version of \u003cstrong\u003eAlpine\u003c/strong\u003e or \u003cstrong\u003eDebian\u003c/strong\u003e.\u003c/li\u003e\n    \u003cli\u003eYou also have to write your own \u003cstrong\u003eDockerfiles\u003c/strong\u003e, one per service. The Dockerfiles must be called in your \u003cstrong\u003edocker-compose.yml\u003c/strong\u003e by your Makefile.\u003c/li\u003e\n    \u003cli\u003eIt means you have to build yourself the Docker images of your project. It is then forbidden to pull ready-made Docker images, as well as using services such as \u003cstrong\u003eDockerHub\u003c/strong\u003e (Alpine/Debian being excluded from this rule).\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003eDiagram of the expected result for mandatory part:\u003c/strong\u003e\u003c/summary\u003e\n  \u003cbr\u003e\n  \u003cul\u003e\n    \u003cimg width=\"566\" alt=\"diagram of expected result\" src=\"https://github.com/user-attachments/assets/72388c94-a7b8-4b0b-ac4b-bf4ff060bef0\"\u003e\n  \u003c/ul\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003eExpected directory structure:\u003c/strong\u003e\u003c/summary\u003e\n  \u003cbr\u003e\n  \u003cul\u003e\n    \u003cimg width=\"539\" alt=\"Expected directory structure\" src=\"https://github.com/user-attachments/assets/c4dabb84-23f6-4947-9650-9fe80375d747\"\u003e\n  \u003c/ul\u003e\n\u003c/details\u003e\n\n## Mandatory part\n\nList of services and volumes to set up for the mandatory part:\n- A Docker container that contains **NGINX** with TLSv1.2 or TLSv1.3 only.\n- A Docker container that contains **WordPress + php-fpm** (it must be installed and configured) only without nginx.\n- A Docker container that contains **MariaDB** only without nginx.\n- A volume that contains your **WordPress database**.\n- A second volume that contains your **WordPress website** files.\n- A **docker-network** that establishes the connection between your containers.\n\n## Bonus Part\nA Dockerfile must be written for each extra service. Thus, each one of them will run inside its own container and will have, if necessary, its dedicated volume.\n\nBonus list:\n- Set up **redis cache** for your WordPress website in order to properly manage the\ncache.\n- Set up a **FTP server** container pointing to the volume of your WordPress website.\n- Create a simple **static website** in the language of your choice except PHP. For example, a showcase site or a site for presenting your resume.\n- Set up **Adminer**.\n- Set up a service of your choice that you think is useful. I am using **Grafana**.\n\n## Disclaimer\n\u003e At [42School](https://en.wikipedia.org/wiki/42_(school)), almost every project must be written in accordance to the [Norm](https://github.com/MGuardia10/42cursus/blob/main/subjects/en/norm_en.pdf), the school's coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmguardia10%2F42cursus_inception","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmguardia10%2F42cursus_inception","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmguardia10%2F42cursus_inception/lists"}