{"id":15674816,"url":"https://github.com/jaylinski/docker-dev-phpstorm","last_synced_at":"2025-05-06T23:27:02.702Z","repository":{"id":45926144,"uuid":"45982771","full_name":"jaylinski/docker-dev-phpstorm","owner":"jaylinski","description":"Development environment for PhpStorm based on Docker.","archived":false,"fork":false,"pushed_at":"2024-02-23T19:18:48.000Z","size":21,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T04:02:54.417Z","etag":null,"topics":["docker","docker-compose","phpstorm"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/jaylinski.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":"2015-11-11T13:16:55.000Z","updated_at":"2025-03-30T01:49:44.000Z","dependencies_parsed_at":"2024-10-23T12:09:31.730Z","dependency_job_id":null,"html_url":"https://github.com/jaylinski/docker-dev-phpstorm","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaylinski%2Fdocker-dev-phpstorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaylinski%2Fdocker-dev-phpstorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaylinski%2Fdocker-dev-phpstorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaylinski%2Fdocker-dev-phpstorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaylinski","download_url":"https://codeload.github.com/jaylinski/docker-dev-phpstorm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252784921,"owners_count":21803785,"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":["docker","docker-compose","phpstorm"],"created_at":"2024-10-03T15:51:12.114Z","updated_at":"2025-05-06T23:27:02.684Z","avatar_url":"https://github.com/jaylinski.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhpStorm development with [Docker](https://github.com/docker/docker-ce)\n\nDevelopment environment for PhpStorm based on Docker, managed with [Compose](https://github.com/docker/compose).\n\n## Installation\n\n### Requirements\n\n* Docker \u003e= 1.8.3\n* Docker Compose\n\nSee [Install Docker Compose](https://docs.docker.com/compose/install/) for more information.\n\n### Setup\n\nClone this repository into `~/PhpstormProjects/docker-dev-phpstorm`.\n\n#### Configuration\n\nYou may need to configure your project and volume paths in `docker-compose.yml`.\n\nThe project default path is set to `~/PhpstormProjects`.\nThe data default path is set to `~/PhpstormProjects/docker-dev-phpstorm/data`.\n\n##### nginx\n\nCreate the file `nginx-projects.conf` (or any other `*.conf` file) in your `nginx` folder and insert your server\nconfigurations.   \nThe file(s) will be copied into the nginx `conf.d` directory.\n\n##### node\n\nIn order for nginx to run, a default `server.js` in the `node` directory is executed on startup.   \nYou can change the node entry point in the `node/Dockerfile`.\n\n#### Build\n\nRun `docker-compose build` to fetch and build all containers.\n\nAfter your containers are built, run `docker-compose up -d` and start coding!\n\n## Containers\n\n| Container   | Name    | Port | Version |\n| ----------- |---------|------|---------|\n| nginx       | nginx   | 8080 | 1.*     |\n| node        | node    | 9020 | 20.*    |\n| mariadb     | mariadb | 9010 | 10.11.* |\n| php (fpm)   | php81   | 9081 | 8.1.*   |\n|             | php82   | 9082 | 8.2.*   |\n|             | php83   | 9083 | 8.3.*   |\n\n## Data persistance\n\nMariaDB data is stored in the `data` directory.\n\n## File and folder permissions\n\nSadly, permissions are a bit of pain right now. Most containers write data with their own `www-data` users. Data written\nby this user can not be accessed by your host user. You will have to `chown` files created by your containers.\n\nIt's the same the other way around, containers will not be able to write data in your project directory, unless you\ngrant them access. This can be done by granting read and write access on your projects folder to everyone. Please keep\nin mind that this is a security risk!\n\nPlease let me know if there is an easy solution for this. Current solutions are too hacky.\n\n## Help\n\n### FAQ\n* [How to setup Piwik with PHP 5.6 and MySQL 5.6](https://github.com/jaylinski/docker-dev-phpstorm/wiki/FAQ#how-to-setup-piwik-with-php-56-and-mysql-56)\n* [How can I see error logs from PHP?](https://github.com/jaylinski/docker-dev-phpstorm/wiki/FAQ#how-can-i-see-error-logs-from-php)\n\n### Useful commands\n\n#### Start\n`$ docker-compose up -d`\n\n#### Stop\n`$ docker-compose stop`\n\n#### List containers\n`$ docker-compose ps`\n\n#### Open container bash\n`$ docker-compose exec nginx /bin/bash`\n\n#### Remove all docker containers and images\n\u003e Do only execute if you know what you are doing!\n\n`$ docker rm $(docker ps -a -q)`   \n`$ docker rmi -f $(docker images -q)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaylinski%2Fdocker-dev-phpstorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaylinski%2Fdocker-dev-phpstorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaylinski%2Fdocker-dev-phpstorm/lists"}