Files
iotlcm/deploy/docker-compose.yml
T
MiFaZhan 4fb1016977 chore: 初始开源发布
iotlcm-sms:独立短信 HTTP/gRPC 服务,支持阿里云与腾讯云。

- Go module 迁移至 git.5iot.com/iotlcm-public/iotlcm-sms
- 补 Apache-2.0 LICENSE,重写 README(特性/配置/接口/部署/目录/测试)
- 配置改为 config.example.yaml + SMS_* 环境变量注入,仓库不含真实凭证
- 清理内部标识(私有镜像仓库 / 公司名 / 客户签名 / 真实模板ID / 真实手机号)
- 统一 LF 行尾并加 .gitattributes
2026-10-22 14:21:47 +08:00

33 lines
1.0 KiB
YAML

services:
iotlcm-sms:
# 默认使用本地构建的镜像;推到自己的镜像仓库时用 IOTLCM_SMS_IMAGE 指定。
image: ${IOTLCM_SMS_IMAGE:-iotlcm-sms:latest}
container_name: iotlcm-sms
hostname: iotlcm-sms
restart: always
environment:
TZ: Asia/Shanghai
HTTP_ADDR: :11190
GRPC_ADDR: :11200
# 默认凭证来自 config.yaml(只读挂载);如需临时覆盖可用下面的环境变量。
# SMS_ACCESS_KEY_ID: ""
# SMS_ACCESS_KEY_SECRET: ""
# SMS_SIGN_NAME: "示例签名"
volumes:
# 真实凭证文件只放服务器,不提交仓库。
- ./config.yaml:/app/config/config.yaml:ro
ports:
- "11190:11190"
- "11200:11200"
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "wget", "--quiet", "--output-document=/dev/null", "http://127.0.0.1:11190/healthz"]
interval: 10s
timeout: 3s
retries: 3
start_period: 5s