This repository has been archived by the owner on Dec 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yml
107 lines (100 loc) · 3.26 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/drude for more information and documentation.
# Web node
web:
hostname: web
image: blinkreaction/drupal-apache:2.2-stable
ports:
- "80"
- "443"
# Use IP based mapping when working with multiple projects. See docs (^^) for more details.
#- 192.168.10.10:80:80
#- 192.168.10.10:443:443
volumes:
# Project root folder mapping
- &project_root ".:/var/www"
links:
- cli
environment:
- VIRTUAL_HOST=hello-world.drude
# DB node
db:
hostname: db
image: blinkreaction/drupal-mysql:5.5
ports:
- "3306"
# Use IP based mapping when working with multiple projects. See docs (^^) for more details.
#- 192.168.10.10:3306:3306
# DB configuration
environment:
- MYSQL_ROOT_PASSWORD=admin123
- MYSQL_USER=drupal
- MYSQL_PASSWORD=123
- MYSQL_DATABASE=drupal
volumes:
# MySQL configuration overrides
- "./.drude/etc/mysql/my.cnf:/etc/mysql/conf.d/z_my.cnf"
# CLI node
# Used for all console commands and tools.
cli:
hostname: cli
image: blinkreaction/drupal-cli:stable
volumes:
# Project root folder mapping
- *project_root
# PHP FPM configuration overrides
- "./.drude/etc/php5/php.ini:/etc/php5/fpm/conf.d/z_php.ini"
# PHP CLI configuration overrides
- "./.drude/etc/php5/php-cli.ini:/etc/php5/cli/conf.d/z_php.ini"
# Host home directory mapping (for SSH keys and ther credentials).
# We try to map both options (b2d and Linux). The startup.sh script in cli container will decide which one to use.
- /.home:/.home-b2d # boot2docker-vagrant
- ~:/.home-linux # Linux
links:
- db
environment:
# Optional. Specify a custom SSH RSA key name if necessary. Defaults to 'id_rsa'.
- SSH_KEY_NAME=id_rsa
# Uncomment the next 2 lines to use the shared ssh-agent.
# volumes_from:
# - ssh-agent
# Memcached node
# Uncomment the service definition section below to start using memcached.
# memcached:
# hostname: memcached
# image: memcached
# environment:
# # Memcached memory limit in megabytes
# - MEMCACHED_MEMORY_LIMIT=128
# - DOMAIN_NAME=memcached.hello-world.docker
# 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"
# # 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 to start using selenium2 driver for Behat tests requiring JS support.
# browser:
# hostname: browser
# image: selenium/standalone-chrome
# ports:
# - "4444"
# environment:
# - DOMAIN_NAME=browser.hello-world.docker
# Solr node
# Uncomment the service definition section below to start using Solr.
# solr:
# hostname: solr
# image: blinkreaction/drupal-solr:3.x-stable
# # Mapping for custom Solr configuration.
# # See https://github.com/blinkreaction/docker-drupal-solr/tree/master/solr3.x/solr/conf for the default one.
# #volumes:
# # - "./.drude/etc/solr:/var/lib/solr/conf"
# environment:
# - DOMAIN_NAME=solr.hello-world.docker