Skip to content

dmstr/docker-yii2-app

Repository files navigation

Docker Yii 2.0 Application

:octocat: dmstr/docker-yii2-app 🐺 dmstr/docker-yii2-app 🐳 dmstr/yii2-app 💿 dmstr/php-yii2

Build Status

Introduction

This is a minimal dockerized application template for Yii 2.0 Framework in about 100 lines of code.

Requirements

Setup

Prepare docker-compose environment

cp .env-dist .env

and application

cp config/app.env-dist config/app.env
mkdir web/assets

Start stack

docker-compose up -d

Show containers

docker-compose ps

Run composer installation

docker-compose run --rm php composer install

Develop

Create bash

docker-compose exec php bash

Run package update in container

$ composer update -v

...

$ yii help

Test

cd tests
cp .env-dist .env

Run tests in codeception (forrest) container d docker-compose run forrest run

:info: This is equivalent to codecept run inside the tester container

CLI

docker run dmstr/yii2-app yii

Resources


dmstr logo Built by dmstr

About

Dockerized application template for Yii 2.0 Framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •