This repository was archived by the owner on Oct 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Installation
Alexandre Jardin edited this page Nov 10, 2018
·
11 revisions
- Docker and Docker Compose must be installed before going further.
- A Symfony project must already exist, and Composer must be available.
This Docker environment is available as a Composer package, and thus, can be retrieved like a PHP dependency. And thanks to Symfony Flex and the repository recipe, the installation process is almost fully automated.
$ composer config extra.symfony.allow-contrib true
$ composer require --dev ajardin/docker-symfony
🚀 That's all! ✨
You have now a docker
directory inside your project!
Here are several commands that you can now use from your project directory.
$ make
----------------------------------------------------------------------------
Environment
----------------------------------------------------------------------------
backup Backup the "postgresql" volume
build Build the environment
cache Flush cache stored in Redis
composer Install Composer dependencies from the "php" container
logs Follow logs generated by all containers
logs-full Follow logs generated by all containers from the containers creation
nginx Open a terminal in the "nginx" container
php Open a terminal in the "php" container
ps List all containers managed by the environment
restore Restore the "postgresql" volume
start Start the environment
stats Print real-time statistics about containers ressources usage
stop Stop the environment
yarn Install Composer dependencies from the "php" container