2017 © Pedro Peláez
 

library yii2-docker-app-advanced

Yii 2 Advanced Project Template under docker and docker-compose

image

consultnn/yii2-docker-app-advanced

Yii 2 Advanced Project Template under docker and docker-compose

  • Tuesday, April 5, 2016
  • by sokrat
  • Repository
  • 11 Watchers
  • 20 Stars
  • 235 Installations
  • Shell
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 4 Versions
  • 10 % Grown

The README.md

Docker-compose config for Yii 2 Advanced Project Template

Yii 2 docker is a configuration for easy deployment and development of Yii 2 Advanced Project Template., (*1)

REQUIREMENTS

INSTALLATION VIA COMPOSER

composer create-project --prefer-dist --no-install consultnn/yii2-docker-app-advanced app

FAST INSTALLATION

git clone --depth=1 https://github.com/consultnn/yii2-docker-app-advanced.git app \
&& cd app \
&& rm -rf .git \
&& git clone --depth=1 git@github.com:yiisoft/yii2-app-advanced.git project \
&& cd project \
&& rm -rf .git \
&& sudo chown -R $USER:$USER project

MANUAL INSTALLATION

Clone this repository, (*2)

git clone --depth=1 https://github.com/consultnn/yii2-docker-app-advanced.git app

Change directory, (*3)

cd app

Remove git directory, (*4)

rm -rf .git

Install Yii 2 Advanced Project Template via composer inside docker container, (*5)

git clone --depth=1 git@github.com:yiisoft/yii2-app-advanced.git project

Remove git directory, (*6)

rm -rf .git

Change project directory owner (default root, because process inside container run as root), (*7)

sudo chown -R $USER:$USER project

Add own github token in ./docker/php/auth.json, (*8)

DIRECTORY STRUCTURE

docker                          contains docker configurations, build files and logs
    nginx                       nginx docker configuration
    php                         php docker configuration
    mongo                       mongodb docker configuration
project                         Yii 2 Advanced Project Template
docker-compose.yml              docker-compose configuration
production-compose.yml          docker-compose configuration for production env
common-compose.yml              common docker-compose configuration

USAGE

To execute commands inside docker container run, (*9)

docker-compose run --rm {service} {command}
or, if application already running
docker exec {service} {command}

For example:, (*10)

docker-compose run php composer install
docker exec run php /init

Start docker containers, (*11)

docker-compose up -d

NOTE: git isn't installed in php container, so use --prefer-dist composer option NOTE: default directory inside php container - "/project", (*12)

After start check http://127.0.0.1:8090, (*13)

The Versions

05/04 2016

dev-master

9999999-dev

Yii 2 Advanced Project Template under docker and docker-compose

  Sources   Download

BSD-3-Clause

by Avatar sokrat
by Maxim Mironyuk

yii2 advanced docker project template docker-compose

27/11 2015

2.0.6

2.0.6.0

Yii 2 Advanced Project Template under docker and docker-compose

  Sources   Download

BSD-3-Clause

by Avatar sokrat

yii2 advanced docker project template docker-compose

07/10 2015

2.0.5

2.0.5.0

Yii 2 Advanced Project Template under docker and docker-compose

  Sources   Download

BSD-3-Clause

by Avatar sokrat

yii2 advanced docker project template docker-compose

03/08 2015

2.0.4

2.0.4.0

Yii 2 Advanced Project Template under docker and docker-compose

  Sources   Download

BSD-3-Clause

by Avatar sokrat

yii2 advanced docker project template docker-compose