-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
56 lines (54 loc) · 1.46 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
version: '3'
services:
app:
container_name: ${PROJECT_NAME}-app
image: webdevops/php-nginx-dev:8.1
working_dir: /app
volumes:
- ./:/app
environment:
- WEB_DOCUMENT_ROOT=/app/web
- PHP_DATE_TIMEZONE=${APP_TIMEZONE}
- PHP_DISPLAY_ERRORS=1
- PHP_MEMORY_LIMIT=256M
- PHP_MAX_EXECUTION_TIME=120
- PHP_POST_MAX_SIZE=50M
- PHP_UPLOAD_MAX_FILESIZE=50M
- PHP_DEBUGGER=xdebug
- PHP_IDE_CONFIG=serverName=_
- XDEBUG_MODE=debug
- XDEBUG_DISCOVER_CLIENT_HOST=0
- XDEBUG_IDE_KEY=PHPSTORM
- XDEBUG_MAX_NESTING_LEVEL=1500
- XDEBUG_START_WITH_REQUEST=yes
- XDEBUG_CLIENT_HOST=host.docker.internal
- XDEBUG_CLIENT_PORT=9003
- XDEBUG_OUTPUT_DIR=/app/.xdebug
ports:
- '${DOCKER_APP_PORT}:80'
- '${DOCKER_APP_SSL_PORT}:443'
networks:
- yii2-skeleton-network
depends_on:
- db
extra_hosts:
- "host.docker.internal:host-gateway"
db:
image: mysql:5.7
container_name: ${PROJECT_NAME}-db
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- "${DOCKER_MYSQL_PORT}:3306"
environment:
- TZ='${APP_TIMEZONE}'
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
networks:
- yii2-skeleton-network
volumes:
- ./.docker/data:/var/lib/mysql
- ./.docker/dumps:/var/dumps
networks:
yii2-skeleton-network:
driver: bridge