forked from JasonMarto/Docker-Compose-Local.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (53 loc) · 1.13 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
## Configuration Apache
web:
restart: always
build: apache
ports:
- "80:80"
volumes:
- /var/www:/var/www/local.dev
- /var/www/docker/php.ini:/etc/php5/apache2/conf.d/30-custom.ini
- /var/www/docker/sites:/etc/apache2/sites-enabled
environment:
- ALLOW_OVERRIDE=true
links:
- db:db
- maildev:maildev
- blackfire:blackfire
blackfire:
restart: always
image: blackfire/blackfire
environment:
- BLACKFIRE_SERVER_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- BLACKFIRE_SERVER_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
## Configuration Nginx + PHP
#web:
# restart: always
# image: nginx
# ports:
# - "80:80"
# volumes:
# - /var/www/docker/nginx:/etc/nginx/conf.d
# - /var/www:/var/www/local.dev
# links:
# - php:php
#php:
# build: php
# restart: always
# volumes:
# - /var/www:/var/www/local.dev
# - /var/www/docker/php.ini:/usr/local/etc/php/php.ini
# links:
# - db:db
db:
image: mysql
restart: always
volumes:
- /var/lib/boot2docker/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
maildev:
restart: always
image: djfarrelly/maildev
ports:
- "1080:80"