Sign inSign up

cmr1/yii-example

By cmr1

Updated over 9 years ago

Dockerized Yii Application

Image
1

1.8K

cmr1/yii-example repository overview

Dockerized Yii Application

Build Status

Visit GitHub Repository

Usage
  1. Change directory to your working dir
  • cd ~/path/to/working/dir
  1. Clone this repo
  • git clone https://github.com/cmr1/docker-yii.git
  1. Enter this repo directory
  • cd docker-yii
  1. Create local GitHub token file (for PHP composer install during build)
  • Generate a GitHub access token
    • This token is for authentication only, it does not require ANY permissions!
  • echo "MY-SUPER-SECRET-GITHUB-TOKEN" > .github.token
    • Replace MY-SUPER-SECRET-GITHUB-TOKEN with the token generated above
    • This file must be created, because it is ignored in .gitignore
  1. Build Docker containers
  • docker-compose build
  1. Install composer packages on mounted volume
  • docker-compose run app composer install
  1. Run Docker containers
  • docker-compose up
  1. Visit in your browser!

Tag summary

Content type

Image

Digest

Size

230.2 MB

Last updated

over 9 years ago

docker pull cmr1/yii-example