-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yml
124 lines (109 loc) · 2.83 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3'
services:
web:
build:
context: ./conf/nginx
image: maxlab/nginx
restart: always
env_file: .env
depends_on:
- php7xdebug
- mysql
- pgsql
- redis
- mailcatcher
volumes:
- ./conf/nginx/conf:/etc/nginx
- ./conf/nginx/conf/sites-available/vhost/symfony.env.tpl:/tmp/nginx/symfony.env.tpl
- ./workspace:/data
links:
- php7xdebug:fpm7
- mailcatcher
ports:
- 80:80
- 443:443
command: /bin/bash -c "envsubst '$$SYMFONY_ENV' < /tmp/nginx/symfony.env.tpl > /etc/nginx/sites-available/vhost/symfony && nginx"
mysql:
image: mysql:5.7
container_name: mysql
env_file: .env
ports:
- 3307:3306
volumes:
- ./conf/mysql/conf:/etc/mysql/conf.d
- ./data/mysql:/var/lib/mysql
restart: always
pgsql:
image: postgres:9.6
env_file: .env
ports:
- 5433:5432
volumes:
- ./data/pgsql:/var/lib/postgresql/data
restart: always
redis:
image: redis:3.0
restart: always
volumes:
- ./data/redis:/data
ports:
- 6379:6379
mailcatcher:
image: schickling/mailcatcher
restart: always
php7console:
env_file: .env
build:
args:
- TZ=$${TZ}
context: ./conf/php7console
container_name: php7console
image: maxlab/php7console
dns:
- $${DNS1}
- $${DNS2}
restart: always
volumes:
- ./workspace:/data
tty: true
php7xdebug:
env_file: .env
build:
args:
- TZ=$${TZ}
- HOSTIP=$${HOSTIP}
context: ./conf/php7xdebug
image: maxlab/php7xdebug
dns:
- $${DNS1}
- $${DNS2}
restart: always
volumes:
- ./workspace:/data
links:
- pgsql
- mysql
- mailcatcher
- redis
- elasticsearch
dnsmasq:
env_file: .env
build:
args:
- DNS1=$${DNS1}
- DNS2=$${DNS2}
context: ./conf/dnsmasq
ports:
- "53:53"
- "53:53/udp"
cap_add:
- NET_ADMIN
restart: always
elasticsearch:
image: sebp/elk:551
volumes:
- ./data/elasticsearch:/var/lib/elasticsearch
ports:
- "9200:9200"
- "5601:5601"
- "5044:5044"