From 70048e78cac06200580391ee2f73285ed788532b Mon Sep 17 00:00:00 2001 From: Kevin Date: Tue, 28 Apr 2026 10:26:16 +0800 Subject: [PATCH] update prod env --- docker-compose.prod.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 8978b2e..db25838 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -1,8 +1,8 @@ # Production stack for the current codebase: FastAPI + PostgreSQL. # The API hard-fails on startup if the database is not reachable, so DB health is required. # -# Docker Hub 镜像:默认经毫秒镜像 docker.1ms.run(https://1ms.run/);与 Dockerfile Python 基础镜像一致。 -# 拉取失败时可全局替换为 m.daocloud.io/docker.io/... 或配置 daemon registry-mirrors。 +# Base images: DaoCloud「增加前缀」镜像(README 推荐,减少 BuildKit 直连 registry-1.docker.io) +# See https://github.com/DaoCloud/public-image-mirror # # The ``api`` service is built from ``Dockerfile``: Debian apt → 阿里云, uv/PyPI → 清华, # PyTorch CPU wheels / pytorch.org index files → 南大镜像; see Dockerfile for details. @@ -14,7 +14,7 @@ # and assign GPUs to the api service (deploy.resources.reservations.devices). services: db: - image: docker.1ms.run/library/postgres:16-alpine + image: m.daocloud.io/docker.io/library/postgres:16-alpine environment: POSTGRES_USER: ${POSTGRES_USER:-postgres} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD}