Created
March 26, 2018 22:39
-
-
Save eriweb/47b4d733826cb027ddc8f670dd33b716 to your computer and use it in GitHub Desktop.
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: '3' | |
services: | |
craft: | |
build: ./ | |
ports: | |
- "8080:80" | |
volumes: | |
- "./craft:/var/www/html" | |
depends_on: | |
- mysql | |
environment: | |
ENVIRONMENT: 'dev' | |
SECURITY_KEY: 'YouShouldChangeThis' | |
DB_DRIVER: 'mysql' | |
DB_SERVER: 'mysql' | |
DB_USER: 'root' | |
DB_PASSWORD: '' | |
DB_DATABASE: 'craft' | |
DB_SCHEMA: 'public' | |
DB_TABLE_PREFIX: '' | |
DB_PORT: 3306 | |
mysql: | |
image: mysql:5.5 | |
environment: | |
MYSQL_ALLOW_EMPTY_PASSWORD: 'true' | |
MYSQL_DATABASE: 'craft' |
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
FROM php:7.2-apache | |
RUN DEBIAN_FRONTEND=noninteractive apt-get update \ | |
&& DEBIAN_FRONTEND=noninteractive apt-get install -y libzip-dev libpng-dev \ | |
&& /usr/local/bin/docker-php-ext-install gd \ | |
&& /usr/local/bin/docker-php-ext-install pdo \ | |
&& /usr/local/bin/docker-php-ext-install pdo_mysql \ | |
&& /usr/local/bin/docker-php-ext-install zip \ | |
&& /usr/sbin/a2enmod rewrite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment