Skip to content
Docker image for WTF Framework
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
etc
usr/bin
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Dockerfile
Dockerfile.lite
LICENSE
README.md
index.md

README.md

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
  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
You can’t perform that action at this time.