Note about working user variables: you should export two variables at host machine โ DUID
(docker user id), variable with your current user ID and DGID
(docker group id), variable with your current group.
These variables are uses for launch php-process in a container.
For example:
export DUID=$(id -u) && export DGID=$(id -g)
- Build project:
docker-compose build
- Launch project:
docker-compose up -d
- Install packages:
docker-compose exec app composer install
- Run tests:
docker-compose exec app vendor/bin/phpunit
After start docker-compose you will see in your browser the next one:
This is a page with information about server environment variables, request and response data.