-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
107 lines (100 loc) · 2.85 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Docker and Docker Compose based environment for Drupal.
# See https://github.com/blinkreaction/docker-fig-drupal for more information and documentation.
# Web node
web:
hostname: web
image: blinkreaction/drupal-apache-php:2.2-5.5
environment:
- VIRTUAL_HOST=dkan.docker
#- VIRTUAL_PROTO=https
ports:
- "80"
- "443"
volumes:
# PHP configuration overrides
- "php.ini:/etc/php5/fpm/conf.d/z_php.ini"
# Project root folder mapping
- &project_root "./:/var/www/"
links:
- db
# Uncomment this and the memcached service definition below to start using memcached.
- memcached
- solr
# DB node
db:
hostname: db
image: blinkreaction/mysql:5.5
ports:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=admin123
- MYSQL_USER=drupal
- MYSQL_PASSWORD=123
- MYSQL_DATABASE=drupal
volumes:
# MySQL configuration overrides
#- "./.docker/etc/mysql/my.cnf:/etc/mysql/conf.d/z_my.cnf"
# Permanent DB data storage
- /var/lib/mysql
# CLI node
# Used for all console commands and tools.
cli:
hostname: cli
image: devinci/drupal-cli
environment:
- XDEBUG_CONFIG=idekey=cli
- PHP_IDE_CONFIG=serverName=dkan.docker
volumes:
# PHP configuration overrides
#- "./.docker/etc/php5/php-cli.ini:/etc/php5/cli/conf.d/z_php.ini"
# Project root folder mapping
- *project_root
# Host SSH keys mapping. Uncomment one of the lines below based on your setup.
- /.ssh:/.ssh # boot2docker-vagrant
#- ~/.ssh:/.ssh # Linux
links:
- db
- web
# Uncomment this and the browser service definition below to start using selenium2.
- browser
- memcached
- solr
# Memcached node
# Uncomment the service definition section below and the link in the web service above to start using memcached.
memcached:
hostname: memcached
image: memcached
environment:
# Memcached memory limit in megabytes
- MEMCACHED_MEMORY_LIMIT=128
# ngrok node
# Uncomment the service definition section below to start using ngrok for sharing your local web server with the world.
# share:
# hostname: share
# image: fnichol/ngrok
# ports:
# - "4040:4040"
# # Use IP based mapping when working with multiple projects. See docs (^^) for more details.
# #- 192.168.10.10:4040:4040
# links:
# - web:http
# selenium2 node
# Uncomment the service definition section below and the link in the web service above to start using selenium2 driver for Behat tests requiring JS support.
browser:
hostname: browser
image: selenium/standalone-chrome-debug:2.49.1
# This helps keep selenium-chrome from crashing because it uses shared memory.
volumes:
- /dev/shm:/dev/shm
links:
- web
ports:
# - "4444:4444"
- "5900"
solr:
hostname: solr
image: devinci/drupal-solr:3.x
#ports:
# - "8983:8983"
#volumes:
#- "./.docker/etc/solr/3.x:/var/lib/solr/conf"