Container does not includ the database container. Database should be on local(host) environmen.
- Docker
- Docker Compose
- Unison https://github.com/hnsl/unox
- Put
docker-compose.yml
example into magento root directory - Execute the following command
docker-compose up
- Configure local.xml/env.php file to use
docker.for.mac.localhost
database host - Run the unison filesync
# Magento 1
unison . socket://localhost:5000/ -ignore "Path media/catalog/product/cache" -ignore 'Regex .*\.idea|git|sass-cache.*' -ignore "Path .DS_Store" -ignore "Path ._.DS_Store" -auto -batch -repeat watch
# Magento 2
unison . socket://localhost:5000/ -ignore "Path pub/media/catalog/product/cache" -ignore "Path .DS_Store" -ignore "Path ._.DS_Store" -ignore 'Regex .*\.idea|git|sass-cache.*' -auto -batch -repeat watch