From 0659e189685ca3479517c7dbea21b26843f8e516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E4=B8=AD=E6=B4=8B?= Date: Tue, 2 Jun 2026 02:36:09 +0800 Subject: [PATCH] =?UTF-8?q?build(compose):=20new-api=20=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E4=BB=8E=E6=9C=AC=E5=9C=B0=E6=BA=90=E7=A0=81=E6=9E=84=E5=BB=BA?= =?UTF-8?q?(build)=20+=20postgres=20=E6=9A=B4=E9=9C=B2=205433?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - new-api: image:calciumion → build:. (含 GOPROXY build-arg), 镜像 tag new-pai-linghe:local - postgres: 放开 5433:5432 端口(供 Z-Mini 概览页直连) - 去掉过时的 version 字段 Co-Authored-By: Claude Opus 4.8 (1M context) --- docker-compose.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index be8c885b..0ea9309c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,11 +12,13 @@ # # ⚠️ IMPORTANT: Change all default passwords before deploying to production! -version: '3.4' # For compatibility with older Docker versions - services: new-api: - image: calciumion/new-api:latest + build: + context: . + args: + GOPROXY: https://goproxy.cn,direct + image: new-pai-linghe:local container_name: new-api restart: always command: --log-dir /app/logs @@ -72,8 +74,8 @@ services: - pg_data:/var/lib/postgresql/data networks: - new-api-network -# ports: -# - "5432:5432" # Uncomment if you need to access PostgreSQL from outside Docker + ports: + - "5433:5432" # 对外暴露给 Z-Mini 概览页直连(host:5433 → 容器:5432) # mysql: # image: mysql:8.2