-
Notifications
You must be signed in to change notification settings - Fork 7
Configuration
You can edit the environment variables that will be used inside your containers by editing the .env
. Exactly like what you are used to do with a Symfony application.
The nginx/conf.d/symfony.conf.sample
file is built from the Symfony recommendations and contains a default configuration. It will be copied to nginx/conf.d/custom.conf
, and used as the default configuration when you start using the environment. You can edit the copy as you want.
The php/conf.d/custom.ini
is also built from the Symfony recommendations. It improves the global performances of the application in a development context. Send us a pull request if you want to modify something inside.
One of the main features of this project is the ability to manage the environment from the project directory itself. To achieve that, you have to use a Makefile. An example is distributed with the source under the name Makefile.sample
.
And to manage the Docker environment from the project directory:
- If you already have a Makefile in your project, copy the content of the
docker/Makefile.sample
file at the top of it. - If you do not already have a Makefile, the
docker/Makefile.sample
file will be installed in 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