Overview
- Full name
docker.io/skycitygalaxy/yapi- Registry
- docker.io
- Namespace
- skycitygalaxy
- Repository
- yapi
- Cached tags
- 4
- Last synced
- 07/06/2026, 03:17 AM
Introduction
YApi 开源 API 文档管理平台镜像,可视化接口设计、Mock 与自动化测试,需 MongoDB 存储项目与接口元数据。
Details
skycitygalaxy/yapi 运行 YApi 接口文档管理平台,Web UI 设计 REST API schema、生成 Mock 数据与自动化测试用例。定位为 API 文档 Web 应用,依赖 MongoDB 存储项目元数据;K8s Deployment + Ingress 内网 API 协作平台。
快速启动
docker run -d --name yapi \
-p 3000:3000 \
-e YAPI_MONGO_URI=mongodb://mongo:27017/yapi \
docker.io/skycitygalaxy/yapi:latest
推荐实践
docker run -d --name yapi \
--restart unless-stopped \
-p 3000:3000 \
-e YAPI_MONGO_URI=mongodb://mongo.internal:27017/yapi \
-e YAPI_ADMIN_ACCOUNT=admin@yapi.io \
docker.io/skycitygalaxy/yapi:1.12.0
核心参数说明
-p 3000:3000— YApi Web UI 与 Mock API-e YAPI_MONGO_URI— MongoDB 连接串(高敏)-e YAPI_ADMIN_ACCOUNT— 初始管理员邮箱--restart unless-stopped— 文档平台持续在线
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: yapi
spec:
replicas: 2
selector:
matchLabels:
app: yapi
template:
metadata:
labels:
app: yapi
spec:
containers:
- name: yapi
image: docker.io/skycitygalaxy/yapi:1.12.0
ports:
- containerPort: 3000
envFrom:
- secretRef:
name: yapi-env
---
apiVersion: v1
kind: Service
metadata:
name: yapi
spec:
selector:
app: yapi
ports:
- port: 3000
targetPort: 3000
MongoDB StatefulSet 同 namespace;Ingress LDAP/OAuth 集成。
Latest tags (20)
View all 4 tags →| Tag | Arch | Pushed At | Size | Digest | Sync | Wish | Action |
|---|---|---|---|---|---|---|---|
docker.io/skycitygalaxy/yapi :v1.12.0 | linux/amd64 | 2022/11/17 15:17 | 361.2 MB | sha256:f9f4b775b921… | |||
docker.io/skycitygalaxy/yapi :v1.9.3 | linux/amd64 | 2021/10/21 13:35 | 353.4 MB | sha256:d272b96efa67… | |||
docker.io/skycitygalaxy/yapi :v7 | linux/amd64 | 2019/08/08 14:18 | 353.5 MB | sha256:49289613a87b… | |||
docker.io/skycitygalaxy/yapi :v6 | linux/amd64 | 2019/08/08 12:05 | 353.5 MB | sha256:07f911b1f064… |