文章标题
来源:互联网 发布:网络故障诊断 目的意义 编辑:程序博客网 时间:2024/05/16 04:42
Introduction
Deploy lnmp(Linux, Nginx, MySQL, PHP7) using docker.
I want to share my ideas and designs about Web-Deploying using Docker with you.
Architecture
The whole app is divided into three Containers:
- Nginx is running in
Nginx
Container, which handles requests and makes responses. - PHP or PHP-FPM is put in
PHP-FPM
Container, it retrieves php scripts from host, interprets, executes then responses to Nginx. If necessary, it will connect toMySQL
as well. - MySQL lies in
MySQL
Container,
Our app scripts are located on host, you can edit files directly without rebuilding/restarting whole images/containers.
Build and Run
At first, you should have had Docker and Docker Compose installed.
Without building images one by one, you can make use of docker-compose
and simply issue:
$ sudo docker-compose up
For more operations to containers, please refer to:
$ sudo docker-compose --help
Check out your https://\
Contributors
Micooz micooz@hotmail.com
sndnvaps sndnvaps@gmail.com
License
MIT
0 0
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 欢迎使用CSDN-markdown编辑器
- linux查找并删除文件
- 实现元素在整个页面居中的三种方法
- 组合模式(Composite)
- Java邮件发送详解(可发送附件)
- 文章标题
- 第一天开始写博客
- 网络编程
- java操作属性文件
- SpringBoot第二讲利用Spring Data JPA实现数据库的访问(一)
- 11241
- 重定向与转发
- android中车牌识别技术
- 如何知道是否Oracle安装成功