Skip to content

Allow to choose from multiple stacks

SHORT DESCRIPTION (required)

When using Php Docker Stack we would have an option to specify what stack we want to use.

USER HISTORY (required)

Currently Php Docker Stack provide us with a default stack that on purpose is not a try to fit all needs, instead is minimal stack intended to be extended trough the docker folder that is installed in the app , plus using all the environment variables to change is defaults.

Php Docker Stack doesn't want to be tied up to any specific Php Framework, but at same time would be nice to have a default stack for-each of them or even default stacks to each e-commerce or CMS platform, like Prestashop, Magento, etc..

To achieve this we must provide the possibility to specify the stack to use from an environment variable and from the server CLI interface.

This Php Docker Stacks would live in other vendor packages that should contain the src/docker/* folder and the .env-example file with all needed environment variables that would be copied to project in order to properly setup the stack.

EXPECTED BEHAVIOUR (required)

In the .env file we would have an environment variable to choose what stack to load.

example:
PHP_DOCKER_STACK=laravel5.5

From the CLI interface we could have an option to specify the stack to be used.

example:
server --php-docker-stack laravel5.5 up http

RELATED TO (optional)

N/A

DEPENDS ON (optional)

N/A

LINKS (optional)

N/A