update
This commit is contained in:
parent
2014daee67
commit
07b24c1f31
|
|
@ -6,6 +6,7 @@
|
|||
from functools import lru_cache
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
from urllib.parse import quote_plus
|
||||
|
||||
from pydantic import AliasChoices, Field, model_validator
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
|
@ -151,7 +152,8 @@ class Settings(BaseSettings):
|
|||
@property
|
||||
def db_uri_psycopg(self) -> str:
|
||||
"""获取数据库连接 URI(psycopg 格式,用于 checkpointer)"""
|
||||
return f"postgresql://{self.db_user}:{self.db_password}@{self.db_host}:{self.db_port}/{self.db_name}?sslmode=disable"
|
||||
encoded_password = quote_plus(self.db_password)
|
||||
return f"postgresql://{self.db_user}:{encoded_password}@{self.db_host}:{self.db_port}/{self.db_name}?sslmode=disable"
|
||||
|
||||
@property
|
||||
def api_address(self) -> str:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
services:
|
||||
huoyan-enterprise-backend:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: registry.cn-hangzhou.aliyuncs.com/qing358/zlsj-huoyan-enterprise-backend-viersin:${ENTERPRISE_BACKEND_VERSION:-latest}
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "7862:7862"
|
||||
restart: unless-stopped
|
||||
Loading…
Reference in New Issue