Last active
February 9, 2016 00:57
-
-
Save dmouse/626483fed8fcb0b50929 to your computer and use it in GitHub Desktop.
Drupal 8 docker-compose
This file contains 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
drupal8: | |
build: . | |
ports: | |
- "9090:80" | |
volumes: | |
- .:/var/www/html | |
links: | |
- mariaDrupal8 | |
mariaDrupal8: | |
image: mariadb | |
environment: | |
MYSQL_DATABASE: drupal8 | |
MYSQL_ROOT_PASSWORD: toor |
This file contains 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
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