Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

madman/sy2docker

Repository files navigation

Symfony Docker Edition

The idea is to get up and running Symfony app, while keeping your machine clean. You only need to have few packages installed to achieve this: git, docker and docker-compose.

Mac and Windows users also require either docker-machine or docker for Mac.

Up and running

Make sure you have Docker and Docker Compose properly set up in your environment.

Clone the repository

$ git clone git@github.com:madman/sy2docker.git

or

composer create-project --no-install --no-scripts madman/sy2docker

Manage files and folders access attributes

$ bin/init

Build images

$ docker-compose build

Run containers

$ docker-compose up -d

Install symfony dependencies

$ docker-compose run composer install 

Open http://localhost:8080/ in your browser to enjoy the results.

What's included?

  • nginx - 1.10.1
  • fpm - php-fpm (php version is 5.6.30)
  • mysql - 5.5
  • composer - service to work with composer
  • console - symfony console

What differs from Symfony Standard Edition?

  • removed SwiftmailerBundle package
  • removed incenteev/composer-parameter-handler. All things are configured automatically.

Licensing

Symfony Docker Edition is licensed under MIT or BSD licenses. See LICENSE for the full license text.

Enjoy!