make install
make # or
make help
> make stop # Stop all docker images
> make start # Start all docker images
> make restart # Restart all docker images
> make migration # Create migration with changes
> make migrate # Apply new migration
> make composer # Composer install in docker container
> make docker-disable # Disable docker for php container
> make docker-enable # Enable docker for php container
...
If you disable docker for php container, you should create a .env.local file with
MAILER_DSN=smtp://localhost:1025
DATABASE_URL="postgresql://symfony:password@localhost:5432/postgres?serverVersion=15&charset=utf8"
If make is not enabled or if it doesn't work :
# make install :
> docker compose build
> docker compose run php composer install -o
> docker compose run php php bin/console lexik:jwt:generate-keypair --overwrite --no-interaction
> docker compose up -d --remove-orphans
> docker compose exec php php bin/console doctrine:database:create --if-not-exists
> docker compose exec php php bin/console doctrine:migrations:migrate -n
# make stop :
> docker compose down
# make start :
> docker compose up -d --remove-orphans
# make restart :
> docker compose down
> docker compose up -d --remove-orphans
# make sh :
> docker compose exec php sh
# make migration :
> docker compose exec php php bin/console make:migration -n
# make migrate :
> docker compose exec php php bin/console doctrine:migrations:migrate -n
# make composer :
> docker compose exec php install -o
# make data :
> docker compose exec php php bin/console hautelook:fixture:load --no-interaction
# make cache :
> docker compose exec php php bin/console cache:clear
# make bddReset :
> docker compose down database --volumes
> docker compose up -d database
> docker compose exec php php bin/console doctrine:database:create --if-not-exists
> docker compose exec php php bin/console doctrine:migrations:migrate -n