├── .gitignore ├── LICENSE.md ├── README.md └── docker-compose.yml /.gitignore: -------------------------------------------------------------------------------- 1 | drupal 2 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | # LICENSE 2 | 3 | Drupal-Fig is released under the MIT License: 4 | 5 | > Copyright (C) 2014+ [Rob Loach](http://robloach.net) 6 | > 7 | > Permission is hereby granted, free of charge, to any person obtaining 8 | > a copy of this software and associated documentation files (the 9 | > "Software"), to deal in the Software without restriction, including 10 | > without limitation the rights to use, copy, modify, merge, publish, 11 | > distribute, sublicense, and/or sell copies of the Software, and to 12 | > permit persons to whom the Software is furnished to do so, subject to 13 | > the following conditions: 14 | > 15 | > The above copyright notice and this permission notice shall be 16 | > included in all copies or substantial portions of the Software. 17 | > 18 | > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 | > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21 | > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 22 | > LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 23 | > OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 24 | > WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Deprecated 2 | 3 | Use [Docker4Drupal](https://github.com/Wodby/docker4drupal) instead. 4 | 5 | # Docker Compose: Drupal 6 | 7 | Drupal development environment using [Docker Compose](https://docs.docker.com/compose/). 8 | 9 | 10 | ## Prerequisites 11 | 12 | 1. [Docker](http://docker.com) 13 | ``` 14 | docker --version 15 | ``` 16 | 2. [Docker Compose](https://docs.docker.com/compose/) 17 | ``` 18 | docker-compose --version 19 | ``` 20 | 21 | 22 | ## Usage 23 | 24 | 1. Place Drupal in the `/drupal/` directory so that it lives at `docker-compose-drupal/drupal`. 25 | 2. Run `docker-compose up` 26 | 3. Visit `http://localhost:8000` in your browser 27 | 4. Use `drupal:drupal@database/drupal` for the database settings 28 | 5. To run a [Drush](http://drush.org) command, execute `docker-compose run web drush status` 29 | 30 | ## License 31 | 32 | Licensed under the incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT license](http://creativecommons.org/licenses/MIT/) 33 | 34 | Copyright © 2014+ [Rob Loach](http://robloach.net) 35 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | # PHP Web Server 2 | web: 3 | # Build the Drupal 8 image 4 | # https://hub.docker.com/r/_/drupal/ 5 | image: drupal:8 6 | # Environment variables 7 | environment: 8 | # Drupal settings 9 | DRUPAL_PROFILE: standard 10 | DRUPAL_SITE_NAME: Drupal 11 | DRUPAL_USER: admin 12 | DRUPAL_PASS: admin 13 | DRUPAL_DBURL: mysql://drupal:drupal@database:3306/drupal 14 | ports: 15 | # Host machine's port 8000 will map to Drupal's port 80 16 | - "8000:80" 17 | volumes: 18 | # Drupal should live in the "drupal" directory 19 | - ./drupal:/app 20 | links: 21 | - database:database 22 | command: php -S 0.0.0.0:80 -t /app 23 | working_dir: /app 24 | restart: always 25 | 26 | # MySQL Server 27 | database: 28 | image: mariadb:10 29 | environment: 30 | MYSQL_USER: drupal 31 | MYSQL_PASSWORD: drupal 32 | MYSQL_DATABASE: drupal 33 | MYSQL_ROOT_PASSWORD: '' 34 | MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' 35 | ports: 36 | - "3306:3306" 37 | restart: always 38 | --------------------------------------------------------------------------------