All Projects → consultnn → yii2-docker-app-advanced

consultnn / yii2-docker-app-advanced

Licence: other
Yii 2 Advanced Project Template under docker and docker-compose

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to yii2-docker-app-advanced

yii2-basic-firestarter
This is a pimped up basic yii2 template ❤️. It's a firestarter 🔥
Stars: ✭ 35 (+40%)
Mutual labels:  yii2, yii2-template
yii2-material-theme
Material Theme for Yii2
Stars: ✭ 15 (-40%)
Mutual labels:  yii2, yii2-template
yii2-rest-api
Yii 2 REST API Project Template
Stars: ✭ 36 (+44%)
Mutual labels:  yii2, yii2-template
yii2-faker
Yii 2 Faker extension
Stars: ✭ 99 (+296%)
Mutual labels:  yii2
yii2-link-preview
LinkPreview widget render page preview
Stars: ✭ 26 (+4%)
Mutual labels:  yii2
yii2-composer
Yii 2 composer extension
Stars: ✭ 76 (+204%)
Mutual labels:  yii2
yii2-yandex-market-yml
Yii2 module for automatically generation Yandex.Market YML
Stars: ✭ 14 (-44%)
Mutual labels:  yii2
yii2-dysms
阿里云 dysms 官方 SDK 的 Composer 封装,支持 yii2 项目。
Stars: ✭ 13 (-48%)
Mutual labels:  yii2
yii2-laradock
Laradock pre-configured for Yii2 Framework (https://github.com/LaraDock/laradock)
Stars: ✭ 16 (-36%)
Mutual labels:  yii2
ar-variation
Variation behavior for ActiveRecord
Stars: ✭ 46 (+84%)
Mutual labels:  yii2
yii2-presenter
Yii2 View Presenter
Stars: ✭ 13 (-48%)
Mutual labels:  yii2
project-template
Yii2 Project Template
Stars: ✭ 53 (+112%)
Mutual labels:  yii2
query
Run SQL queries as an admin from the Craft CMS control panel.
Stars: ✭ 14 (-44%)
Mutual labels:  yii2
yii2-rest-client
REST client (AR-like model) for Yii Framework 2.0 (via yii2-http-client)
Stars: ✭ 19 (-24%)
Mutual labels:  yii2
library
企业内部图书馆管理系统
Stars: ✭ 23 (-8%)
Mutual labels:  yii2
yii2-lock-form
disable the button when form submit
Stars: ✭ 37 (+48%)
Mutual labels:  yii2
yii2-widget-cropbox
This widget allows crop image before upload to server and send informations about crop in JSON format.
Stars: ✭ 90 (+260%)
Mutual labels:  yii2
yii2-flysystem-component
The League Flysystem Library for Yii Framework
Stars: ✭ 22 (-12%)
Mutual labels:  yii2
ar-role
ActiveRecord behavior, which provides relation roles (table inheritance)
Stars: ✭ 34 (+36%)
Mutual labels:  yii2
hisite-template
HiSite Project Template
Stars: ✭ 16 (-36%)
Mutual labels:  yii2

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.

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 [email protected]:yiisoft/yii2-app-advanced.git project \
&& cd project \
&& rm -rf .git \
&& sudo chown -R $USER:$USER project

MANUAL INSTALLATION

Clone this repository

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

Change directory

cd app

Remove git directory

rm -rf .git

Install Yii 2 Advanced Project Template via composer inside docker container

git clone --depth=1 [email protected]:yiisoft/yii2-app-advanced.git project

Remove git directory

rm -rf .git

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

sudo chown -R $USER:$USER project

Add own github token in ./docker/php/auth.json

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

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

For example:

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

Start docker containers

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"

After start check http://127.0.0.1:8090

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].