Created
August 7, 2016 17:44
-
-
Save mortenson/672a5615b54f64d5c3b56494b564286b to your computer and use it in GitHub Desktop.
Minimal Docker Compose file for Drupal 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
web: | |
build: . | |
ports: | |
- "8000:80" | |
volumes: | |
- ./modules:/var/www/html/modules | |
- ./files:/var/www/html/sites/default/files | |
links: | |
- database | |
database: | |
image: mysql:5.7.14 | |
environment: | |
MYSQL_USER: drupal | |
MYSQL_PASSWORD: drupal | |
MYSQL_DATABASE: drupal | |
MYSQL_ROOT_PASSWORD: '' | |
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' | |
ports: | |
- "3306:3306" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://gist.github.com/mortenson/e54511943654ad8313de4894240db28d for the Dockerfile