Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

IDCI-Consulting/DockerResources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker resources

A set of docker resources to get quickly started on a symfony project

Getting started

  • Copy the docker directory, the docker-compose.yml, the .env and Makefile in your symfony project
  • Remove useless parts in each of theses files
  • Change values in .env file
  • Update app_dev.php to allow dockerized applications. (Comment the code from line 12 to 19)

Then run your containers:

docker network create dev
docker-compose -f docker/proxy-docker-compose.yml up -d         # run the proxy
docker-compose -f docker/elasticsearch-docker-compose.yml up -d # run the elasticsearch
docker-compose up -d                                            # run the entire stack

Node.js

If you want to install npm & bower packages, you can use the Makefile commands:

$ make npm-install
$ make bower-install

Benefit

  • Easily change your php version from the .env
  • Use the makefile to auto complete daily commands
  • Display all logs (proxy, nginx, php) with the docker-compose logs -f command.

Tests

To execute units and functionals tests:

$ make phpunit sources=src

To execute code sniffer :

$ make phpcs sources=src

'src' is the default sources value.

Todo

Use the greatness of the ELK stack

About

A set of docker resources for dev purpose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •