Last active
December 19, 2018 22:49
-
-
Save erighetto/d245e4a662cc6b93d38f25d9418b7ed0 to your computer and use it in GitHub Desktop.
Docker compose file demo suitable for Drupal local development with PHP 7 and MariaDB 10
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
version: '3' | |
services: | |
web-app: | |
image: erighetto/drupal-dev:latest | |
ports: | |
- "80:80" | |
depends_on: | |
- dbserver | |
links: | |
- dbserver | |
- pma | |
- mailhog | |
volumes: | |
- "./docroot:/var/www/html" | |
environment: | |
WEB_DOCUMENT_ROOT: "/var/www/html/web" | |
PHP_IDE_CONFIG: "serverName=localhost" | |
POSTFIX_RELAYHOST: "mailhog:1025" | |
dbserver: | |
image: mariadb:latest | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_DATABASE: drupal | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_USER: drupal_usr | |
MYSQL_PASSWORD: drupal_pwd | |
mailhog: | |
image: mailhog/mailhog:latest | |
ports: | |
- "1025:1025" | |
- "8025:8025" | |
pma: | |
image: phpmyadmin/phpmyadmin:latest | |
environment: | |
PMA_HOST: dbserver | |
PMA_USER: drupal_usr | |
PMA_PASSWORD: drupal_pwd | |
PHP_UPLOAD_MAX_FILESIZE: 1G | |
PHP_MAX_INPUT_VARS: 1G | |
ports: | |
- "8080:80" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment