Symfony Dockerized Application
Setup:
-
Create the environment configuration:
cp _env .env
-
Build and start the containers:
docker compose build --no-cache
docker compose up -d
Usage:
- Calculate commissions from data file:
docker compose run php php bin/console app:calculate-commissions /data/input.txt
- Run unit tests:
docker compose run php php vendor/bin/phpunit
- Show defined areas and their countries:
docker compose run php php bin/console app:show-areas
- Add a country to an area:
docker compose run php php bin/console app:add-country GB, NON_EU