{"id":14968674,"url":"https://github.com/theodorosploumis/drupal-docker","last_synced_at":"2025-10-19T12:19:05.651Z","repository":{"id":151061728,"uuid":"59909962","full_name":"theodorosploumis/drupal-docker","owner":"theodorosploumis","description":"Examples and best practices of using docker and docker-compose with Drupal 8.x","archived":false,"fork":false,"pushed_at":"2016-11-26T00:34:24.000Z","size":44,"stargazers_count":7,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T15:11:24.412Z","etag":null,"topics":["docker","docker-compose","drupal","drupal8"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/theodorosploumis.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}},"created_at":"2016-05-28T18:55:05.000Z","updated_at":"2024-10-16T14:37:07.000Z","dependencies_parsed_at":"2023-04-14T07:18:21.462Z","dependency_job_id":null,"html_url":"https://github.com/theodorosploumis/drupal-docker","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"19ea8c1aac9537853255276107bba4e5b04781cb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodorosploumis%2Fdrupal-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodorosploumis%2Fdrupal-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodorosploumis%2Fdrupal-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodorosploumis%2Fdrupal-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theodorosploumis","download_url":"https://codeload.github.com/theodorosploumis/drupal-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238264672,"owners_count":19443388,"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","drupal","drupal8"],"created_at":"2024-09-24T13:40:23.333Z","updated_at":"2025-10-19T12:19:05.599Z","avatar_url":"https://github.com/theodorosploumis.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using Drupal 8.x with Docker\n\n### 1. Clone this repo\n\n```\ngit clone git@github.com:theodorosploumis/drupal-docker.git\ncd drupal-docker\n```\n\n### 2. Start the containers with docker-compose\n\n```\n// If you want to build the images before running the containers run:\n// docker-compose build\n\ndocker-compose up -d\n```\n\nNotice that containers **drupalconsole_volumed** and **drush_volumed**\nwill exit immetiately after starting as they are volumed\ncontainers. These containers are used just to mount their executables (drush and console accordingly).\n\nFor the same reason they cannot be used separately but only as linked containers (they need php though).\n\n\n### 3. Prepare Drupal site for installation\n\n```\n// You can run the prepare-install.sh script\ndocker exec drupal_8082 bash /scripts/prepare-install.sh\n\n// Or manually\ndocker exec drupal_8082 sh -c \"\\\n            cp sites/default/default.settings.php sites/default/settings.php \u0026\u0026 \\\n            chmod 777 sites/default/settings.php \u0026\u0026 \\\n            mkdir sites/default/files \u0026\u0026 \\\n            chown -R www-data:www-data sites/default \u0026\u0026 \\\n            chmod -R 777 sites/default/files \u0026\u0026 \\\n            chmod 644 sites/default/default.settings.php \u0026\u0026 \\\n            chmod 644 sites/default/default.services.yml\"\n```\n\n### 4.1 Install with Drush\n\n```\n// You can run the drush-install.sh script\ndocker exec drupal_8082 bash /scripts/drush-install.sh\n\n// Or manually\nset DRUPAL_PROFILE=standard\n\ndocker exec drupal_8082 drush \\\n    site-install -y ${DRUPAL_PROFILE} \\\n    --site-name=\"Drupal 8 with Docker - Drush\" \\\n    --db-url=mysql://drupal:drupal@mysql/drupal \\\n    --site-mail=admin@example.com \\\n    --account-name=admin \\\n    --account-pass=admin \\\n    --account-mail=admin@example.com\n```\n\nOr...\n\n### 4.2 Install with Drupal console\n\n\n```\n// Init drupal console and fix requirements\ndocker exec drupal_8082 sh -c \"\\\n            drupal init \u0026\u0026 \\\n            drupal settings:set checked 'true'\"\n\n// You can run the console-install.sh script\ndocker exec drupal_8082 bash /scripts/console-install.sh\n\n// Or manually\nset DRUPAL_PROFILE=standard\n\ndocker exec drupal_8082 drupal \\\n            site:install -y ${DRUPAL_PROFILE} \\\n            --langcode=en \\\n            --db-type=mysql \\\n            --db-prefix='' \\\n            --db-port=3306 \\\n            --db-host=mysql \\\n            --db-name=drupal \\\n            --db-user=drupal \\\n            --db-pass=drupal \\\n            --site-name=\"Drupal 8 with Docker - Console\" \\\n            --site-mail=admin@example.com \\\n            --account-name=admin \\\n            --account-pass=admin \\\n            --account-mail=admin@example.com\n```\n\n## Similar projects\n\n- [runeasgar/docker_drupal_stack](https://github.com/runeasgar/docker_drupal_stack)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheodorosploumis%2Fdrupal-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheodorosploumis%2Fdrupal-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheodorosploumis%2Fdrupal-docker/lists"}