Skip to content

frameworkwtf/docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WTF Framework dockerized Docker Pulls

Table of Contents

Tags

latest

How to use

Create Dockerfile in your poject root with following contents:

FROM frameworkwtf/docker

COPY . /var/www

Build and run it, that's all.

Integrated tools

  1. Swagger builder swagger-php - If your project has swagger-php installed, it will be runned automatically on container start
  2. 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
  3. Console - If your project contains app/public/console.php file, you can run it simple with console from any part of the system. Very helpful when you want to add some cron scrits or run it via docker exec. No matter which console library you use
  4. cron - manual
  5. nginx - enabled with NGINX_ENABLE=1
  6. php-fpm

lite

Light version of latest image, used for microservices, where you don't need any additional stuff.

How to use

Create Dockerfile in your poject root with following contents:

FROM frameworkwtf/docker:lite

COPY . /var/www

Build and run it, that's all.

Difference from latest

  1. Installed only nginx, php7, php7-fpm and php7-opcache packages
  2. Cron included, but must be enabled with CRON_ENABLE=1 env var (default: disabled)
  3. PHP Opcache enabled by default with PHP_OPCACHE_ENABLE=1 env var
  4. All other custom tools and scripts not included

About

Docker image for WTF Framework

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published