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