-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (34 loc) · 950 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (34 loc) · 950 Bytes
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
version: '2'
services:
db:
image: ${MYSQL_IMAGE}:${MYSQL_VERSION}
container_name: ${PROJECT_NAME}_db
env_file: .env
volumes:
- ./${MYSQL_SEED}:/docker-entrypoint-initdb.d/seed.sql
php-fpm:
image: ${PHP_FPM_IMAGE}:${PHP_FPM_VERSION}
container_name: ${PROJECT_NAME}_php
env_file: .env
volumes:
- ./${PHP_FPM_CONFIGURATION}:/usr/local/etc/php-fpm.d/www.conf
- ./${SOURCE_FOLDER}:/var/www/html
- xdebug:/tmp/xdebug
nginx:
image: ${NGINX_IMAGE}:${NGINX_VERSION}
container_name: ${PROJECT_NAME}_nginx
ports:
- ${LOCAL_HTTP_PORT}:80
- ${LOCAL_HTTPS_PORT}:443
volumes:
- ./${NGINX_CONFIGURATION}:/etc/nginx/conf.d/default.conf
- ./${SOURCE_FOLDER}:/var/www/html
webgrind:
image: ${WEBGRIND_IMAGE}
container_name: ${PROJECT_NAME}_webgrind
ports:
- ${WEBGRIND_HTTP_PORT}:80
volumes:
- xdebug:/tmp/xdebug
volumes:
xdebug: