Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description


Install Docker

Log into your Ubuntu installation as a user with sudo privileges.

Verify that you have wget installed.

$ which wget

If wget isn’t installed, install it after updating your manager:

$ sudo apt-get update
$ sudo apt-get install wget

Get the latest Docker package.

$ wget -qO- | sh

The system prompts you for your sudo password. Then, it downloads and installs Docker and its dependencies. >Note: If your company is behind a filtering proxy, you may find that the >apt-key >command fails for the Docker repo during installation. To work around this, >add the key directly using the following: > > $ wget -qO- | sudo apt-key add -

Verify docker is installed correctly.

$ sudo docker run hello-world

This command downloads a test image and runs it in a container.

if docker doesnt run

systemctl unmask docker.service
systemctl unmask docker.socket
systemctl start docker.service

Install Docker Compose


Just a litle Docker POC in order to have a complete stack for running Symfony into Docker containers using docker-compose tool.


First, clone this repository:

$ git clone

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

Then, run:

$ docker build -t code code
$ docker build -t php-fpm php-fpm
$ docker build -t nginx nginx

You are done, you can visite your Symfony application on the following URL: (and access Kibana on

to launch all instance

$ docker-compose up -d

How it works?

Here are the docker-compose built images:

  • application: This is the rooftech application code container,
  • db: This is the MySQL database container (can be changed to postgresql or whatever in docker-compose.yml file),
  • php: This is the PHP-FPM container in which the application volume is mounted,
  • nginx: This is the Nginx webserver container in which application volume is mounted too,
  • elk: This is a ELK stack container which uses Logstash to collect logs, send them into Elasticsearch and visualize them with Kibana.

This results in the following running containers:

> $ docker-compose ps
        Name                      Command               State              Ports
        docker_application_1   /bin/bash                        Up
        docker_db_1            / mysqld            Up>3306/tcp
        docker_elk_1           /usr/bin/supervisord -n -c ...   Up>80/tcp
        docker_nginx_1         nginx                            Up      443/tcp,>80/tcp
        docker_php_1           php5-fpm -F                      Up      9000/tcp

Read logs

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

  • logs/nginx
  • logs/rooftech

Use Kibana!

You can also use Kibana to visualize Nginx & Symfony logs by visiting

Docker Pull Command
Source Repository

Comments (0)