build(compose): new-api 改为从本地源码构建(build) + postgres 暴露 5433

- 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) <noreply@anthropic.com>
This commit is contained in:
2026-06-02 02:36:09 +08:00
parent ceb8d26cee
commit 0659e18968

View File

@@ -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