• Stars
    star
    118
  • Rank 299,923 (Top 6 %)
  • Language
    PHP
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Docker Environment for Symfony. PHP-FPM, NGINX SSL Proxy, MySQL, LEMP

Symfony 4 Docker

Minimal Runtime Environment Build Status symfony 4 docker Scrutinizer Code Quality

Table of content

  1. See it working! Deployed with Travis and Kubernetes
  2. Environment architecture
  3. Quick start
  4. Configure Xdebug
  5. Blackfire profiler
  6. Directory structure

See it working!

Deployed with Travis and Kubernetes

  • Further documentation about deployment will be provied.

Environment architecture

Now it has mocked support for MySQL databases.

Quick start

$ git clone https://github.com/tulik/symfony-4-docker-runtime-env.git
$ cd symfony-4-docker-runtime-env
$ docker-compose up

Wait for containers to start, then to http://localhost

Blackfire.io

Configure Xdebug

If you use another IDE than PHPStorm, go to the remote debugging section of Xdebug documentation.

For a better integration of Docker to PHPStorm, use the documentation.

  1. Edit docker-compose file docker-compose.yml edit/adjust the configuration as needed for XDEBUG_CONFIG AND PHP_IDE_CONFIG environment variables.

  2. If needed add a server for PHP as explained @see Add a debug server section.

Thank to @woprrr for contribution on Xdebug.

Blackfire profiler

Blackfire.io is continuous PHP Performance Testing.

Blackfire.io

Register your trial, be able to profile both in development and with a paid subscription in production too! Don't forget to get your Blackfire Companion.

Directory structure

symfony-4-docker-runtime-env
โ”œโ”€โ”€ documentation
โ”‚ย ย  โ””โ”€โ”€ images
โ”œโ”€โ”€ h2-proxy
โ”‚ย ย  โ””โ”€โ”€ conf.d
โ”œโ”€โ”€ helm
โ”‚ย ย  โ””โ”€โ”€ symfony
โ”‚ย ย      โ”œโ”€โ”€ charts
โ”‚ย ย      โ””โ”€โ”€ templates
โ””โ”€โ”€ symfony
    โ”œโ”€โ”€ bin
    โ”œโ”€โ”€ config
    โ”‚ย ย  โ”œโ”€โ”€ packages
    โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ dev
    โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ prod
    โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ test
    โ”‚ย ย  โ””โ”€โ”€ routes
    โ”œโ”€โ”€ docker
    โ”‚ย ย  โ”œโ”€โ”€ nginx
    โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ conf.d
    โ”‚ย ย  โ””โ”€โ”€ php
    โ”œโ”€โ”€ public
    โ””โ”€โ”€ src
        โ”œโ”€โ”€ Controller
        โ”œโ”€โ”€ Entity
        โ”œโ”€โ”€ Migrations
        โ””โ”€โ”€ Repository
        


Copyright Note: Substantial portions of the solution was introduced by Kรฉvin Dunglas.