forked from drush-ops/drush
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (47 loc) · 1.53 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
version: "3.1"
services:
# More info at https://github.com/wodby/mariadb
mariadb:
image: wodby/mariadb:${MARIADB_TAG-10.3}
container_name: ${PROJECT_NAME-unish}_mariadb
stop_grace_period: 30s
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- mariadb-datavolume:/var/lib/mysql
ports:
- '3006:3306'
# More info at https://github.com/wodby/php
# We don't want their drupal-php image as that ships with a Drush inside.
drupal:
image: wodby/php:${PHP_TAG-7.2-dev}
container_name: ${PROJECT_NAME-unish}_drupal
environment:
PHP_SENDMAIL_PATH: /dev/null
UNISH_DB_URL: ${UNISH_DB_URL-mysql://root:password@mariadb}
COLUMNS: ${COLUMNS-80} # Set 80 columns for docker exec -it.
## Read instructions at https://wodby.com/docs/stacks/drupal/local/#debugging-cli-requests
PHP_XDEBUG:
PHP_XDEBUG_DEFAULT_ENABLE:
PHP_IDE_CONFIG:
PHP_XDEBUG_REMOTE_HOST:
volumes:
- ./:/var/www/html:${VOLUME_FLAGS-cached}
- ./.docker/zz-php.ini:/usr/local/etc/php/conf.d/zz-php.ini
# More info at https://github.com/wodby/postgres
postgres:
image: wodby/postgres:${POSTGRES_TAG-10.5}
container_name: unish_postgres
stop_grace_period: 30s
environment:
POSTGRES_PASSWORD: unish
POSTGRES_DB: unish_dev
POSTGRES_USER: unish
volumes:
- postgres-datavolume:/var/lib/postgresql/data
ports:
- '5532:5432'
#data volumes https://docs.docker.com/storage/volumes/
volumes:
mariadb-datavolume:
postgres-datavolume: