{"id":21229878,"url":"https://github.com/sleleu/inception","last_synced_at":"2026-04-07T21:31:16.460Z","repository":{"id":111720239,"uuid":"589615455","full_name":"Sleleu/inception","owner":"Sleleu","description":"A project to get familiar with docker","archived":false,"fork":false,"pushed_at":"2023-01-30T16:20:38.000Z","size":1590,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T02:16:16.183Z","etag":null,"topics":["42","docker","docker-compose","dockerfile","inception","mariadb","nginx","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/Sleleu.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":"2023-01-16T14:36:56.000Z","updated_at":"2023-02-01T19:26:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"40d6c6aa-d9d2-4d46-87cf-9a27592bc0de","html_url":"https://github.com/Sleleu/inception","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sleleu/inception","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sleleu%2Finception","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sleleu%2Finception/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sleleu%2Finception/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sleleu%2Finception/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sleleu","download_url":"https://codeload.github.com/Sleleu/inception/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sleleu%2Finception/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31530641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["42","docker","docker-compose","dockerfile","inception","mariadb","nginx","wordpress"],"created_at":"2024-11-20T23:30:09.013Z","updated_at":"2026-04-07T21:31:16.427Z","avatar_url":"https://github.com/Sleleu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# inception\nA project to get familiar with docker\n\n## Subject\n\nThis project consists in building an architecture composed of containers and volumes in order to build a wordpress site using mariadb as a database, and nginx as a web server.\n\nThe following installations must be performed :\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\nconfigured) 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\nHere is an example diagram of the final result provided by the subject :\n\n![Screenshot from 2023-01-30 16-59-21](https://user-images.githubusercontent.com/93100775/215528044-cd99af72-77ff-44ed-b1c3-dd0cc73eb55f.png)\n\n## Installation\n\n```shell\ngit clone git@github.com:Sleleu/inception.git\ncd inception\nmake\n```\nIt's possible to change the identifiers and characteristics of the site from a .env file, established by default with random identifiers for this project\n\n## Usefull commands\n\n- Basic commands\n\n```shell\ndocker compose up -d # Build all containers with docker compose, and launch services in background\ndocker compose down # Desactivate containers\ndocker build -t \u003cname\u003e \u003cpath\u003e # Build a single container with a defined name and path\ndocker exec -it \u003cname\u003e bash # To navigate in the started container\ndocker stop \u003cID\u003e # Stop a container\ndocker rm \u003cID\u003e # Remove a container\ndocker ps -a # See containers\ndocker volume ls # See volumes\n```\n\n- suppression commands\n\n```shell\ndocker system prune -a # Remove containers, networks, images\ndocker volume rm $(docker volume ls -q) # Remove volumes\n```\n\n## Ressources :\n\n- https://medium.com/swlh/wordpress-deployment-with-nginx-php-fpm-and-mariadb-using-docker-compose-55f59e5c1a\n- https://www.cloudbooklet.com/install-wordpress-with-docker-compose-nginx-apache-with-ssl/\n- https://betterprogramming.pub/using-variables-in-docker-compose-265a604c2006\n- https://medium.com/edureka/docker-networking-1a7d65e89013\n- https://cloud.google.com/architecture/best-practices-for-building-containers\n- https://docs.docker.com/compose/compose-file/compose-file-v3/#volumes\n- https://www.freecodecamp.org/news/basic-sql-commands/\n- https://nginx.org/en/docs/http/configuring_https_servers.html\n- https://www.howtoforge.com/tutorial/dockerizing-wordpress-with-nginx-and-php-fpm/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleleu%2Finception","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsleleu%2Finception","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleleu%2Finception/lists"}