Skip to content

ApOgEE/apogee-yii2-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApOgEE Docker Container Setup For Yii2 Development

apogee

I'll be adding Docker compose file to simplify my task here.

Steps

After clone, run this commands:

  1. Docker Compose
docker-compose up
  1. After Container setup completed. Turn the docker down.
docker-compose down

Initializing Yii2 Project

Using this docker setup, you can either clone a yii2 project into apogee-phpyii2 directory or initialize a new project using composer commands.

Initialize new project using composer

If you already have composer in your system, simply run:

composer create-project yiisoft/yii2-app-basic apogee-phpyii2

Or if you don't install it, you may use composer within the phpweb container. Make sure you run the container first using docker-compose up -d

Enter the container using this command:

docker exec -it <container name> /bin/bash

Then run the composer command from html directory.

cd /var/www/html
composer create-project yiisoft/yii2-app-basic .

About

ApOgEE flavour of Docker Container Setup for Yii2 Development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published