Based on https://github.com/Sylius/Docker
This Docker Compose development environment includes
- PHP 7.0
- MariaDB
- Composer
- NodeJS (v6)
First, clone Sylius repository https://github.com/Sylius/Sylius
You need to install Docker and Docker Compose.
mkdir docker
cd docker
docker-compose up
NodeJS container start, run: npm install && npm run gulp and down.
PHP container run: bin/console server:start 0.0.0.0:8000 command
If your database is not installed, enter in PHP container:
docker-compose exec php bash
And run Sylius install command from PHP container:
php bin/console sylius:install
Now you access to front and back-office.
Execute commands in nodeJS container, like install npm packages.
docker run --rm -it -v $(pwd):/var/www/sylius -w /var/www/sylius node:6 sh
Run Gulp watch for sass CSS
docker-compose run --rm node ./node_modules/.bin/gulp shop-watch