{"id":18087932,"url":"https://github.com/earelin/ddi","last_synced_at":"2026-05-17T00:03:15.208Z","repository":{"id":78323176,"uuid":"150451447","full_name":"earelin/ddi","owner":"earelin","description":"Drupal docker infrastructure","archived":false,"fork":false,"pushed_at":"2018-09-30T11:15:41.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T07:55:01.265Z","etag":null,"topics":["docker","drupal","drupal-7","drupal-8"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/earelin.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":"2018-09-26T15:47:56.000Z","updated_at":"2018-09-30T11:15:42.000Z","dependencies_parsed_at":"2023-06-11T04:45:08.366Z","dependency_job_id":null,"html_url":"https://github.com/earelin/ddi","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/earelin%2Fddi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earelin%2Fddi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earelin%2Fddi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earelin%2Fddi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/earelin","download_url":"https://codeload.github.com/earelin/ddi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423496,"owners_count":20936622,"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","drupal","drupal-7","drupal-8"],"created_at":"2024-10-31T17:09:50.725Z","updated_at":"2025-10-15T08:04:47.217Z","avatar_url":"https://github.com/earelin.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drupal docker infrastructure\nDrupal infrastructure based on Docker.\n\nFolder | Description\n--- | ---\n/ca | Root CA\n/conf | Configuration files for docker-compose execution\n/conf/nginx/certs | NGINX https certificates\n/conf/nginx/vhosts | NGINX virtual hosts configuration\n/images | Docker custom images\n/scripts | Start up scripts\n/www | Webserver documents folder\n\n## Services\n\nContainer name | Exposed ports | Service provided\n--- | --- | ---\nddi-d7-cli | 2223 ssh | CLI with tools for Drupal 7\nddi-d8-cli | 2222 ssh | CLI with tools for Drupal 8\nddi-db | 3306 mysql | MySQL 5.7\nddi-memcached | | Memcached\nddi-php5 | 9002 xdebug | PHP-FPM pool. PHP version 5.6\nddi-php7 | 9001 xdebug | PHP-FPM pool. PHP version 7.1\nddi-redis | | Redis\nddi-web | 80 http, 443 https | NGINX webserver\n\n# Installing\n\nClone this repository. Containers have to be build and launch using docker-compose.\n\n```bash\n$ docker-compose build\n$ docker-compose up -d\n```\n\n## Domains and certificates\n\nNginx is configured to have a virtual host per website. Every virtual host must have an domain host name. On the NGINX virtual host configuration folder there are 2 configuration examples drupal7.conf and drupal8.conf. The system support https to avoid errors on modern browsers. NGINX is configured by default with a certificate for all *.ddi.dev domains. So that drupal8.conf host is configured for the domain name drupal8.ddi.dev. More virtual host based on the *.ddi.dev pattern can be created with the same configuration. Those domain names has to be added to the /etc/hosts configuration file on the computer running Docker.\n\n```bash\n127.0.0.1 drupal7.ddi.com\n127.0.0.1 drupal8.ddi.com\n```\n\nThe root certificate (ca/ca.pem) has to be installed on the browsers.\n\n# Usage\n\nThere are two containers configured with tools for building and managing Drupal websites:\n\nContainer name | Tools\n--- | ---\nddi-d7-cli | Composer, Drush 8\nddi-d8-cli | Composer, Drush 9\n\nThe two command line interfaces can be accessed by ssh, port 2222 for Drupal 8 and 2223 for Drupal 7.\nThere is a preconfigured user for the containers:\n\nUsername | Password\n--- | ---\ndeveloper | dev\n\nDatabase server credentials:\n\nUsername | Password\n--- | ---\nroot | dev\n\nWebsites should be created on the www folder. That folder is accesible from the CLI containers on the path /www and from the computer executing docker from the www folder on the root of this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearelin%2Fddi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fearelin%2Fddi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearelin%2Fddi/lists"}