update prod env
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# 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 use DaoCloud public mirror (大陆可访问): docker.io → docker.m.daocloud.io
|
||||
# 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 → 清华,
|
||||
@@ -14,7 +14,7 @@
|
||||
# and assign GPUs to the api service (deploy.resources.reservations.devices).
|
||||
services:
|
||||
db:
|
||||
image: docker.m.daocloud.io/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}
|
||||
@@ -33,10 +33,6 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
# 与 db 服务一致:docker.m.daocloud.io/library/...(勿用 bare tag 3.13,镜像站常解析失败)
|
||||
# 需直连 Docker Hub 时可 export PYTHON_BASE_IMAGE=docker.io/library/python:3.13-slim-bookworm
|
||||
PYTHON_BASE_IMAGE: ${PYTHON_BASE_IMAGE:-docker.m.daocloud.io/library/python:3.13-slim-bookworm}
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD}
|
||||
|
||||
Reference in New Issue
Block a user