This repository was archived by the owner on Apr 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
111 lines (101 loc) · 2.76 KB
/
Copy pathdocker-compose.yml
File metadata and controls
111 lines (101 loc) · 2.76 KB
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
108
109
110
111
version: '2'
services:
app:
image: debian:jessie
volumes:
- .:/var/www
tty: true
db:
image: mysql:latest
ports:
- 3306
volumes:
- ./var/docker/mysql:/var/lib/mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_ROOT_PASSWORD: ''
MYSQL_DATABASE: symfony
MYSQL_USER: symfony
MYSQL_PASSWORD: symfony
php:
build: etc/docker/php-fpm
ports:
- 9000
volumes_from:
- app
links:
- db
- blackfire
environment:
HISTFILE: /var/www/var/docker/.bash_history
XDG_CONFIG_HOME: /var/www/var/docker/.config # Required for PsySH
COMPOSER_HOME: /var/www/var/docker/composer
web:
build: etc/docker/nginx
ports:
- 80
links:
- php:php-fpm
volumes_from:
- app
volumes:
- ./var/docker/nginx:/var/log/nginx
php_debug:
build:
context: etc/docker/php-fpm
args:
USE_XDEBUG: "yes"
ports:
- 9000
- 9090
volumes_from:
- app
links:
- db
- blackfire
environment:
HISTFILE: /var/www/var/docker/.bash_history
XDEBUG_CONFIG: idekey=PHPSTORM
XDG_CONFIG_HOME: /var/www/var/docker/.config # Required for PsySH
COMPOSER_HOME: /var/www/var/docker/composer
mem_limit: 2000000000
web_debug:
build: etc/docker/nginx
ports:
- 80
links:
- php_debug:php-fpm
volumes_from:
- app
volumes:
- ./var/docker/nginx:/var/log/nginx
# Set your blackfire IDs and tokens as environment variables
# on your system 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
env_file:
- ./etc/docker/env/blackfire.env
elasticsearch:
image: elasticsearch
command: elasticsearch -Des.network.host=0.0.0.0
expose:
- 9200
kibana:
image: kibana
ports:
- 5601
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
links:
- elasticsearch
logstash:
build: etc/docker/logstash
command: logstash -f /etc/logstash/logstash.conf
links:
- elasticsearch
volumes_from:
- app
- web