一个开源、美观的 Web JSON 浏览器,让您能够快速浏览、搜索和导航 JSON 文件
docker run -d --name jsonhero-web -p 8787:8787 -e SESSION_SECRET=<your-secret-key> aliuq/jsonhero-web:latest
# 测试
docker run --rm --name jsonhero-web -p 8787:8787 -e SESSION_SECRET=test-secret aliuq/jsonhero-web:latest
访问 http://localhost:8787 即可使用
创建 docker-compose.yml 文件:
name: jsonhero-web
services:
jsonhero-web:
image: aliuq/jsonhero-web:latest
container_name: jsonhero-web
restart: unless-stopped
ports:
- '8787:8787'
environment:
- SESSION_SECRET=<your-secret-key>
运行服务:
docker-compose up -d
| 变量名 | 必需 | 默认值 | 描述 |
|---|---|---|---|
SESSION_SECRET | 是 | - | 会话加密密钥,用于安全认证 |
# 克隆仓库
git clone https://github.com/aliuq/apps-image.git
cd apps-image/apps/jsonhero-web
# 构建镜像
docker buildx build -f ./Dockerfile -t jsonhero-web:local --load .
# 运行测试
docker run --rm --name jsonhero-web-local -p 8787:8787 -e SESSION_SECRET=test-secret jsonhero-web:local
# 显示详细构建日志
docker buildx build --progress=plain -f ./Dockerfile -t jsonhero-web:debug --no-cache --load .
📝 该文档由 AI 辅助生成并整理,如有问题请随时反馈
Content type
Image
Digest
sha256:15f0ab637…
Size
221.1 MB
Last updated
about 1 year ago
docker pull aliuq/jsonhero-web