Extracting docker related code:
- To extract scripts with complex operations (xDebug, prod environment, auto-install)
- To create more convenient versions for dev/prod
- To create version with preconfigured xDebug with PHPStorm
- To use same docker infrastructure for fresh/demo Symfony project
- To setup project in parallel (for lecturers to check homework faster)
docker pull nfqakademija/docker:nginx-latest
docker pull nfqakademija/docker:php-latest
docker pull nfqakademija/docker:mysql-latest
node.js for Frontend development:
docker pull nfqakademija/docker:frontend-latest
See docker-compose.yml
and docker-compose-tools.yml
as examples
Build and start containers:
docker-compose up -d
Test backend: Open in the browser: http://127.0.0.1:8000/test.php
Test frontend:
docker-compose -f docker-compose-tools.yml run frontend.symfony yarn --version
Remove running containers:
docker-compose -f docker-compose.yml kill
docker-compose -f docker-compose-tools.yml kill
Remove locally cached files:
sudo rm -Rf .docker/*