Skip to content

Instantly share code, notes, and snippets.

@mortenson
Created August 7, 2016 17:44
Show Gist options
  • Save mortenson/672a5615b54f64d5c3b56494b564286b to your computer and use it in GitHub Desktop.
Save mortenson/672a5615b54f64d5c3b56494b564286b to your computer and use it in GitHub Desktop.
Minimal Docker Compose file for Drupal 8
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"
@mortenson
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment