-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.yml
46 lines (42 loc) · 1 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
version: "2"
services:
httpd:
image: httpd:2.4-alpine
ports:
- 80:80
volumes_from:
- fpm
links:
- fpm
volumes:
- ./docker/apache/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro
- ./docker/apache/vhosts:/usr/local/apache2/conf/vhosts:ro
fpm:
image: stanislasp/laravel-5-php-7.2:1.0
expose:
- 9000
ports:
- 9000:9000
volumes:
- ./docker/php/conf/php.ini:/usr/local/etc/php/php.ini:ro
- ./docker/php/conf/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini:ro
- ./docker/php/conf/crontab:/etc/cron.d/app:ro
volumes:
- .:/var/www/html:rw
links:
- mysql
mysql:
image: mysql:5.7
ports:
- 3306:3306
volumes:
- ./docker/mysql/conf:/etc/mysql/conf.d/custom.cnf:ro
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: frenchzipcode
MYSQL_USER: frenchzipcode
MYSQL_PASSWORD: frenchzipcode
volumes:
db_data:
driver: local