Compare commits

...

2 Commits

Author SHA1 Message Date
Kevin
ad31f8246e update prod env 2026-04-27 18:00:25 +08:00
Kevin
2694c8962f update prod env 2026-04-27 17:52:34 +08:00

View File

@@ -4,6 +4,9 @@
# Base images use DaoCloud public mirror (大陆可访问): docker.io → docker.m.daocloud.io # Base images use DaoCloud public mirror (大陆可访问): docker.io → docker.m.daocloud.io
# See https://github.com/DaoCloud/public-image-mirror # 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.
#
# Published API port defaults to 38080 on the host (override with API_PORT). # Published API port defaults to 38080 on the host (override with API_PORT).
# #
# GPU (NVIDIA) inference: uv.lock pins torch/torchvision from the PyTorch *CPU* index (see pyproject.toml). # GPU (NVIDIA) inference: uv.lock pins torch/torchvision from the PyTorch *CPU* index (see pyproject.toml).
@@ -30,6 +33,9 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
args:
# 大陆默认经 DaoCloud若拉取失败可 export PYTHON_BASE_IMAGE=docker.io/library/python:3.13-slim-bookworm 后 build
PYTHON_BASE_IMAGE: ${PYTHON_BASE_IMAGE:-m.daocloud.io/docker.io/library/python:3.13-slim-bookworm}
environment: environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres} POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD}