{"id":26383008,"url":"https://github.com/pmarkaide/42_inception","last_synced_at":"2026-04-12T13:35:37.943Z","repository":{"id":279968962,"uuid":"935341313","full_name":"pmarkaide/42_inception","owner":"pmarkaide","description":"A containerized infrastructure with NGINX, WordPress, and MariaDB orchestrated through Docker Compose","archived":false,"fork":false,"pushed_at":"2025-03-17T12:26:12.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T13:30:18.985Z","etag":null,"topics":["42cursus","42projects","42school","containerization","docker","docker-compose","mariadb","nginx","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/pmarkaide.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-19T09:39:11.000Z","updated_at":"2025-03-17T12:30:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"48603d6b-4bb9-4a31-b7e6-be38b58900ae","html_url":"https://github.com/pmarkaide/42_inception","commit_stats":null,"previous_names":["pmarkaide/42_inception"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pmarkaide/42_inception","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarkaide%2F42_inception","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarkaide%2F42_inception/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarkaide%2F42_inception/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarkaide%2F42_inception/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmarkaide","download_url":"https://codeload.github.com/pmarkaide/42_inception/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarkaide%2F42_inception/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275399643,"owners_count":25457782,"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","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["42cursus","42projects","42school","containerization","docker","docker-compose","mariadb","nginx","wordpress"],"created_at":"2025-03-17T06:19:49.876Z","updated_at":"2025-09-16T09:58:37.066Z","avatar_url":"https://github.com/pmarkaide.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/ayogun/42-project-badges/refs/heads/main/badges/inceptione.png\" alt=\"inception badge\"\u003e\n\u003c/p\u003e\n\n\n## Overview\nInception is a System Administration project at 42 School focused on virtualization using Docker. The project requires setting up a small infrastructure composed of different services under specific rules and using Docker Compose.\n\nThe school project must be done inside a Virtual Machine, but you can use the repository code just by using docker inside your OS. That's why we use Docker!\n\n## Requirements\n\n- Docker \u0026 Docker Compose\n- Make\n\n## Services\n\nThe project sets up the following services, each in its own container:\n\n1. **NGINX**: Web server with TLS/SSL\n2. **WordPress**: CMS with php-fpm\n3. **MariaDB**: Database server\n\n## Project Structure\n\n```\ninception/\n├── Makefile\n├── srcs/\n    ├── docker-compose.yml\n    ├── .env\n    ├── requirements/\n        ├── nginx/\n            ├── Dockerfile\n            ├── conf/\n        ├── wordpress/\n            ├── Dockerfile\n            ├── conf/\n        ├── mariadb/\n            ├── Dockerfile\n            ├── conf/\n```\n\n## Setup Instructions\n\n1. Clone the repository\n   ```\n   git clone https://github.com/pmarkaide/42_inception.git\n   cd 42_inception\n   ```\n\n2. Create a `.env` file with the following variables and the desired values (NB: **NEVER** upload this file to a public repository):\n   ```\n    # General Settings\n    DOMAIN_NAME=pmarkaide.42.fr\n    \n    # MariaDB Configuration\n    MYSQL_USER=pmarkaide\n    MYSQL_PASSWORD=1234\n    MYSQL_DATABASE=mariadb\n    MYSQL_ROOT_PASSWORD=1234\n    \n    # WordPress Configuration\n    WORDPRESS_TITLE=Inception\n    WORDPRESS_ADMIN_USER=Zorg\n    WORDPRESS_ADMIN_PASSWORD=1234\n    WORDPRESS_ADMIN_EMAIL=Zorg@gmail.com\n    WORDPRESS_USER=pmarkaide\n    WORDPRESS_PASSWORD=1234\n    WORDPRESS_EMAIL=user@gmail.com\n   ```\n\n3. Build and start the containers\n   ```\n   make\n   ```\n\n4. Access WordPress at `https://localthost`\n\n## Available Commands\n\n- `make`: Build and start all containers\n- `make up`: Start all containers\n- `make down`: Stop all containers\n- `make clean`: Remove all containers and images\n- `make fclean`: Remove all containers, images, and volumes\n- `make re`: Rebuild the entire project\n\n## Network Configuration\n\n- All containers are connected to a custom Docker network\n- Container ports are not exposed except for NGINX (443)\n- NGINX uses TLS/SSL protocol\n\n## Important Notes\n\n- Database data is persisted in a Docker volume\n- WordPress files are persisted in a Docker volume\n\n## Troubleshooting\n\n- Check container logs: `docker logs container_name`\n- Access a running container: `docker exec -it container_name sh`\n- Verify network connectivity: `docker network inspect inception-network`\n\n## Resources\n\n- [Docker Documentation](https://docs.docker.com/)\n- [WordPress Installation Guide](https://wordpress.org/support/article/how-to-install-wordpress/)\n- [NGINX Configuration Guide](https://nginx.org/en/docs/)\n- [MariaDB Documentation](https://mariadb.org/documentation/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmarkaide%2F42_inception","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmarkaide%2F42_inception","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmarkaide%2F42_inception/lists"}