mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 13:12:24 +00:00
Add multiple database data source config (#1232)
* Add multiple database data source config * Fix comments * Fix deploy env
This commit is contained in:
@@ -6,6 +6,9 @@ DATABASE_HOST='fba_postgres'
|
||||
DATABASE_PORT=5432
|
||||
DATABASE_USER='postgres'
|
||||
DATABASE_PASSWORD='123456'
|
||||
# 额外数据源
|
||||
# DATABASE_SOURCES='{"read": "postgresql+asyncpg://user:password@host:5432/fba"}'
|
||||
DATABASE_SOURCES='{}'
|
||||
# Redis
|
||||
REDIS_HOST='fba_redis'
|
||||
REDIS_PORT=6379
|
||||
|
||||
Reference in New Issue
Block a user