
temporalio/admin-toolsTemporal是一个基于"Workflow as Code (TM)"理念的分布式工作流编排平台,旨在帮助开发者构建和运行弹性应用。本Docker镜像封装了Temporal服务端组件,提供开箱即用的工作流引擎环境,支持工作流定义、执行、监控和管理全生命周期,使开发者能够专注于业务逻辑而非基础设施复杂性。
bashdocker run -d \ --name temporal \ -p 7233:7233 \ # Frontend服务端口(客户端连接) -p 8088:8088 \ # Web管理界面端口 temporalio/server:latest
说明:默认使用SQLite作为嵌入式数据库(仅开发环境),启动Frontend/History/Matching/Worker服务组件,Web界面访问地址:http://localhost:8088
bashdocker run -d \ --name temporal \ -p 7233:7233 \ -p 8088:8088 \ -e DB=postgresql \ -e DB_PORT=5432 \ -e DB_HOST=postgres-host \ -e DB_USER=postgres-user \ -e DB_PASSWORD=postgres-password \ -e DB_NAME=temporal \ -e SERVICES=frontend,history,matching \ # 生产环境通常拆分Worker服务 temporalio/server:latest
yamlversion: '3.8' services: postgres: image: postgres:14-alpine environment: POSTGRES_USER: temporal POSTGRES_PASSWORD: temporal POSTGRES_DB: temporal volumes: - postgres-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U temporal"] interval: 5s timeout: 5s retries: 5 temporal: image: temporalio/server:latest depends_on: postgres: condition: service_healthy environment: SERVICES: frontend,history,matching # 核心服务组件 DB: postgresql DB_HOST: postgres DB_PORT: 5432 DB_USER: temporal DB_PASSWORD: temporal DB_NAME: temporal PORT: 7233 # Frontend服务端口 WEB_PORT: 8088 # Web管理界面端口 LOG_LEVEL: info # 日志级别:debug/info/warn/error ports: - "7233:7233" - "8088:8088" volumes: - temporal-data:/etc/temporal/config temporal-admin-tools: image: temporalio/admin-tools:latest depends_on: - temporal environment: TEMPORAL_CLI_ADDRESS: temporal:7233 command: tail -f /dev/null # 保持容器运行,用于执行tctl命令 volumes: postgres-data: temporal-data:
启动命令:
bashdocker-compose up -d
| 环境变量名 | 描述 | 默认值 | 示例值 |
|---|---|---|---|
SERVICES | 启动的Temporal服务组件 | frontend,history,matching,worker | frontend,history,matching |
DB | 数据库类型 | sqlite | postgresql |
DB_HOST | 数据库主机地址 | localhost | postgres |
DB_PORT | 数据库端口 | 5432(PostgreSQL)/3306(MySQL) | 5432 |
DB_USER | 数据库用户名 | temporal | temporal-prod |
DB_PASSWORD | 数据库密码 | temporal | SecurePass123! |
DB_NAME | 数据库名称 | temporal | temporal_production |
PORT | Frontend服务端口(客户端连接) | 7233 | 7233 |
WEB_PORT | Web管理界面端口 | 8088 | 8080 |
LOG_LEVEL | 日志级别 | info | debug |
DYNAMIC_CONFIG_FILE | 动态配置文件路径(高级配置) | /etc/temporal/config/dynamicconfig/development.yaml | /etc/temporal/dynamic.yaml |
1.22.0)而非latest,避免自动升级导致兼容性问题TLS_CERT/TLS_KEY环境变量),并限制数据库访问权限



manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务