/quicker

Fastest way to set up dev environment for your project with Docker

Primary LanguageDockerfileMIT LicenseMIT

Quicker: Fast Docker Dev Env

quicker

This project dedicated for PHP artisans. In the scope we combined most popular stack: NGINX + PHP7.2 + MySQL

Requirements:

  • Docker
  • Docker-compose

Configuring:

Most common configuration parameters elevated to main .env file. Just rename (copy) .env.example file to .env and set needed properties.

If you need to install additional features / modules you can specify them in the related Dockerfile instructions.

It is convenient to put docker-folder inside the project to get ability to start environment within project.

Basics

1. Building (rebuilding)

docker-compose build

2. Starting environment

Please use IDE (PHPStorm) to start environment!

Also it is possible to use command line:

docker-compose up -d

3. Stopping environment

Please use IDE (PHPStorm) to stop environment!

Also it is possible to use command line:

docker-compose down --remove-orphans

4. Attaching to running container

Please use IDE (PHPStorm) to exec bash inside the container!

Also it is possible to use command line:

docker exec -it quicker-php-fpm su -s /bin/bash www-data