Files
nexus/wiki/sources/用docker安装it-tools.md
2026-04-22 04:03:04 +08:00

49 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "用Docker安装it-tools"
type: source
tags: [docker, it-tools]
date: 2026-04-14
---
## Source File
- [[raw/Home Office/用Docker安装it-tools.md]]
## Summary (用中文描述)
- **核心主题**:使用 Docker Compose 在 Home Server 环境中一键部署 it-tools 开发者工具集合
- **问题域**:开发者工具匮乏、工具安装繁琐
- **方法/机制**:通过 Docker Compose YAML 定义服务,使用 `corentinth/it-tools:latest` 镜像,暴露 8999 端口,设置 128MB 内存限制
- **结论/价值**:提供零配置、可移植的 it-tools 部署方案,实现开箱即用的开发者工具 Web UI
## Key Claims (用中文描述)
- Docker Compose 通过 `version: '3.8'` 定义服务编排,实现 it-tools 容器化部署
- it-tools 容器通过 `restart: unless-stopped` 策略确保异常重启后自动恢复
- 交互模式配置(`stdin_open: true` + `tty: true`)保证容器与终端的标准 I/O 交互能力
- 内存限制 128MB 足以支持 it-tools Web UI 运行,同时防止资源滥用
## Key Quotes
> `8999:80` — 宿主机 8999 端口映射到容器内 80 端口,通过浏览器访问 Web UI
## Key Concepts
- [[Docker Compose]]:定义多容器 Docker 应用的配置文件格式
- [[容器资源限制]]:通过 `deploy.resources.limits.memory` 约束容器最大内存使用
- [[容器重启策略]]`unless-stopped` 确保容器在 Docker 守护进程启动时自动重启
- [[端口映射]]`-p` 标志将宿主机端口与容器端口进行一对一映射
- [[交互模式容器]]`stdin_open` + `tty` 组合启用容器的交互式终端能力
## Key Entities
- [[it-tools]]:开源开发者工具集合 Web UI提供 URL 编码/解码、UUID 生成、Cron 表达式解析等实用工具
- [[corentinth/it-tools]]it-tools 的官方 Docker 镜像,由 Corentin Th 维护
## Connections
- [[it-tools]] ← deployed_via ← [[Docker Compose]]
- [[Docker Compose]] ← dependency ← [[容器资源限制]]
- [[Docker Compose]] ← dependency ← [[容器重启策略]]
## Contradictions
## Metadata
- **Author**: shenwei
- **Tags**: docker, it-tools
- **Source**: Home Office