mateuschmitz / phalcon-simple-skeleton

Skeleton for Phalcon Application
MIT License
5 stars 1 forks source link

Add docker-compose definition #6

Closed danielarcher closed 2 years ago

danielarcher commented 6 years ago

This pull request adds a docker support to running the skeleton application from a single docker-compose command.

This docker-compose file have a nginx + php-fpm + database containers. The nginx configuration file could be modified for any uses cases as you need. It is just a simple configuration for general purpose.

The database layer is added for convenience because the majority of applications need a database layer. It could be removed easily.

To run this docker environment you need to run docker-compose -f docker/docker-compose.yml up -d