Skip to content

Deveosys/docker-symfony

Repository files navigation

Docker symfony

A simple Dockerized Symfony project generation tool. It comes with a Symfony boilerplate project (https://github.com/Deveosys/symfony-react-bootstrap), but the setup lets you choose to use your own existing Symfony project or even to create a new one.

Usage

$ git clone [email protected]:Deveosys/docker-symfony.git

Setup

With yarn

$ yarn
$ yarn setup

With npm

$ npm install
$ npm run setup

Dev

I recommand using symfony server for development. In app/ directory :

$ symfony server:start
$ yarn dev-server

If you want to test the docker setup on localhost :

  • Add ports binding on docker-compose.yml file under nginx donfiguration:
my_app_nginx:
    ...
    ports:
        - 8080:80
  • Then build container
$ docker-compose up --build

Production

$ docker-compose up --build -d