/symfony-docker-template

Primary LanguagePHPApache License 2.0Apache-2.0

symfony-docker-template

Build Status

pipeline status

Basic Symfony Docker project to start your own one.

Inspired in https://github.com/eko/docker-symfony

Installation

First, clone this repository:

$ git clone git@gitlab.com:larsnow/symfony-docker-template.git

Next, put your Symfony application into symfony folder and do not forget to add symfony.dev in your /etc/hosts file.

Make sure you adjust database_host in parameters.yml to the database container alias "db"

Then, run:

$ docker-compose up

You are done, you can visit your Symfony application on the following URL: http://symfony.dev (and access Kibana on http://symfony.dev:81)

Note : you can rebuild all Docker images by running:

$ docker-compose build

Read logs

You can access Nginx and Symfony application logs in the following directories on your host machine:

  • logs/nginx
  • logs/symfony

Use Kibana!

You can also use Kibana to visualize Nginx & Symfony logs by visiting http://symfony.dev:81.