-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yaml
66 lines (60 loc) · 1.79 KB
/
docker-compose.yaml
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
version: '3'
services:
app:
build:
context: ./docker/app
args:
- timezone=${TZ}
volumes:
- ./symfony:/srv:rw,cached
- app_log:/srv/var/log
env_file:
- .env
environment:
XDEBUG_CONFIG: remote_host=${XDEBUG_REMOTE_HOST}
PHP_IDE_CONFIG: serverName=${NGINX_HOST}
nginx:
build:
context: ./docker/nginx
args:
- nginx_host=${NGINX_HOST}
ports:
- "80:80"
- "443:443"
depends_on:
- app
volumes:
- ./symfony/public:/srv/public:ro
- ./docker/nginx/default.template:/etc/nginx/conf.d/default.template
- nginx_log:/var/log/nginx
env_file:
- .env
command: /bin/bash -c "envsubst '$$NGINX_HOST'
< /etc/nginx/conf.d/default.template
> /etc/nginx/conf.d/default.conf
&& exec nginx -g 'daemon off;'"
redis:
build:
context: ./docker/redis
elk:
build:
context: ./docker/elk
ports:
- "5601:5601"
- "9200:9200"
- "5044:5044"
environment:
- ELASTICSEARCH_START
- LOGSTASH_START
- KIBANA_START
- TZ
filebeat:
build:
context: ./docker/elk
dockerfile: Dockerfile.filebeat
volumes:
- app_log:/var/log/app
- nginx_log:/var/log/nginx
volumes:
app_log:
nginx_log: