Skip to content

Instantly share code, notes, and snippets.

@dmouse
Last active February 9, 2016 00:57
Show Gist options
  • Save dmouse/626483fed8fcb0b50929 to your computer and use it in GitHub Desktop.
Save dmouse/626483fed8fcb0b50929 to your computer and use it in GitHub Desktop.
Drupal 8 docker-compose
drupal8:
build: .
ports:
- "9090:80"
volumes:
- .:/var/www/html
links:
- mariaDrupal8
mariaDrupal8:
image: mariadb
environment:
MYSQL_DATABASE: drupal8
MYSQL_ROOT_PASSWORD: toor
FROM php:5.5-apache
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libbz2-dev \
curl \
git \
&& docker-php-ext-install iconv mcrypt \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install gd mbstring pdo pdo_mysql zip bz2 opcache
RUN a2enmod rewrite
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN cd /usr/local/bin && curl https://drupalconsole.com/installer -L -o drupal.phar
RUN apt-get install -y vim mysql-client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment