-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (85 loc) · 2.99 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: "2"
services:
mariadb:
image: wodby/mariadb:10.1-2.0.0
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
volumes:
- ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
php:
image: wodby/drupal-php:7.0-2.0.0
environment:
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
PRESSFLOW_SETTINGS: '{"databases":{"default":{"default":{"database":"drupal","username":"drupal","password":"drupal","host":"mariadb","port":"3306","driver":"mysql","prefix":"","collation":"utf8mb4_general_ci"}}}}'
PANTHEON_ENVIRONMENT: local
DRUPAL_HASH_SALT: mmm...salty
# PHP_XDEBUG: 1
# PHP_XDEBUG_DEFAULT_ENABLE: 1
# PHP_XDEBUG_REMOTE_CONNECT_BACK: 0 # This is needed to respect remote.host setting bellow
# PHP_XDEBUG_REMOTE_HOST: "10.254.254.254" # You will also need to 'sudo ifconfig lo0 alias 10.254.254.254'
volumes:
- ./:/var/www/html
# - d4d-unison-sync:/var/www/html:rw # Replace volume to this to use docker-sync for macOS users
nginx:
image: wodby/drupal-nginx:8-1.10-2.0.0
restart: unless-stopped
depends_on:
- php
environment:
NGINX_BACKEND_HOST: php
NGINX_SERVER_ROOT: /var/www/html/web
ports:
- "8000:80"
volumes:
- ./:/var/www/html
testdb:
image: wodby/mariadb:10.1-2.0.0
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
volumes:
- ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
testphp:
image: wodby/drupal-php:7.0-2.0.0
environment:
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
PRESSFLOW_SETTINGS: '{"databases":{"default":{"default":{"database":"drupal","username":"drupal","password":"drupal","host":"testdb","port":"3306","driver":"mysql","prefix":"","collation":"utf8mb4_general_ci"}}}}'
PANTHEON_ENVIRONMENT: local
DRUPAL_HASH_SALT: mmm...salty
BEHAT_PARAMS: '{"extensions" : {"Behat\\MinkExtension" : {"base_url" : "http://testnginx/", "selenium2": { "wd_host": "http://phantomjs:4444/wd/hub"}}, "Drupal\\DrupalExtension" : {"drush" : {"root" : "./web"}}}}'
volumes:
- ./:/var/www/html
# - d4d-unison-sync:/var/www/html:rw # Replace volume to this to use docker-sync for macOS users
testnginx:
image: wodby/drupal-nginx:8-1.10-2.0.0
restart: unless-stopped
depends_on:
- testphp
environment:
NGINX_BACKEND_HOST: testphp
NGINX_SERVER_ROOT: /var/www/html/web
ports:
- "8100:80"
volumes:
- ./:/var/www/html
mailhog:
image: mailhog/mailhog
phantomjs:
image: jribar/node-phantomjs
volumes_from:
- testphp
links:
- testnginx
ports:
- 4444
entrypoint: phantomjs
command: "--webdriver=4444"
# Docker-sync for macOS users
#volumes:
# d4d-unison-sync:
# external: true