-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-common.yml
50 lines (40 loc) · 1.26 KB
/
docker-compose-common.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
version: "2"
services:
httpd:
image: httpd:2.4-alpine
volumes:
- ./conf/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf
- ./conf/httpd/extra/httpd-vhosts.conf:/usr/local/apache2/conf/extra/httpd-vhosts.conf
- .:/project
# PHP + Apache.
drupal-php-apache-dev:
image: florenttorregrosa/drupal-php-dev:7.1-apache
volumes:
- .:/project
- ./conf/php/php.ini:/usr/local/etc/php/php.ini
- ./conf/httpd/extra/httpd-vhosts.conf:/etc/apache2/sites-enabled/httpd-vhosts.conf
drupal-php-apache:
image: florenttorregrosa/drupal-php:7.1-apache
volumes:
- .:/project
- ./conf/php/php.ini:/usr/local/etc/php/php.ini
- ./conf/httpd/extra/httpd-vhosts.conf:/etc/apache2/sites-enabled/httpd-vhosts.conf
varnish:
image: florenttorregrosa/varnish:5-alpine
environment:
VCL_CONFIG: /varnish-drupal/varnish.vcl
volumes:
- ./conf/varnish:/varnish-drupal
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- ./conf/mysql:/etc/mysql/conf.d
redis:
image: redis:4.0-alpine
volumes:
- ./conf/redis/redis.conf:/usr/local/etc/redis/redis.conf
entrypoint:
- docker-entrypoint.sh
- /usr/local/etc/redis/redis.conf