{"id":25176013,"url":"https://github.com/48d31kh413k/inception","last_synced_at":"2026-04-12T07:34:04.787Z","repository":{"id":276535210,"uuid":"929556876","full_name":"48d31kh413k/inception","owner":"48d31kh413k","description":"A containerized WordPress infrastructure project using Docker and Docker Compose. The project implements a multi-container setup with NGINX (TLS), WordPress+PHP-FPM, and MariaDB, each running in isolated containers. Features include persistent volume management, secure networking configuration, and environment-based configuration management.","archived":false,"fork":false,"pushed_at":"2025-02-08T20:39:55.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T21:26:47.364Z","etag":null,"topics":["devops","docker","tls-certificate","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/48d31kh413k.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":"2025-02-08T20:25:48.000Z","updated_at":"2025-02-08T20:48:32.000Z","dependencies_parsed_at":"2025-02-08T21:37:50.592Z","dependency_job_id":null,"html_url":"https://github.com/48d31kh413k/inception","commit_stats":null,"previous_names":["48d31kh413k/inception"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/48d31kh413k%2Finception","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/48d31kh413k%2Finception/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/48d31kh413k%2Finception/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/48d31kh413k%2Finception/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/48d31kh413k","download_url":"https://codeload.github.com/48d31kh413k/inception/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247106256,"owners_count":20884567,"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":["devops","docker","tls-certificate","wordpress"],"created_at":"2025-02-09T13:15:44.613Z","updated_at":"2025-10-05T01:35:03.338Z","avatar_url":"https://github.com/48d31kh413k.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inception\n\nA Docker-based WordPress infrastructure project that sets up a complete development environment using multiple containers and services.\n\n## 🎯 Project Overview\n\nThis project involves setting up a small infrastructure composed of different services using Docker containers. The entire setup is designed to run in a virtual machine, with each service running in its own dedicated container.\n\n## 🔧 Technical Requirements\n\n- Virtual Machine environment\n- Docker and Docker Compose\n- Make\n\n## 📦 Services\n\nThe infrastructure includes the following services, each running in its own container:\n\n1. **NGINX**\n   - Configured with TLSv1.2 or TLSv1.3 only\n   - Acts as the only entry point (port 443)\n\n2. **WordPress + php-fpm**\n   - WordPress installation with php-fpm configuration\n   - Runs without nginx in its own container\n\n3. **MariaDB**\n   - Database service\n   - Runs in a dedicated container\n\n## 💾 Volumes\n\nThe project uses two Docker volumes:\n\n1. WordPress database volume\n2. WordPress website files volume\n\nVolumes are mounted in `/home/login/data` on the host machine.\n\n## 🌐 Networking\n\n- Custom Docker network for inter-container communication\n- Domain configuration: `login.42.fr` pointing to local IP\n- No use of `network: host`, `--link`, or `links:`\n\n## 🔐 Security Features\n\n- TLS encryption (v1.2 or v1.3)\n- Environment variables for sensitive data\n- No hardcoded passwords in Dockerfiles\n- WordPress admin username restrictions (cannot contain admin/Admin or administrator/Administrator)\n\n\n\n## 🚀 Getting Started\n\n1. Clone the repository\n2. Create a `.env` file in the `srcs` directory with required environment variables\n3. Run `make` to build and start the infrastructure\n\n### Environment Variables\n\nCreate a `srcs/.env` file with the following variables:\n\n```\nDOMAIN_NAME=your_login.42.fr\nCERTS_=./path_to_certificates\nMYSQL_ROOT_PASSWORD=your_root_password\nMYSQL_USER=your_username\nMYSQL_PASSWORD=your_password\n```\n\n## 📝 Additional Notes\n\n- Containers are configured to restart automatically in case of crashes\n- No infinite loops or hacky patches (tail -f, bash, sleep infinity, etc.)\n- Latest tag is prohibited in Docker images\n- Images must be built from either Alpine or Debian (penultimate stable version)\n\n## 🎉 Bonus Features \n\n- Redis cache for WordPress\n- FTP server container\n- Static website (non-PHP)\n- Adminer\n- Additional useful service (must be justified)\n\n## ⚠️ Important Reminders\n\n- Don't commit sensitive data or credentials\n- Keep .env file in .gitignore\n- Ensure all services are properly configured before deployment\n- Follow Docker best practices for daemon processes and PID 1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F48d31kh413k%2Finception","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F48d31kh413k%2Finception","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F48d31kh413k%2Finception/lists"}