cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 DevBox

Magento 2 DevBox

HI guys,

 

I've been playing around with the DevBox on Mac, it may just be me using Docker for the first time, but I'm finding I have to restart the container to get even basic changes to reflect (even so much as dropping a "Hello World" test file in the root of the installation 404'ing).

 

Am I missing something? From what I can see, all caching is turned off and the installation is in developer mode. In addition, I can make the same changes on MAMP and they are reflected instantly.

 

version: '2'
services:
web:
container_name: magento2devbox_web_e413d5727dbf8da844dd6b88641f0082
restart: always
image: magento/magento2devbox-web:latest
volumes:
- "./Project:/home/magento2/magento2"
- "~/.composer:/home/magento2/.composer"
- "~/.ssh:/home/magento2/.ssh"
- "./shared/logs/apache2:/var/log/apache2"
- "./shared/logs/php-fpm:/var/log/php-fpm"
- "./shared/.magento-cloud:/home/magento2/.magento-cloud"
environment:
- USE_SHARED_WEBROOT=0
- SHARED_CODE_PATH="/home/magento2/magento2"
- USE_RABBITMQ=0
- USE_REDIS_FULL_PAGE_CACHE=0
- USE_REDIS_CACHE=0
- USE_REDIS_SESSIONS=0
- USE_VARNISH=0
- USE_ELASTICSEARCH=0
- MAGENTO_PUBLIC_KEY=******************************
- MAGENTO_PRIVATE_KEY=******************************
- MAGENTO_USE_SOURCES_IN_HOST=0
- CREATE_SYMLINK_EE=0
- HOST_CE_PATH=./Project
- EE_DIRNAME=magento2ee
- MAGENTO_DOWNLOAD_SOURCES_COMPOSER=1
- MAGENTO_EDITION=ce
- MAGENTO_VERSION=2.1.4
- MAGENTO_SAMPLE_DATA_INSTALL=1
- MAGENTO_DOWNLOAD_SOURCES_CLOUD=0
- MCLOUD_USERNAME=
- MCLOUD_PASSWORD=
- MCLOUD_GENERATE_NEW_TOKEN=
- MCLOUD_PROJECT=
- MCLOUD_BRANCH=
- MAGENTO_CRON_RUN=0
- MAGENTO_DI_COMPILE=0
- MAGENTO_GRUNT_COMPILE=0
- MAGENTO_STATIC_CONTENTS_DEPLOY=0
- MAGENTO_BACKEND_PATH=admin
- MAGENTO_ADMIN_USER=magento2
- MAGENTO_ADMIN_PASSWORD=magento2
ports:
- "80"
- "22"
db:
container_name: magento2devbox_db_e413d5727dbf8da844dd6b88641f0082
restart: always
image: mysql:5.6
ports:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=magento2
volumes:
- "./shared/db:/var/lib/mysql"
- "./shared/var/logs/mysql:/var/log/mysql"