update prod env
This commit is contained in:
@@ -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.
|
||||
#
|
||||
# Base images: DaoCloud「增加前缀」镜像(README 推荐,减少 BuildKit 直连 registry-1.docker.io)
|
||||
# See https://github.com/DaoCloud/public-image-mirror
|
||||
# Docker Hub 镜像:默认经毫秒镜像 docker.1ms.run(https://1ms.run/);与 Dockerfile Python 基础镜像一致。
|
||||
# 拉取失败时可全局替换为 m.daocloud.io/docker.io/... 或配置 daemon registry-mirrors。
|
||||
#
|
||||
# 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: m.daocloud.io/docker.io/library/postgres:16-alpine
|
||||
image: docker.1ms.run/library/postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD}
|
||||
|
||||
Reference in New Issue
Block a user