-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
98 lines (89 loc) · 2.38 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
version: '3'
services:
mysql:
image: mysql:5.6
restart: always
env_file:
- '.env'
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_USER: ${MYSQL_ROOT_USER}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
ports:
- '3306:3306'
volumes:
- ./var/mysql:/var/lib/mysql
healthcheck:
test: "/usr/bin/mysql --user=root --password=password --execute \"SHOW DATABASES;\""
interval: 2s
timeout: 20s
retries: 3
nginx:
image: nginx:latest
ports:
- '8080:80'
volumes:
- './:/app'
- './docker/nginx/default.conf:/etc/nginx/conf.d/default.conf'
php:
build: './docker/php-fpm'
volumes:
- './:/app'
- './etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini'
redis:
image: redis
ports:
- "6379:6379"
volumes:
- ./var/redis:/data
rabbitmq:
image: "rabbitmq:3-management"
env_file:
- '.env'
environment:
RABBITMQ_ERLANG_COOKIE: ${RABBITMQ_ERLANG_COOKIE}
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS}
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_DEFAULT_VHOST}
ports:
- '15672:15672'
- '5672:5672'
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.0
user: root
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "TAKE_FILE_OWNERSHIP=1"
volumes:
- ./var/elasticsearch/data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
interval: 30s
timeout: 30s
retries: 3
kibana:
image: docker.elastic.co/kibana/kibana:6.8.0
ports:
- "5601:5601"
environment:
ELASTICSEARCH_HOSTS: "http://elasticsearch:9200"
depends_on:
- elasticsearch
healthcheck:
test: ["CMD", "curl", "-s", "-f", "http://localhost:5601/"]
interval: 30s
timeout: 30s
retries: 3
blackfire:
image: blackfire/blackfire
env_file:
- '.env'
environment:
BLACKFIRE_CLIENT_ID: ${BLACKFIRE_CLIENT_ID}
BLACKFIRE_CLIENT_TOKEN: ${BLACKFIRE_CLIENT_TOKEN}
BLACKFIRE_SERVER_ID: ${BLACKFIRE_SERVER_ID}
BLACKFIRE_SERVER_TOKEN: ${BLACKFIRE_SERVER_TOKEN}