Skip to main content

Image Description

MCP Gateway provides two deployment methods:

All-in-One Deployment

All services packaged in one container, suitable for single machine deployment or local use

Multi-Container Deployment

Each service deployed independently, suitable for production or cluster deployment

Image Repositories

Images are published to the following three repositories:
  • Docker Hub: docker.io/ifuryst/unla-*
  • GitHub Container Registry: ghcr.io/amoylab/unla/*
  • Alibaba Cloud Container Registry: registry.ap-southeast-1.aliyuncs.com/amoylab/unla-*
GHCR supports multi-level directories, so the organization structure is clearer. Docker and Aliyun repositories only support single-level directories, so image names are joined with -.

Image Tags

  • latest: Latest version
  • vX.Y.Z: Specific version number
MCP Gateway is currently in rapid iteration! Therefore, it is recommended to deploy with version numbers for better reliability.

Available Images

All-in-One Deployment

All-in-One deployment packages all services in one container, suitable for single machine deployment or local use. It includes the following services:
  • API Server: Management platform backend, can be understood as the control plane
  • MCP Gateway: Core service, responsible for actual gateway service, can be understood as the data plane
  • Mock User Service: Mock user service, providing test user services
  • Web Frontend: Management platform frontend, providing visual management interface
  • Nginx: Reverse proxy for other services
Uses Supervisor to manage service processes, all logs are output to stdout.

Port Description

External Service Ports

  • 8080: Web interface port
  • 5235: MCP Gateway port

Internal Service Ports

  • 5234: API Server port
  • 5335: MCP Gateway management port
  • 5236: Mock User Service port
5335 is the MCP Gateway management port, hosting internal interfaces such as reload. Do not expose it externally in production environments!

Data Persistence

It is recommended to mount the following directories:
  • /app/configs: Configuration file directory
  • /app/data: Data directory
  • /app/.env: Environment variable file

Deployment Steps

1

Create Directory and Download Configuration

2

Start Container

Notes

  1. Ensure configuration files and environment variable files are correctly configured
  2. Strongly recommended to use strong passwords in production environments
  3. Do not expose management port 5335 externally
  1. Recommended to use version number tags instead of latest
  2. Production environments should configure appropriate resource limits
Ensure mounted directories have correct permissions

Multi-Container Deployment

Multiple services deployed independently, suitable for production environments or cluster deployment. Includes the following services:
  • mcp-gateway: Core service, responsible for actual gateway service, can be understood as the data plane
  • web(includes apiserver): Management platform and backend, can be understood as the control plane
  • mock-server: Mock service, providing test services
Suitable for production environments, can be deployed as needed, especially for mcp-gateway which can be deployed in multiple replicas for high availability.

Deployment Features

Database Support

Uses PostgreSQL as database to store sessions, proxy configurations and other information

Cache Support

Uses Redis for configuration update notifications, OAuth storage and other purposes

Load Balancing

Supports multi-replica deployment and load balancing configuration

Docker Compose Deployment

1

Download Configuration Files

2

Modify Configuration

Edit docker-compose.yml and .env files:
  1. Modify database and Redis account passwords
  2. Adjust exposed ports as needed
  3. Configure LLM service parameters
3

Start Services

4

Configure Load Balancing

Configure Nginx or other LB layers as needed

Example Configuration

Important Access URLs

After configuration is complete, you can access the services through the following URLs:
Please adjust the above URLs according to your actual domain and configuration.