/symfony-docker-example

A little Symfony example application utilizing Docker and fig

Primary LanguagePHP

#Dockerized Symfony Project

A symfony project utilizing Docker based on PHP-FPM and nginx.

Running

You can run the Docker environment using fig:

$ fig up -d

You can run one-shot command inside the symfony service container:

$ fig run --rm symfony composer install
$ fig run --rm symfony php app/console cache:clear

Example Application

The example app implements a simple weather application using Redis.

During the startup of the fpm service some fixture data will be generated for you automatically. If you want to add your own entries you can use the console command shipped with the example application:

$fig run --rm symfony php app/console giantswarm:temperature:add cologne 30