Skip to content

A complete stack for running a Symfony 4.4 LTS project with Docker. This project is created with a learning purpose in mind and is not suitable for production.

Notifications You must be signed in to change notification settings

RSHKDL/docker-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony with Docker

This is a complete stack for running a Symfony 4.4 LTS project with Docker. This project is created with a learning purpose in mind and is not suitable for production.

Requirements

Stack

  • PHP 7.4
  • NGINX
  • MySQL 8
  • Symfony 4.4 LTS
  • Webpack encore
  • Elasticsearch 7.9.2
  • Logstash 7.9.2
  • Kibana 7.9.2

The images are build upon Alpine Linux. If you want to update the Dockerfiles, you may need to refer to the Alpine Linux documentation.

Installation

  1. Clone this repository.

    git clone git@github.com:RSHKDL/docker-symfony.git

  2. Create your docker-compose.

    cp docker-compose.yml.dist docker-compose.yml

  3. Replace the <variables> with your own values.

  4. TODO

Setup Elastic stack

  1. Create your kibana.yml

    cp elastic-stack/kibana/kibana.yml.dist elastic-stack/kibana/kibana.yml

  2. Replace the <variables> with your own values.

  3. Access Kibana at localhost:<the-port-defined-in-docker-compose>

Tests

  • Connect to php container : make sh-php
  • Execute all tests suite : bin\phpunit
  • Check your version : bin\phpunit -v

On first use, Phpunit will download all dependencies. More information about Phpunit can be found on the Phpunit documentation (version dependent) or on the Symfony documentation.

About

A complete stack for running a Symfony 4.4 LTS project with Docker. This project is created with a learning purpose in mind and is not suitable for production.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages