{"id":15025323,"url":"https://github.com/ssx/docker-simple-php","last_synced_at":"2025-07-12T06:34:08.407Z","repository":{"id":141080730,"uuid":"89924772","full_name":"ssx/docker-simple-php","owner":"ssx","description":"A simple way to run your PHP application within the latest PHP-FPM version, with MariaDB, Mailhog, Redis, Beanstalk and Nginx out the box.","archived":false,"fork":false,"pushed_at":"2017-05-17T17:14:51.000Z","size":31,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T02:07:54.959Z","etag":null,"topics":["beanstalk","beanstalkd","developer-tools","development","docker","docker-compose","docker-php","docker-phpdev","mailhog","mariadb","nginx","php","php-7","php-fpm"],"latest_commit_sha":null,"homepage":null,"language":"Nginx","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ssx.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":"2017-05-01T13:06:41.000Z","updated_at":"2020-05-03T16:44:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d7cb786-784e-4f9c-be71-253bce109f71","html_url":"https://github.com/ssx/docker-simple-php","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ssx/docker-simple-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssx%2Fdocker-simple-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssx%2Fdocker-simple-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssx%2Fdocker-simple-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssx%2Fdocker-simple-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssx","download_url":"https://codeload.github.com/ssx/docker-simple-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssx%2Fdocker-simple-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264951610,"owners_count":23687974,"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":["beanstalk","beanstalkd","developer-tools","development","docker","docker-compose","docker-php","docker-phpdev","mailhog","mariadb","nginx","php","php-7","php-fpm"],"created_at":"2024-09-24T20:02:04.668Z","updated_at":"2025-07-12T06:34:08.391Z","avatar_url":"https://github.com/ssx.png","language":"Nginx","readme":"# Simple PHP for Docker\n\nThis project will drop in to an existing project and run it within Docker. It\ncomes with the latest version of PHP-FPM, Nginx, MariaDB, Beanstalk, Redis and\nMailhog for when you're using it in local development.\n\n\n### Getting Started in 1 seconds\n\nClone this repository and run `docker-compose up` then point your browser at\n`http://localhost:8080` and you should see a beautiful PHP info page.\n\n\n### Getting Started in 5 seconds\n\nClone this repository to your local machine. Copy the `docker-compose.yml`\nfile and `.docker` directory into your project directory. Then run\n`docker-compose up` and you'll be off and running.\n\n\n### Getting started in 30 seconds\n\nClone this repository, sit around for 26 seconds then do the step above.\n\n\n### MariaDB/MySQL Password\n\nThe default root password is `vagrant` and the default database name is `vagrant`,\nboth of these should be changed to suit your project. The data will be persisted\nacross containers being created/destroyed in the `.docker/volumes/mysql`\ndirectory on your local machine (or server you deploy to).\n\n\n### nginx\n\nYou can overwrite the Nginx website config by editing the file that is located at\n`.docker/config/nginx.conf` which will be picked up on starting the container.\n\n\n### PHP\n\nThe included version of PHP-FPM includes GD, Intl and BZ2 extensions as well as\nComposer being installed as well.\n\n\n### Accessible URLs\n\nYou can access the services Nginx, MariaDB, Mailhog and Beanstalkd Console at:\n\n - Nginx - http://localhost:8080\n - mailhog - http://localhost:8081\n - Beanstalkd Console - http://localhost:8082\n - MariaDB - tcp://localhost:3306 (Use Sequel Pro on a Mac)\n\n\n### Hosts\n\nWhen configuring your environment to connect to each service, you can use the\nfollowing hostnames and ports:\n\n  - `mariadb` - 3306\n  - `beanstalkd` - 11300\n  - `redis` - 6739\n  - `mailhog` - 1025\n\n\n### Accessing PHP within the stack\n\nIf you're running something like Laravel and need to run `php artisan migrate`, you can\ndo this by running:\n\n   `docker-compose exec php bash`\n\nwithin the project directory, this will give you a bash prompt that you can then `cd /www`\nand run `php artisan migrate` and it'll run the migrations.\n\n\n### .gitignore\n\nIt'll be wise to add the following into your `.gitignore` file to stop the\nMariaDB databases being added to your repo:\n\n    .docker/volumes/mysql/*\n    !.docker/volumes/mysql/.gitkeep\n\n\n### License\n\nThis project is licensed under an Apache 2.0 license which you can find within\nthis repository in the [LICENSE file](https://github.com/ssx/docker-simple-php/blob/master/LICENSE).\n\n\n### Feedback\n\nIf you have any feedback, comments or suggestions, please feel free to open an\nissue within the repository on [Github](https://github.com/ssx/docker-simple-php).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssx%2Fdocker-simple-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssx%2Fdocker-simple-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssx%2Fdocker-simple-php/lists"}