{"id":17835093,"url":"https://github.com/namesmt/docker-boilerplate","last_synced_at":"2025-04-02T12:44:29.162Z","repository":{"id":135522842,"uuid":"392288108","full_name":"NamesMT/docker-boilerplate","owner":"NamesMT","description":"Personal copy of webdevops/php-docker-boilerplate","archived":false,"fork":false,"pushed_at":"2024-06-02T17:35:09.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T03:47:22.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NamesMT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-08-03T11:08:29.000Z","updated_at":"2021-08-03T19:19:58.000Z","dependencies_parsed_at":"2024-10-27T20:41:25.129Z","dependency_job_id":"62acec83-2723-4e89-bb5a-78a6e53a09ff","html_url":"https://github.com/NamesMT/docker-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Fdocker-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Fdocker-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Fdocker-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Fdocker-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NamesMT","download_url":"https://codeload.github.com/NamesMT/docker-boilerplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819750,"owners_count":20839094,"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":[],"created_at":"2024-10-27T20:16:54.335Z","updated_at":"2025-04-02T12:44:29.138Z","avatar_url":"https://github.com/NamesMT.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quick Start:\n+ **Note**: This boilerplate is set in development enviroment\n+ Clone\n+ Start the container: `docker-compose up -d`\n\n##### Enjoy!, services:\n+ app\n  + Alpine \u003e Nginx + PHP FPM 7.4 (with xdebug) \n    - 8000:80, 8443:443, 10022:22\n    - app.docker.test:80\n\n\n+ mysql\n  + MariaDB 10 (focal) \n    - 13306:3306\n    - mysql:/var/lib/mysql\n\n\n+ redis\n  + Redis\n    - redis:/data\n\n\n+ mail\n  + Mailhog\n    - 8025:8025\n    - mail.docker.test:8025 (it links the port 8025 to 80 | access without 8025)\n\n\n+ phpmyadmin\n  + PhpMyAdmin\n    - phpmyadmin:/sessions\n    - pma.docker.test:80\n\n\n#### Additional, virtual host setup:\nRun this docker image: https://hub.docker.com/r/nginxproxy/nginx-proxy  \nAdd these to your hosts file:\n```\n127.0.0.1      docker.test\n127.0.0.1      pma.docker.test\n127.0.0.1      app.docker.test\n127.0.0.1      mail.docker.test\n```\nRestart your container: `docker-compose stop \u0026\u0026 docker-compose up -d`\n\n\n#### To use XDebug, remember to set pathMappings, example for VSCode:\n```\n{\n    \"version\": \"0.2.0\",\n    \"configurations\": [{\n            \"name\": \"Listen for XDebug\",\n            \"type\": \"php\",\n            \"request\": \"launch\",\n            \"port\": 9003,\n            \"pathMappings\": {\n                \"/app\": \"${workspaceRoot}/app\",\n            },\n        },\n    ]\n}\n```\n`PHPStorm`: set path mappings here: `File -\u003e Settings -\u003eLanguages and Frameworks -\u003e PHP -\u003e Servers`.\n# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n\n![PHP Docker Boilerplate](https://static.webdevops.io/php-docker-boilerplate.svg)\n\n[![latest v5.2.0-beta3](https://img.shields.io/badge/latest-v5.2.0_beta3-green.svg?style=flat)](https://github.com/webdevops/php-docker-boilerplate/releases/tag/5.2.0-beta3)\n![License MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)\n\nThis is an easy customizable docker boilerplate for any PHP-based projects like _Symfony Framework_, _CakePHP_, _Yii_ and many other frameworks or applications.\n\nSupports:\n\n- Nginx or Apache HTTPd\n- PHP-FPM (with Xdebug)\n- MySQL, MariaDB or PerconaDB\n- PostgreSQL\n- Solr (disabled, without configuration)\n- Elasticsearch (disabled, without configuration)\n- Redis (disabled)\n- Memcached (disabled)\n- Mailcatcher (if no mail sandbox is used, eg. [Vagrant Development VM](https://github.com/mblaschke/vagrant-development))\n- FTP server (vsftpd)\n- PhpMyAdmin\n- maybe more later...\n\nThis Docker boilerplate is based on the [Docker best practices](https://docs.docker.com/articles/dockerfile_best-practices/) and doesn't use too much magic. Configuration of each docker container is available in the `docker/` directory - feel free to customize.\n\nThis boilerplate can also be used for any other web project. Just customize the makefile for your needs.\n\n*Warning: There may be issues when using it in production.*\n\nIf you have any success stories please contact me.\n\nYou can use my [Vagrant Development VM](https://github.com/mblaschke/vagrant-development) for this Docker boilerplate, e.g. for easily creating new boilerplate installations with short shell command: `ct docker:create directory`.\n\n## Table of contents\n\n- [First steps / Installation and requirements](/documentation/INSTALL.md)\n- [Updating docker boilerplate](/documentation/UPDATE.md)\n- [Customizing](/documentation/CUSTOMIZE.md)\n- [Services (Webserver, MySQL... Ports, Users, Passwords)](/documentation/SERVICES.md)\n- [Docker Quickstart](/documentation/DOCKER-QUICKSTART.md)\n- [Run your project](/documentation/DOCKER-STARTUP.md)\n- [Container detail info](/documentation/DOCKER-INFO.md)\n- [Troubleshooting](/documentation/TROUBLESHOOTING.md)\n- [Changelog](/CHANGELOG.md)\n\n## Credits\n\nThis Docker layout is based on https://github.com/denderello/symfony-docker-example/\n\nThanks for your support, ideas and issues.\n- [Ingo Pfennigstorf](https://github.com/ipf)\n- [Florian Tatzel](https://github.com/PanadeEdu)\n- [Josef Florian Glatz](https://github.com/jousch)\n- [Ingo Müller](https://github.com/IngoMueller)\n- [Benjamin Rau](https://twitter.com/benjamin_rau)\n- [Philipp Kitzberger](https://github.com/Kitzberger)\n- [Stephan Ferraro](https://github.com/ferraro)\n- [Cedric Ziel](https://github.com/cedricziel)\n- [Elmar Hinz](https://github.com/elmar-hinz)\n\n\nThanks to [cron IT GmbH](http://www.cron.eu/) for inspiration.\n\nDid I forget anyone? Send me a tweet or create pull request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamesmt%2Fdocker-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamesmt%2Fdocker-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamesmt%2Fdocker-boilerplate/lists"}