refactor: 启用 conf.UseEnv 并将 etc 配置统一为 env 占位
This commit is contained in:
+29
-3
@@ -3,18 +3,44 @@ PD_USERNAME=postgres
|
||||
DB_PASSWORD=123456
|
||||
DB_PORT=5432
|
||||
DB_NAME=app
|
||||
DB_URI=postgresql://postgres:123456@postgres:5432/app
|
||||
DB_HOST=postgres
|
||||
DB_HOST_RO=postgres
|
||||
|
||||
# Redis
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=
|
||||
REDIS_M_HOST=redis:6379
|
||||
REDIS_S_HOST=redis:6379
|
||||
|
||||
# Mongo (chat)
|
||||
MONGO_URI=mongodb://mongo:27017
|
||||
MONGO_DATABASE=juwan_chat
|
||||
|
||||
# Kafka
|
||||
KAFKA_BROKER=kafka:9092
|
||||
|
||||
# JWT
|
||||
JWT_SECRET_KEY=MGUyMWE3ZDhjMTQ5ZDg1MWViOWU0MGM3OTE2NWVkYTBlOTE5ZWRkZDU1YjYzOGJjOWRiNzM0NTc4NDIyMjlkZQ
|
||||
|
||||
# RPC targets (compose DNS)
|
||||
SNOWFLAKE_RPC_TARGET=snowflake:8080
|
||||
USER_RPC_TARGET=user-rpc:8080
|
||||
USER_VERIFICATIONS_RPC_TARGET=user-verifications-rpc:8080
|
||||
PLAYER_RPC_TARGET=player-rpc:8080
|
||||
GAME_RPC_TARGET=game-rpc:8080
|
||||
SHOP_RPC_TARGET=shop-rpc:8080
|
||||
ORDER_RPC_TARGET=order-rpc:8080
|
||||
WALLET_RPC_TARGET=wallet-rpc:8080
|
||||
COMMUNITY_RPC_TARGET=community-rpc:8080
|
||||
REVIEW_RPC_TARGET=review-rpc:8080
|
||||
DISPUTE_RPC_TARGET=dispute-rpc:8080
|
||||
NOTIFICATION_RPC_TARGET=notification-rpc:8080
|
||||
SEARCH_RPC_TARGET=search-rpc:8080
|
||||
OBJECTSTORY_RPC_TARGET=objectstory-rpc:8080
|
||||
|
||||
# Chat WebTransport TLS (dev self-signed; chat service reads OptionalValue with empty fallback)
|
||||
CHAT_WT_CERT_FILE=/etc/certs/tls.crt
|
||||
CHAT_WT_KEY_FILE=/etc/certs/tls.key
|
||||
|
||||
# Email (placeholder)
|
||||
EMAIL_SMTP_HOST=smtp.example.com
|
||||
EMAIL_SMTP_PORT=465
|
||||
|
||||
@@ -451,6 +451,7 @@ services:
|
||||
image: juwan/chat-api:dev
|
||||
container_name: juwan-chat-api
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
ports:
|
||||
- "18810:8888"
|
||||
- "18889:8889"
|
||||
|
||||
Reference in New Issue
Block a user