-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (84 loc) · 2.18 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
# This is the Docker Compose entry point for this project.
# Services listed in this file will automatically be built and started when you bring
# the project up.
version: "3.7"
services:
nginx:
image: nginx:alpine
ports:
- 8080:80
- 8443:443
depends_on:
- drupal
volumes:
- ${F1_TLS_CERT}:/etc/nginx/ssl/local.crt:ro,cached
- ${F1_TLS_KEY}:/etc/nginx/ssl/local.key:ro,cached
- ./services/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro,cached
- ./services/drupal/docroot:/var/www/html/docroot:cached
- type: volume
source: fs-data
target: /var/www/html/docroot/sites/default/files
read_only: true
drupal:
build: ./services/drupal
command:
- sh
- -c
- |-
chmod -R 0777 /var/www/html/docroot/sites/default/files
if test ! -z "${F1_XDEBUG:-}"; then
docker-php-ext-enable xdebug
echo 'xdebug.remote_enable=1' > /usr/local/etc/php/conf.d/xdebug.ini
fi
exec php-fpm
depends_on:
- mysql
environment:
SMTPHOST: mailhog:1025
XDEBUG_CONFIG: remote_host=${F1_XDEBUG_REMOTE:-127.0.0.1}
volumes:
- ./services/drupal:/var/www/html:cached
- type: volume
source: fs-data
target: /var/www/html/docroot/sites/default/files
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: web
MYSQL_USER: web
MYSQL_PASSWORD: web
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
ports:
- 13306:3306
volumes:
- type: volume
source: mysql-data
target: /var/lib/mysql
mailhog:
image: mailhog/mailhog
ports:
- 8025:8025
solr:
image: solr:5-alpine
entrypoint:
- /bin/bash
- -c
- |-
args=()
if test -e /opt/f1/solr-conf/solrconfig.xml; then
args=(-d /opt/f1/solr-conf)
fi
exec solr-create -c docker "$${args[@]}"
ports:
- 8983:8983
volumes:
- type: volume
source: solr-data
target: /opt/solr/server/solr
- ./services/solr/conf:/opt/f1/solr-conf:cached
memcached:
image: memcached:alpine
volumes:
fs-data: null
mysql-data: null
solr-data: null