-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (43 loc) · 1.32 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
version: "3.7"
services:
php-cli:
build:
context: ./docker/php-cli
working_dir: /var/www
volumes:
- ./:/var/www/
depends_on:
- mysql
environment:
XDEBUG_MODE: ${XDEBUG_MODE}
XDEBUG_SESSION: ${XDEBUG_SESSION}
XDEBUG_CONFIG: "client_host=${XDEBUG_CLIENT_HOST} client_port=${XDEBUG_CLIENT_PORT} output_dir=${XDEBUG_OUTPUT_DIR}"
PHP_IDE_CONFIG: serverName=${PHP_IDE_CONFIG_SERVER_NAME}
COMPOSER_AUTH: ${COMPOSER_AUTH}
composer:
build:
context: ./docker/composer
working_dir: /var/www
volumes:
- ./:/var/www/
depends_on:
- mysql
environment:
- COMPOSER_AUTH=${COMPOSER_AUTH}
mysql:
image: mysql:5.7.13
# позволяет подлкючиться через свой mysql
# command: --default-authentication-plugin=mysql_native_password
working_dir: /var/www
volumes:
- ./docker/storage/mysql/seeds:/docker-entrypoint-initdb.d
# - mysql-data:/var/lib/mysql/data
ports:
- ${HOST_MYSQL_PORT}:${DEFAULT_MYSQL_PORT}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_RANDOM_ROOT_PASSWORD=1
- MYSQL_ROOT_HOST=host.docker.inernal