Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rshkdl/docker-symfony

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.
https://github.com/rshkdl/docker-symfony

docker kibana phpunit stack symfony

Last synced: 6 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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

- [Docker](https://docs.docker.com/engine/)
- [Docker Compose](https://docs.docker.com/compose/)

## 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](https://alpinelinux.org/). If you want to
update the Dockerfiles, you may need to refer to the Alpine Linux documentation.

## Installation

1. Clone this repository.

`git clone [email protected]:RSHKDL/docker-symfony.git`

2. Create your docker-compose.

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

3. Replace the `` 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 `` with your own values.

3. Access Kibana at `localhost:`

## 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](https://phpunit.readthedocs.io/en/7.5/) (version dependent)
or on the [Symfony documentation](https://symfony.com/doc/4.4/testing.html).