feat: 基础服务镜像支持环境变量与多架构迁移脚本
Test start.ps1 (Windows) / test-windows (push) Has been cancelled

- docker-compose:REDIS_IMAGE、MONGO_IMAGE、RABBITMQ_IMAGE 可配置,默认保持原阿里云地址
- .env.sample:补充三镜像变量、Mongo 4.4 备选地址及用途说明、RabbitMQ 备选示例
- 新增 mirror-image-to-registry.ps1:从 Hub/镜像站同步指定架构到私有仓库,含凭据与并行复制优化

Made-with: Cursor
This commit is contained in:
2026-04-10 17:35:18 +08:00
parent 5c856749c1
commit f04bb5e4fc
3 changed files with 500 additions and 6 deletions
+5 -6
View File
@@ -157,8 +157,8 @@ services:
max-size: "100m"
max-file: "10"
mongo:
image: registry.cn-shanghai.aliyuncs.com/comfy-ai/mongo-aliyun:latest
# image: registry.cn-shanghai.aliyuncs.com/comfy-ai/mongo-aliyun:4.4
# 镜像见 .env 中 MONGO_IMAGE4.4 备选地址与用途见 .env.sample 注释
image: ${MONGO_IMAGE:-registry.cn-shanghai.aliyuncs.com/comfy-ai/mongo-aliyun:latest}
container_name: mongo
restart: unless-stopped
privileged: true
@@ -188,7 +188,7 @@ services:
max-size: "100m"
max-file: "10"
redis:
image: registry.cn-shanghai.aliyuncs.com/comfy-ai/redis-aliyun:latest
image: ${REDIS_IMAGE:-registry.cn-shanghai.aliyuncs.com/comfy-ai/redis-aliyun:latest}
container_name: redis
restart: always
volumes:
@@ -207,9 +207,8 @@ services:
max-size: "100m"
max-file: "10"
rabbitmq:
# image: rabbitmq:4-management # 官方地址,需可访问外网
image: registry.cn-shanghai.aliyuncs.com/easyaigc/mq:latest # 阿里云镜像
# image: docker.m.daocloud.io/library/rabbitmq:4-management # 国内网络可访问
# 镜像地址见 .env 中 RABBITMQ_IMAGE(备选示例见 .env.sample
image: ${RABBITMQ_IMAGE:-registry.cn-shanghai.aliyuncs.com/easyaigc/mq:latest}
labels:
- "com.centurylinklabs.watchtower.enable=true"
container_name: rabbitmq