forked from docksal/docksal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (39 loc) · 1.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
# Docker and Docker Compose based environment for Drupal.
# See https://github.com/docksal/docksal for more information and documentation.
version: "2"
services:
# Web service
web:
hostname: web
image: blinkreaction/drupal-apache:2.2-stable
volumes:
# Project root folder mapping
- &project_root ".:/var/www"
depends_on:
- cli
environment:
- VIRTUAL_HOST=hello-world.docksal
# DB service
db:
hostname: db
image: blinkreaction/drupal-mysql:5.5
environment:
- MYSQL_ROOT_PASSWORD=admin123
- MYSQL_USER=drupal
- MYSQL_PASSWORD=123
- MYSQL_DATABASE=drupal
# CLI service
# Used for all console commands and tools.
cli:
hostname: cli
image: blinkreaction/drupal-cli:stable
volumes:
# Project root folder mapping
- *project_root
# Host home directory mapping (for SSH keys and other settings and 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
- ~:/.home-linux # Linux
# Mount shared ssh-agent socket
volumes_from:
- container:ssh-agent