Docker based local development environment. Php and Npm users are synced with the current user, so we will have all the rights to modify and access the content generated by using container commands.
For the start:
- Apache 2.4
- PHP 7.4 fpm with:
- xDebug preconfigured with profiler preconfigured
- remote debuggind preconfigured
- error reporting enabled
- MySQL 5.7 with adminer
- Mailhog preconfigured to catch outgoing emails
- SPX preconfigured (PHP Simple Profiler - https://github.com/NoiseByNorthwest/php-spx)
- Npm
- Docker (https://docs.docker.com/get-docker/)
- Docker compose (https://docs.docker.com/compose/install/)
git clone https://github.com/Sieg/development.git myProjectName
cd myProjectName
make setup
make up
Access the website through the http://localhost
- phpinfo shown on index page
- example with database connection
- example with email sending and catching it with mailhog
- run the composer install on php container first.
Adminer is available via http://localhost:8080
- Server: mysql
- Credentials: root/root
Mailhog is available via http://localhost:8025/
SPX preconfigured and UI accessible via http://localhost?SPX_KEY=dev&SPX_UI_URI=/
Call commands directly on the container:
docker-compose run php php -v
Login to the container, and run the commands from inside:
docker-compose exec php bash
php -v
Alternatively:
make php
php -v
docker-compose run node npm install bootstrap
- https://github.com/OXID-eSales/oxvm_base
- https://github.com/OXID-eSales/oxvm_eshop
- https://github.com/OXID-eSales/docker-eshop-sdk
You like to contribute? 🙌 AWESOME 🙌 Throw a pull request, with the description why you/we need it and instructions how to test it out :)