-
Create a
.env
from the.env.dist
file and adapt it according to the needs of the application$ cp .env.dist .env && vim .env
-
Build/run containers in detached mode
$ docker-compose build $ docker-compose up -d
-
Update your system's hosts file
-
Prepare the Symfony application
-
Update Symfony parameters (app/config/parameters.yml)
-
Composer install & create database
$ docker-compose exec php bash $ composer install $ sf doctrine:database:create $ sf doctrine:schema:update --force $ sf server:start 0.0.0.0:8000
-
-
Yarn
$ docker-compose run --rm nodejs yarn install $ docker-compose run --rm nodejs yarn run [command]
iliabox/docker-for-symfony
Docker stack for Symfony 3, included php7.2-fpm, RabbitMQ, Redis, Centrifugo
MIT