-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.develop
48 lines (43 loc) · 1.14 KB
/
docker-compose.yml.develop
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
version: '3'
# volumes
volumes:
# xprototype-mysql_data
xprototype-mysql_data:
# services
services:
# xprototype-api
xprototype-api:
image: webdevops/php-nginx-dev:7.2
container_name: xprototype-api
working_dir: /var/www/app
volumes:
- .:/var/www/app
- .docker/xprototype-api/usr/local/etc/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- .docker/xprototype-api/opt/docker/etc/nginx/vhost.common.d/10-php.conf:/opt/docker/etc/nginx/vhost.common.d/10-php.conf
environment:
- WEB_DOCUMENT_ROOT=/var/www/app/public/
- APPLICATION_PATH=/var/www/app
- PHP_MAX_EXECUTION_TIME=86400
- XDEBUG_REMOTE_HOST=${XDEBUG_REMOTE_HOST}
depends_on:
- xprototype-mysql
links:
- xprototype-mysql
ports:
- 18080:80
expose:
- 9000
# xprototype-mysql
xprototype-mysql:
image: mysql:v5.7
container_name: xprototype-mysql
volumes:
- .:/var/www/app
- xprototype-mysql_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
ports:
- 13306:3306