chore: 并入 iotlcm-sms 历史到 sms/(原提交 1d38bc4)
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
services:
|
||||
iotlcm-sms:
|
||||
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: "示例企业"
|
||||
# 场景模板配置库(可选):默认读 config.yaml 的 sceneDbDsn,也可用环境变量临时覆盖。
|
||||
# SMS_DB_DSN: ""
|
||||
# SMS_DB_CONFIG_CACHE_TTL: 60s
|
||||
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
|
||||
Reference in New Issue
Block a user