- Copy
.env.example
to.env
and update - Remove
/src
from.gitignore
- Delete or update
DB_HOST
,DB_DATABASE
,DB_USERNAME
,DB_PASSWORD
insrc/.env
$ cp .env.example .env
$ docker-compose up -d
$ docker-compose run --rm composer create-project --prefer-dist laravel/laravel ./
$ docker-compose run --rm composer install
$ docker-compose run --rm npm install
$ docker-compose exec -T php-fpm php artisan key:generate
$ docker-compose exec php-fpm sh
- Add swarm configuration: docker-stack.yml
- Remove supervisor: The Twelve Factors
- Cron Service
- Migration Service
- Queue worker
- Separate (named) volumes
- Separate .env files
- Add Traefik labels
- Add multistage dockerfile
- Makefile / Ansible