Create Dockerfile in your poject root with following contents:
FROM frameworkwtf/docker
COPY . /var/wwwBuild and run it, that's all.
- Swagger builder swagger-php - If your project has swagger-php installed, it will be runned automatically on container start
- Phinx migrations and seed phinx - If your project has phinx installed, migrations will be runned on container start. IF your APP_ENV env var IS NOT "prod", seeds will be runned after migrations
- Console - If your project contains
app/public/console.phpfile, you can run it simple withconsolefrom any part of the system. Very helpful when you want to add some cron scrits or run it viadocker exec. No matter which console library you use - cron - manual
- nginx - enabled with
NGINX_ENABLE=1 - php-fpm
Light version of latest image, used for microservices, where you don't need any additional stuff.
Create Dockerfile in your poject root with following contents:
FROM frameworkwtf/docker:lite
COPY . /var/wwwBuild and run it, that's all.
- Installed only
nginx,php7,php7-fpmandphp7-opcachepackages - Cron included, but must be enabled with
CRON_ENABLE=1env var (default: disabled) - PHP Opcache enabled by default with
PHP_OPCACHE_ENABLE=1env var - All other custom tools and scripts not included