Ara4Sh / yii2-docker

Yii2 dockerize - php7 + nginx + percona - easy install

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YII2 advanced dockerize

docker machines

  • percona (mysql)
  • nginx whit php-fpm
  • redis (comming soon)
  • mongo (comming soon)

How to install

1- git clone from repository

$ git clone git@github.com:amirasaran/yii2-docker.git 

2- set your site default config config.conf

#!/bin/bash
## Nginx config ##
FRONTEND_SITE_NAME="frontend.local"
BACKEND_SITE_NAME="backend.local"
FRONTEND_ROOT=\/var\/www\/frontend\/web
BACKEND_ROOT=\/var\/www\/backend\/web
SITE_ROOT=\/var\/www/\

## Site Http port ##
HTTP_PORT=8082

## Storing data folder ##
APP_WEB_FOLDER=$PWD/app/web
APP_MYSQL_FOLDER=$PWD/app/mysql
SHARING_FOLDER=$PWD/app/share


## MYSQL Config ###
MYSQL_ROOT_PASSWORD=PassWord
MYSQL_DB_NAME=yii2advanced
MYSQL_DB_USER=yii2
MYSQL_DB_PASS=123456

## CONTAINERS CONFIG ##
WEB_CONTAINER_NAME="php_nginx"
MYSQL_CONTAINER_NAME="prcona_mysql"

3- run make setup

$ make setup

4- run make run

$ make run

your project now setup and configure .

Customize Your machine

  • comming soon ...

About

Yii2 dockerize - php7 + nginx + percona - easy install


Languages

Language:Shell 80.9%Language:Nginx 16.7%Language:Makefile 2.5%