/docker-for-symfony

Docker stack for Symfony 3, included php7.2-fpm, RabbitMQ, Redis, Centrifugo

MIT LicenseMIT

Docker stack for Symfony 3

Installation

  1. Create a .env from the .env.dist file and adapt it according to the needs of the application

    $ cp .env.dist .env && vim .env
  2. Build/run containers in detached mode

    $ docker-compose build
    $ docker-compose up -d
  3. Update your system's hosts file

  4. Prepare the Symfony application

    1. Update Symfony parameters (app/config/parameters.yml)

    2. 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
  5. Yarn

    $ docker-compose run --rm nodejs yarn install
    $ docker-compose run --rm nodejs yarn run [command]