-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
48 lines (46 loc) · 1.46 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
##
# Operational services to run the application in your local Outrigger environment.
#
# Environment variables can be overridden in the .env file.
##
version: '2.1'
services:
# Database service
db:
container_name: ${PROJECT_ROOT}_${DOCKER_ENV}_db
image: outrigger/mariadb:10.1
environment:
MYSQL_DATABASE: drupal_octane
volumes:
- /data/${PROJECT_ROOT}/${DOCKER_ENV}/mysql:/var/lib/mysql
network_mode: "bridge"
labels:
com.dnsdock.name: db
com.dnsdock.image: ${PROJECT_ROOT}
outrigger.project: ${PROJECT_ROOT}
# Main Application service.
web:
container_name: ${PROJECT_ROOT}_${DOCKER_ENV}_web
image: outrigger/apache-php:php71
network_mode: "bridge"
environment:
DOCROOT: /var/www/build/html
PHP_MAX_EXECUTION_TIME: 60
PHP_XDEBUG: "true"
# Include the DOCKER_ENV so Drupal settings can be aware of environment.
DOCKER_ENV: ${DOCKER_ENV}
# Tell Drupal which environment.
DRUPAL_ENV: "local"
links:
- db
volumes:
# Main code volume mount.
# NFS used by default. The docker-composer.override will override this
# with a unison sync volume for local.
- .:/var/www
# /var/www/src is used for consistency with the build container.
- /data/${PROJECT_ROOT}/${DOCKER_ENV}/files:/var/www/src/sites/default/files
labels:
com.dnsdock.name: www
com.dnsdock.image: ${PROJECT_ROOT}
outrigger.project: ${PROJECT_ROOT}