Concrete5 docker compose config for development
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
# Usage: | |
# $ git clone git@github.com:concrete5/concrete5.git | |
# $ cd concrete5 | |
# $ cp /path/to/this/docker-compose.yml . | |
# $ docker compose up | |
concrete5: | |
image: php:7.2-alpine | |
command: | | |
sh -c "\ | |
apk add --update freetype-dev libmcrypt-dev libjpeg-turbo-dev libpng-dev; \ | |
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; \ | |
docker-php-ext-install pdo_mysql; \ | |
docker-php-ext-install zip; \ | |
cd /tmp/concrete5; \ | |
php -r \"copy('https://getcomposer.org/installer', 'composer-setup.php');\"; \ | |
php composer-setup.php --filename=composer; \ | |
./composer install --no-dev; \ | |
php -S 0.0.0.0:8080" | |
ports: | |
- 8080:8080 | |
volumes: | |
- .:/tmp/concrete5 | |
links: | |
- mysql | |
mysql: | |
image: mysql:5.7 | |
environment: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: concrete5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment