-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
130 lines (118 loc) · 2.05 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
125
126
127
128
129
130
version: '3'
services:
workspace:
build: ./workspace
environment:
- TZ=${TZ}
volumes:
- ../:/var/www
networks:
- frontend
- backend
nginx:
build: ./nginx
volumes:
- ./nginx/sites:/etc/nginx/sites-available
- ../:/var/www
environment:
- TZ=${TZ}
ports:
- 80:80
- 443:443
depends_on:
- php56-fpm
- php71-fpm
- php72-fpm
- php73-fpm
networks:
- frontend
php56-fpm:
build: ./php/fpm/5.6
volumes:
- ../:/var/www
environment:
- TZ=${TZ}
depends_on:
- mysql
networks:
- frontend
- backend
php71-fpm:
build: ./php/fpm/7.1
volumes:
- ../:/var/www
environment:
- TZ=${TZ}
# ports:
# - 9000:9000
depends_on:
- mysql
networks:
- frontend
- backend
php72-fpm:
build: ./php/fpm/7.2
volumes:
- ../:/var/www
environment:
- TZ=${TZ}
# ports:
# - 9000:9000
depends_on:
- mysql
networks:
- frontend
- backend
php73-fpm:
build: ./php/fpm/7.3
volumes:
- ../:/var/www
environment:
- TZ=${TZ}
# ports:
# - 9000:9000
depends_on:
- mysql
networks:
- frontend
- backend
mysql:
image: mysql:5.7
volumes:
- db-mysql-data:/var/lib/mysql
- ./mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
environment:
- TZ=${TZ}
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=dev_db
- MYSQL_USER=devman
- MYSQL_PASSWORD=secret
ports:
- 127.0.0.1:3306:3306
networks:
- backend
phpmyadmin:
build: ./phpmyadmin
environment:
- TZ=${TZ}
- PMA_ARBITRARY=1
ports:
- 127.0.0.1:8080:80
networks:
- frontend
- backend
mailhog:
image: mailhog/mailhog
environment:
- TZ=${TZ}
ports:
- 1025:1025
- 8025:8025
networks:
- frontend
- backend
networks:
frontend:
backend:
volumes:
db-mysql-data: