update minio port

This commit is contained in:
Kevin
2026-05-22 10:03:10 +08:00
parent 62b14d7386
commit 2866fd3a1d
4 changed files with 8 additions and 8 deletions

View File

@@ -17,11 +17,11 @@ POSTGRES_PASSWORD=postgres
POSTGRES_DB=operation_room POSTGRES_DB=operation_room
# 以下两项供宿主机工具连库调试API 容器内使用 POSTGRES_HOST=db、POSTGRES_PORT=5432由 compose 注入)。 # 以下两项供宿主机工具连库调试API 容器内使用 POSTGRES_HOST=db、POSTGRES_PORT=5432由 compose 注入)。
POSTGRES_HOST=localhost POSTGRES_HOST=localhost
POSTGRES_PORT=35432 POSTGRES_PORT=45432
# 可选:整串 async DSN会覆盖与默认一致的 POSTGRES_* 组合时的逻辑,见 Settings # 可选:整串 async DSN会覆盖与默认一致的 POSTGRES_* 组合时的逻辑,见 Settings
# DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:35432/operation_room # DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:45432/operation_room
# 可选:映射 PostgreSQL 到宿主机端口(默认 35432仅 DBA/调试用途 # 可选:映射 PostgreSQL 到宿主机端口(默认 45432仅 DBA/调试用途
# DOCKER_POSTGRES_PUBLISH_PORT=35432 # DOCKER_POSTGRES_PUBLISH_PORT=45432
# --- HTTPAPI 对外端口)--- # --- HTTPAPI 对外端口)---
# 局域网语音确认终端 / Demo 客户端访问 API 时,填写 # 局域网语音确认终端 / Demo 客户端访问 API 时,填写

View File

@@ -128,7 +128,7 @@ class Settings(BaseSettings):
postgres_password: str = "postgres" postgres_password: str = "postgres"
postgres_db: str = "operation_room" postgres_db: str = "operation_room"
postgres_host: str = "localhost" postgres_host: str = "localhost"
postgres_port: int = 35432 postgres_port: int = 45432
server_host: str = "0.0.0.0" server_host: str = "0.0.0.0"
server_port: int = Field(default=38080, ge=1, le=65535) server_port: int = Field(default=38080, ge=1, le=65535)
@@ -229,7 +229,7 @@ class Settings(BaseSettings):
"postgres", "postgres",
"operation_room", "operation_room",
"localhost", "localhost",
35432, 45432,
) )
if component_values != default_component_values or not self.database_url: if component_values != default_component_values or not self.database_url:

View File

@@ -10,7 +10,7 @@ services:
POSTGRES_DB: ${POSTGRES_DB:-operation_room} POSTGRES_DB: ${POSTGRES_DB:-operation_room}
# Optional: publish PostgreSQL to host for DBA/debug tools (API connects via db:5432 inside compose). # Optional: publish PostgreSQL to host for DBA/debug tools (API connects via db:5432 inside compose).
ports: ports:
- "${DOCKER_POSTGRES_PUBLISH_PORT:-35432}:5432" - "${DOCKER_POSTGRES_PUBLISH_PORT:-${POSTGRES_PORT:-45432}}:5432"
volumes: volumes:
- pgdata:/var/lib/postgresql/data - pgdata:/var/lib/postgresql/data
restart: unless-stopped restart: unless-stopped

View File

@@ -15,7 +15,7 @@ operation-room-monitor/
| 组件 | 部署方式 | 默认端口 | | 组件 | 部署方式 | 默认端口 |
|------|----------|----------| |------|----------|----------|
| API + PostgreSQL + MinIO | `cd backend && docker compose up -d --build` | 38080 / 35432 / 19000 | | API + PostgreSQL + MinIO | `cd backend && docker compose up -d --build` | 38080 / 45432 / 19000 |
| Demo 客户端 | `clients/demo-client/start.sh` | 38081 | | Demo 客户端 | `clients/demo-client/start.sh` | 38081 |
| 语音确认页 | `clients/voice-confirmation/start.sh` | 8080 | | 语音确认页 | `clients/voice-confirmation/start.sh` | 8080 |