https://github.com/cmr1/docker-yii
Dockerized Yii Application
https://github.com/cmr1/docker-yii
docker docker-compose mysql nginx-php-fpm php-fpm yii2
Last synced: 9 months ago
JSON representation
Dockerized Yii Application
- Host: GitHub
- URL: https://github.com/cmr1/docker-yii
- Owner: cmr1
- Created: 2017-03-24T23:14:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-08T03:38:35.000Z (over 8 years ago)
- Last Synced: 2025-01-01T09:22:27.284Z (10 months ago)
- Topics: docker, docker-compose, mysql, nginx-php-fpm, php-fpm, yii2
- Language: PHP
- Size: 7.49 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/cmr1/docker-yii)
[](https://hub.docker.com/r/cmr1/yii-example)
[](https://hub.docker.com/r/cmr1/yii-example)
# Dockerized Yii Application
### Usage
1. Change directory to your working dir
- `cd ~/path/to/working/dir`
2. Clone this repo
- `git clone https://github.com/cmr1/docker-yii.git`
3. Enter this repo directory
- `cd docker-yii`
4. Create local GitHub token file (for PHP composer install during build)
- [Generate a GitHub access token](https://github.com/settings/tokens)
- *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`*
5. Build Docker containers
- `docker-compose build`
6. Install composer packages on mounted volume
- `docker-compose run app composer install`
7. Run Docker containers
- `docker-compose up`
8. Visit in your browser!
- [http://localhost](http://localhost)