forked from sulu/sulu-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (69 loc) · 1.76 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
version: '3'
services:
nginx:
build:
context: docker/nginx
args:
PROJECT_DOMAIN: ${PROJECT_DOMAIN}
ports:
- ${PORT_NGINX}:80
networks:
default:
aliases:
- ${PROJECT_DOMAIN}
volumes:
- ${PROJECT_PATH}:/var/www/project:cached
- ./var/logs/nginx/:/var/log/nginx
php:
build:
context: docker/php
args:
USER_ID: ${USER_ID}
volumes:
- ${PROJECT_PATH}:/var/www/project:cached
- ./var/logs/symfony:/var/www/project/var/logs:cached
- ./var/data/php/workspace:/var/www/workspace:cached
- ${COMPOSER_PATH}/cache:/var/www/.composer/cache:cached
- ${SSH_KEY_PATH}/id_rsa:/var/www/.ssh/id_rsa
- ${SSH_KEY_PATH}/id_rsa.pub:/var/www/.ssh/id_rsa.pub
- ${SSH_KEY_PATH}/known_hosts:/var/www/.ssh/known_hosts
environment:
HISTFILE: /var/www/workspace/.bash_history
PROMPT_COMMAND: history -a
env_file: .env
mysql:
build:
context: docker/mysql
args:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
ports:
- ${PORT_MYSQL}:3306
volumes:
- ./var/data/mysql:/var/lib/mysql:cached
env_file: .env
blackfire:
image: blackfire/blackfire
env_file: .env
elasticsearch:
build:
context: docker/elk/elasticsearch
volumes:
- ./var/data/elasticsearch:/usr/share/elasticsearch/data:cached
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
logstash:
build:
context: docker/elk/logstash
depends_on:
- elasticsearch
volumes:
- ./var/logs:/var/log/other:cached
kibana:
build:
context: docker/elk/kibana
ports:
- ${PORT_KIBANA}:5601
depends_on:
- elasticsearch
- logstash