Everything below is a template for Installation Instructions. It should be updated with the full steps for setting up your project.
- Docker and Docker Compose
- [MacOS Only]: Docker Sync (run
gem install docker-sync
to install it)
Application configuration is stored in .env
file.
If you have nginx or apache installed and using 80 port on host system you can either stop them before proceeding or
reconfigure Docker to use another port by changing value of EXTERNAL_HTTP_PORT
in .env
file.
You can change application environment to dev
of prod
by changing APP_ENV
variable in .env
file.
DB name and credentials could by reconfigured by changing variables with POSTGRES
prefix in .env
file. It is
recommended to restart containers after changing these values (new database will be automatically created on containers
start).
On Linux:
docker-compose up -d
On MacOS:
docker-sync-stack start
docker-compose exec php bin/console doctrine:migrations:migrate
yarn install
Download and import [http://github.com/4xxi/resonances-database](the resonances database) in order to be able to work with the real data.
Just go to http://localhost
Add application-specific console commands and their description here.
It is recommended to add short aliases for the following frequently used container commands:
docker-compose exec php php
to run php in containerdocker-compose exec php composer
to run composerdocker-compose exec php bin/console
to run Symfony CLI commandsdocker-compose exec db psql
to run PostgreSQL commands
Fix code style by running PHP CS Fixer:
docker-compose exec php vendor/bin/php-cs-fixer fix
Run PHP Unit Tests:
docker-compose exec php bin/phpunit