- If not already done, install Docker Compose (v2.10+)
- Run
docker compose build --no-cache
to build fresh images - Run
docker compose up --pull always -d --wait
to set up and start the project - Open
https://localhost
in your favorite web browser and accept the auto-generated TLS certificate - Run
docker compose down --remove-orphans
to stop the Docker containers - Run
docker compose exec php bin/console secrets:set GITLAB_ACCESS_TOKEN
to set GitLab Access Token - Run
docker compose exec php bin/console secrets:set JIRA_ACCESS_TOKEN
to set Jira Access Token - Run
docker compose exec php bin/console secrets:set POSTGRES_PASSWORD
to set PostgreSQL Password - Run
docker compose exec php bin/console secrets:set RABBITMQ_PASSWORD
to set RabbitMQ Password.
In the .env
file set following variables:
GITLAB_URL
GITLAB_BACKEND_PROJECT_ID
GITLAB_FRONTEND_PROJECT_ID
JIRA_URL
JIRA_USERNAME
JIRA_PROJECT_KEY
JIRA_SPRINT_FIELD_ID
-customfield
id for Sprint section in Jira issuesJIRA_SPRINT_BOARD_ID
JIRA_MERGE_REQUEST_FIELD_ID
-customfield
id for Development section in Jira issues
Publish hotfix command:
docker compose exec -it php bin/console pm:hotfix:publish
Prepare release command:
docker compose exec -it php bin/console pm:release:prepare
RabbiMQ Management http://localhost:15672/#/queues/%2F/messages
Run PHP_CodeSniffer checks:
docker compose exec -it php bin/php_codesniffer
Run PHP-CS-Fixer checks:
docker compose exec -it php bin/php-cs-fixer
Run Rector checks:
docker compose exec -it php bin/rector
To get started with testing, you need to create a test database first and run migrations:
docker compose exec -it php bin/console -e test doctrine:database:create
docker compose exec -it php bin/console -e test doctrine:migrations:migrate
After creating the database, you can run unit tests:
docker compose exec -it php bin/phpunit
To run unit tests with coverage, you need to enable XDEBUG first:
XDEBUG_MODE=coverage docker compose up -d --wait
docker compose exec -it php bin/phpunit --coverage-clover var/log/coverage-clover.xml