# - copy all .env.example files to each .env file recursively (non-overwriting)
# - generate laravel app key if not exists
# - build docker images and launch containers
./init.sh
then open http://localhost:8888
in your browser.
npm Hot Module Replacement
enabled from the start in the app container server.
# build in parallel
docker-compose build --parallel
# build and launch in one liner
docker-compose up -d --build
# launch recreating all docker containers
docker-compose up -d --force-recreate
# launch recreating specific a docker container
# (--no-deps option avoid other depending containers launching)
docker-compose up -d --force-recreate [--no-deps] <service_name>
# app container (built from alpine based image)
docker exec -it lvdc_app ash
# other containers (build from debian based image)
docker exec -it lvdc_mysql bash
docker exec -it lvdc_redis bash
use --rm
option if you want to remove the container after its work is done.
docker-compose run [--rm] composer
docker-compose run [--rm] composer update
docker-compose run [--rm] composer dumpautoload
# or
docker-compose run [--rm] composer dump-autoload
docker-compose run [--rm] yarn install
docker-compose run [--rm] composer yarn upgrade --latest
docker-compose run [--rm] composer yarn add [-D] <package_name>