{"id":15172983,"url":"https://github.com/b9sk/docker-drupal-dev","last_synced_at":"2026-02-24T21:33:27.222Z","repository":{"id":101615881,"uuid":"144912997","full_name":"b9sk/docker-drupal-dev","owner":"b9sk","description":"Development environment for Drupal 7 with Xdebug, Drush, Composer.","archived":false,"fork":false,"pushed_at":"2020-02-04T09:03:32.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-22T06:45:30.091Z","etag":null,"topics":["docker","drupal7","drush","xdebug"],"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/b9sk.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,"zenodo":null}},"created_at":"2018-08-15T23:27:40.000Z","updated_at":"2020-02-04T09:03:34.000Z","dependencies_parsed_at":"2023-06-06T14:15:07.039Z","dependency_job_id":null,"html_url":"https://github.com/b9sk/docker-drupal-dev","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/b9sk/docker-drupal-dev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b9sk%2Fdocker-drupal-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b9sk%2Fdocker-drupal-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b9sk%2Fdocker-drupal-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b9sk%2Fdocker-drupal-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b9sk","download_url":"https://codeload.github.com/b9sk/docker-drupal-dev/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b9sk%2Fdocker-drupal-dev/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29801021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T21:02:39.706Z","status":"ssl_error","status_checked_at":"2026-02-24T21:02:21.834Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","drupal7","drush","xdebug"],"created_at":"2024-09-27T10:24:59.445Z","updated_at":"2026-02-24T21:33:27.217Z","avatar_url":"https://github.com/b9sk.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"**The repo is under development and does not work properly!**\n\n@todo: rewrite the file\n# docker-drupal7-dev\nDevelopment environment for Drupal 7 with Xdebug, Drush and Composer.\nThe environment fits only if you use one website per a host.\n\n## How to\n\n### Before you start\nCheck out `mysql.env` file. Probably you want to change default values.\n\n### Run the services\n* Clone the repo\n* Get inside `docker-drupal-dev/`\n* Create `app/` dir and place there the lastest release [of Drupal 7](https://www.drupal.org/project/drupal)\n* Setup Xdedug (see below)\n* Go to parent folder and run `docker-compose up -d`\n* Open in a browser url `http:://docker_host_machine_ip:30080`\n* Install Drupal manually OR by use the script: `~/scripts/install-drupal.sh` (run this from `drupal-dev` container)\n* (Optional) Convert your DB to utf8mb4: [Database 4 byte UTF-8 support](https://www.drupal.org/project/utf8mb4_convert)\n\n### Setup Xdedug\n* Find `xdebug.remote_host=` and replace an IP by `xdebug.remote_host=your_docker_host_ip`\n* Set up DBGp Proxy:\n* + IDE Key: `mySecretKey666`\n* + Host: `your_docker_host_ip`\n* + Port: `39000`\n\n### Get SSH access\n* Run `ssh -i ssh/php-container -p 2222 root@your_docker_host_ip` from the Docker host project folder  \n**Warning: This approach may have security issues. Run with caution.** If you do not work on a localhost it would be better to create another keys.\n\n### Xdebug Port Forward (if your code editor does not support DBGp Proxy)\n* `ssh -vR 9000:localhost:9000 -i ssh/php-container -p 30022 root@your_docker_host_ip`\n\n\n## Notes\n* mysql db, user and password: `drupal`\n* mysql host: `mysql`\n* run `docker exec -it drupal-dev bash` from docker host machine to dive into `drupal-dev` container\n* [Database 4 byte UTF-8 support](https://www.drupal.org/project/utf8mb4_convert)\n\n\n## Additional scripts \n**All the scripts must run from `drupal-dev` container.**\n* `./drush-backup/make-backup.sh` - make a backup tar through Drush\n* `./mysql-dump/`\n* + `backup.sh`|`restore.sh` - backup|restore mysql dump (file.sql) \n* `./scripts/install-drupal.sh` - fast install Drupal 7 through Drush (you have to download drupal7 code in /var/www/html first)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb9sk%2Fdocker-drupal-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb9sk%2Fdocker-drupal-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb9sk%2Fdocker-drupal-dev/lists"}