容器化部署服务

通过 Docker 和 Nginx 提供 context7 服务的容器化部署环境,支持反向代理和 CI/CD 集成。

  • by hewenyu
  • Shell
  • 本地部署
  • 更新于
在 GitHub 查看 hewenyu/mcp-server

使用说明

MCP服务器

此项目为 上下文7 使用Docker和Nginx的服务。它包括在容器中运行context7服务和通过Nginx反向代理请求的配置。


本项目通过 Docker 和 Nginx 提供 上下文7 服务的部署环境。它包含用于在容器中运行 context7 服务的配置,并通过 Nginx 进行反向代理。

Features | 特性

  • Dockerized Deployment | Docker 化部署:使用Docker Compose轻松部署context7服务。 | 使用 Docker Compose快速部署 上下文7服务。
  • Nginx Reverse Proxy | Nginx 反向代理:所有HTTP请求都被代理到context7服务,支持SSE流。 | 所有 HTTP 请求通过 Nginx代理到 上下文7服务,支持 SSE 流式传输。
  • CI/CD支持| CI/CD支持: Includes GitHub Actions workflow for building and pushing Docker images. | 内置 GitHub Actions 工作流,用于构建和推送 Docker 镜像。

Directory Structure | 目录结构

.
├── devops/
│   └── context7/
│       ├── docker-compose.yml
│       └── nginx/
│           └── default.conf
├── .github/
│   └── workflows/
│       └── context7-build.yml
├── LICENSE
└── README.md

Quick Start | 快速开始

  1. Clone this repository | 克隆本仓库

  2. Navigate to the deployment directory | 进入部署目录:

    cd devops/context7
    
  3. 使用Docker Compose启动服务|使用 Docker Compose启动服务:

    docker-compose up -d
    
  4. Access the service | 访问服务:

Service Details | 服务说明

  • context7 在容器内的8080端口上运行。 | context7 服务在容器内监听 8080 端口。
  • Nginx listens on port 80 and proxies requests to the context7 service. | Nginx 监听 80 端口,并将请求代理到 context7 服务。

License | 许可证

This project is licensed under the GNU General Public License v3.0. | 本项目采用 GNU 通用公共许可证 v3.0 许可。