forked from maxpou/docker-symfony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (40 loc) · 928 Bytes
/
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
version: '2'
services:
db:
image: mysql:5.7
restart: always
volumes:
- './.data/db:/var/lib/mysql'
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
php:
build:
context: php7-fpm
args:
TIMEZONE: ${TIMEZONE}
volumes:
- ${SYMFONY_APP_PATH}:/app:cached
- ${SYMFONY_APP_PATH}/bin:/app/bin
- ${SYMFONY_APP_PATH}/vendor:/app/vendor
- ./logs/symfony:/app/app/logs:cached
nginx:
build: nginx
ports:
- 7080:80
volumes_from:
- php
volumes:
- ./logs/nginx/:/var/log/nginx
# elk:
# image: willdurand/elk
# ports:
# - 81:80
# volumes:
# - ./elk/logstash:/etc/logstash
# - ./elk/logstash/patterns:/opt/logstash/patterns
# volumes_from:
# - php
# - nginx