-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (49 loc) · 1.22 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
application:
image: tianon/true
volumes:
- ./src:/var/www/html
- ~/.composer:/root/.composer
frontend:
image: pierzakp/magento2-nginx-dev:1.11
ports:
- "80:80"
- "443:443"
links:
- backend
- rdbms
volumes:
- ./docker-logs/nginx:/var/log/nginx
volumes_from:
- application
environment:
- APP_MAGE_MODE=developer
- VIRTUAL_HOST=magento-2.dev
backend:
image: pierzakp/magento2-php-dev:7.0
expose:
- "9000"
links:
- rdbms
volumes:
- ./docker-configs/php/php.ini:/usr/local/etc/php/php.ini
- ./docker-configs/php/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker-configs/php/blackfire.ini:/usr/local/etc/php/conf.d/zz-blackfire.ini
- ./docker-logs/php:/var/log/php
volumes_from:
- application
environment:
- APP_MAGE_MODE=developer
- PHP_IDE_CONFIG=serverName=magento-2.dev
- PHP_XDEBUG_ENABLED=1
- XDEBUG_CONFIG=remote_host=10.254.254.254
rdbms:
image: mariadb:10.1.22
ports:
- "3306:3306"
volumes:
- /Volumes/Secondary/Workspace/dbstorage/magento2:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=magento2
- MYSQL_DATABASE=magento2
- MYSQL_USER=magento2
- MYSQL_PASSWORD=magento2