Skip to content

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

License

Notifications You must be signed in to change notification settings

iliabox/docker-for-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published