-
- Copy these files to the root of your project
-
- If you need install packages
$ docker run --rm -v $(pwd):/app composer install
-
- Permissions
$ sudo chown -R $USER:$USER ~/your-project
-
- Copy .env (if it doesn't exist)
$ cp .env.example .env
-
- Build containers
$ docker-compose up -d
- ~ See containers
$ docker ps
-
- KEY:GENERATE $ docker-compose exec app php artisan key:generate
- app: name of container
-
- CONFIG:CACHE $ docker-compose exec app php artisan config:cache
- app: name of container
-
- PHP ARTISAN MIGRATE $ docker-compose exec app php artisan migrate / php artisan migrate --seed
- app: name of container
EXEC containers
$ docker-compose up -d