Created
October 9, 2017 21:24
-
-
Save larowlan/6d058667b591976a8e53de50f22eb484 to your computer and use it in GitHub Desktop.
docker-compose.yml
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: "2" | |
services: | |
mariadb: | |
image: wodby/drupal-mariadb:1.0.0 | |
environment: | |
MYSQL_RANDOM_ROOT_PASSWORD: 1 | |
MYSQL_DATABASE: local | |
MYSQL_USER: drupal | |
MYSQL_PASSWORD: drupal | |
command: --innodb_log_file_size=64MB --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci # The simple way to override the mariadb config. | |
volumes: | |
- ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here. | |
php: | |
image: wodby/drupal-php:7.0-1.0.0 | |
environment: | |
PHP_SITE_NAME: dev | |
PHP_HOST_NAME: localhost:8000 | |
PHP_DOCROOT: drupal # Relative path inside the /var/www/html/ directory. | |
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025 | |
PHP_XDEBUG_ENABLED: 1 | |
BROWSERTEST_OUTPUT_FILE: "/var/www/html/test-output/index.html" | |
PHP_IDE_CONFIG: "serverName=localhost" | |
PHP_XDEBUG_AUTOSTART: 1 | |
BROWSERTEST_OUTPUT_DIRECTORY: "/var/www/html/test-output" | |
SIMPLETEST_BASE_URL: "http://nginx" | |
SIMPLETEST_DB: "mysql://drupal:drupal@mariadb/local" | |
PHP_XDEBUG_REMOTE_CONNECT_BACK: 0 | |
volumes: | |
- ./:/var/www/html | |
nginx: | |
image: wodby/drupal-nginx:1.10 | |
environment: | |
NGINX_SERVER_NAME: localhost | |
NGINX_UPSTREAM_NAME: php | |
NGINX_DOCROOT: drupal # Relative path inside the /var/www/html/ directory. | |
DRUPAL_VERSION: 8 # Allowed: 7, 8. | |
volumes_from: | |
- php | |
ports: | |
- "8000:80" | |
mailhog: | |
image: mailhog/mailhog | |
ports: | |
- "8002:8025" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment