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 versionvX.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
Port Description
External Service Ports
8080: Web interface port5235: MCP Gateway port
Internal Service Ports
5234: API Server port5335: MCP Gateway management port5236: 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
Security Configuration
Security Configuration
- Ensure configuration files and environment variable files are correctly configured
- Strongly recommended to use strong passwords in production environments
- Do not expose management port
5335externally
Version Management
Version Management
- Recommended to use version number tags instead of latest
- Production environments should configure appropriate resource limits
Permission Configuration
Permission Configuration
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
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:- Modify database and Redis account passwords
- Adjust exposed ports as needed
- Configure LLM service parameters
3
Start Services
4
Configure Load Balancing
Configure Nginx or other LB layers as needed
Example Configuration
docker-compose.yml
docker-compose.yml
Nginx Configuration Example
Nginx Configuration Example
Important Access URLs
After configuration is complete, you can access the services through the following URLs:- Web Management Interface: https://unla.amoylab.com/
- MCP Gateway: https://unla.amoylab.com/gateway/*
- Example MCP Endpoint: https://unla.amoylab.com/gateway/user/mcp
Please adjust the above URLs according to your actual domain and configuration.