-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
71 lines (66 loc) · 2.1 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
name: starterkit-test
networks:
default:
volumes:
site-public:
site-private:
services:
memcache:
restart: always
image: public.ecr.aws/unocha/memcache:1.6
hostname: starterkit-test-memcache
container_name: starterkit-test-memcache
ports:
- "11211"
networks:
- default
environment:
MEMCACHE_MAX_MEMORY: 64
mysql:
image: public.ecr.aws/unocha/mysql:10.11
hostname: starterkit-test-mysql
container_name: starterkit-test-mysql
environment:
- MYSQL_DB=starterkit
- MYSQL_USER=starterkit
- MYSQL_PASS=starterkit
networks:
- default
drupal:
# Default to `starterkit-site` for compatibility with the github tests.
# @see Makefile.
image: public.ecr.aws/unocha/${IMAGE_NAME:-starterkit-site}:${IMAGE_TAG:-local}
hostname: starterkit-test-site
container_name: starterkit-test-site
depends_on:
- memcache
- mysql
volumes:
- "./settings:/srv/www/shared/settings:ro"
# Mount volumes for the private and public files.
- "site-public:/srv/www/html/sites/default/files:rw"
- "site-private:/srv/www/html/sites/default/private:rw"
# Mount the folders needed for the tests.
- "../phpcs.xml:/srv/www/phpcs.xml:ro"
- "../phpunit.xml:/srv/www/phpunit.xml:ro"
- "../.coveralls.yml:/srv/www/.coveralls.yml:ro"
# Mount configuration and allow overriding it.
- "../config:/srv/www/config:rw"
# Mount local custom code.
- "../html/modules/custom:/srv/www/html/modules/custom:ro"
- "../html/themes/custom:/srv/www/html/themes/custom:rw"
environment:
- TERM=xterm
- ENVIRONMENT=dev
- NGINX_SERVERNAME=starterkit-test-site,localhost,127.0.0.1
- NGINX_OVERRIDE_PROTOCOL=HTTP,starterkit-test-site,localhost,127.0.0.1
- DRUSH_OPTIONS_URI=http://starterkit-test-site
- DRUPAL_DB_DATABASE=starterkit
- DRUPAL_DB_USERNAME=starterkit
- DRUPAL_DB_PASSWORD=starterkit
- DRUPAL_DB_HOST=mysql
- DRUPAL_DB_DRIVER=mysql
- PHP_ENVIRONMENT=dev
- PHP_XDEBUG=true
networks:
- default