Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gtsigner/docker-lnmp-redis
devops
https://github.com/gtsigner/docker-lnmp-redis
docker docker-compose docker-deployment php redis
Last synced: 2 months ago
JSON representation
devops
- Host: GitHub
- URL: https://github.com/gtsigner/docker-lnmp-redis
- Owner: gtsigner
- License: other
- Created: 2017-05-23T12:37:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-08T08:49:43.000Z (about 7 years ago)
- Last Synced: 2024-08-01T13:32:59.199Z (5 months ago)
- Topics: docker, docker-compose, docker-deployment, php, redis
- Language: Shell
- Homepage: http://oeynet.com
- Size: 7.71 MB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Overview
docker 的开发环境和线上生产环境### Containers
- 1.nginx
- 2.mysql-db
- 3.redis-db
- 4.php-fpm
- 5.composer
- 6.bower
- 7.visualizer其中不需要的镜像可以注释掉
## QuickStart
### Install Docker
安装Docker Ce
```bash
$bash ./app/tools/docker-installer.sh
```
### Install docker-compose
```bash
$cp ./docker-compose /usr/local/bin/
$chmod +x /usr/lcoal/bin/docker-compose
```
## Usage默认启动方式,这种方式适用于本地测试开发环境,暴漏了数据库端口redis端口方便调试
1.docker-compose up --build部署环境
2.### backup data
导入默认的测试数据
```base
$docker-compose -f db-backup.yml up
```### restore data
还原default备份数据
```bash
$docker-compose -f db-restore.yml up
```### 启动构建项目依耐工具
```bash
$docker-compose -f docker-build.yml up
```## Future
1. project-cli 生成架构工具2. 集群部署
3. gitlab gitlab-runner 实现CI CD