/symfony4-docker-experimentation

Testing docker with symfony4 and nginx as proxy

Primary LanguageMakefile

Symfony with docker experimentations

Experimenting with docker and symfony 4. While this is made for testing purposes, it can also be of some use for fellow developpers.

DISCLAIMER: This repository exists with the aim of learning docker & docker-composer by practice. I'm not an expert, nor I'm able to provide extensive support. Keep in mind that it's always better to know how it works before using it as it can contain mistakes 😄.

Using the project

  • start services: make start
  • execute command in php container: docker-compose exec php php bin/console make:entity
  • ssh in php container: make ssh
  • stopping services: make stop
  • cleanning services and volumes: make clean

TODO

  • Changing ports for security
  • Go multistage!
  • Add Makefile

Sources

These sources were used as reference for this work. Thanks a lot to them.