This repository has been archived by the owner on Apr 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
77 lines (67 loc) · 1.72 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
version: '2'
services:
data:
image: alpine
command: /bin/true
volumes:
- .:/app
frontend:
build: etc/docker/dev/frontend
command: /bin/true
volumes_from:
- data
db: &db
extends:
file: etc/docker/common/db/docker-compose.yml
service: db
volumes:
- ./var/docker/dev/mysql:/var/lib/mysql
volumes_from:
- data
app: &app
build: etc/docker/dev/app
environment: &app_environment
SYMFONY__DATABASE_HOST: db
links:
- db
- blackfire
volumes_from:
- data
web: &web
build: etc/docker/dev/web
ports:
- 80
links:
- app
volumes_from:
- data
app_debug: &app_debug
<<: *app
build:
context: etc/docker/dev/app
args:
USE_XDEBUG: "yes"
web_debug:
<<: *web
links:
- app_debug:app
test:
<<: *app_debug
command: /bin/true
environment:
<<: *app_environment
SYMFONY_ENV: test
links:
- db:db_test
- blackfire
db_test:
<<: *db
volumes:
- ./var/docker/test/mysql:/var/lib/mysql
# Set your blackfire IDs and tokens as environment variables
# in docker-compose.override.yml before building the containers.
# You can find your IDs and tokens in your account profile
# https://blackfire.io/account or on the blackfire docker
# integration page: https://blackfire.io/docs/integrations/docker
blackfire:
image: blackfire/blackfire