feat(docker): 添加 mining-wallet-service 到 docker-compose.2.0.yml
- 添加 mining-wallet-service 服务配置 - 端口: 3025 - 数据库: rwa_mining_wallet - Redis DB: 15 - KAVA 区块链配置 - 更新所有服务的 healthcheck 路径为 /api/v2/health - mining-service - trading-service - mining-admin-service Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
83a2800941
commit
978dfcb2bf
|
|
@ -79,7 +79,7 @@ services:
|
|||
ports:
|
||||
- "3021:3021"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3021/api/v1/health"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3021/api/v2/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
|
@ -111,7 +111,7 @@ services:
|
|||
ports:
|
||||
- "3022:3022"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3022/api/v1/health"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3022/api/v2/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
|
@ -153,7 +153,7 @@ services:
|
|||
ports:
|
||||
- "3023:3023"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3023/api/v1/health"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3023/api/v2/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
|
@ -204,6 +204,41 @@ services:
|
|||
networks:
|
||||
- rwa-network
|
||||
|
||||
mining-wallet-service:
|
||||
build:
|
||||
context: ./mining-wallet-service
|
||||
dockerfile: Dockerfile
|
||||
container_name: rwa-mining-wallet-service
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
TZ: Asia/Shanghai
|
||||
PORT: 3025
|
||||
# PostgreSQL - 使用独立的数据库
|
||||
DATABASE_URL: postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/rwa_mining_wallet?schema=public
|
||||
# Redis - 使用 DB 15 隔离
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: 6379
|
||||
REDIS_PASSWORD: ${REDIS_PASSWORD:-}
|
||||
REDIS_DB: 15
|
||||
# Kafka
|
||||
KAFKA_BROKERS: kafka:29092
|
||||
# JWT 配置
|
||||
JWT_SECRET: ${JWT_SECRET:-your-jwt-secret-change-in-production}
|
||||
# KAVA 区块链配置
|
||||
KAVA_RPC_URL: ${KAVA_RPC_URL:-https://evm.kava.io}
|
||||
KAVA_CHAIN_ID: ${KAVA_CHAIN_ID:-2222}
|
||||
ports:
|
||||
- "3025:3025"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3025/api/v2/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- rwa-network
|
||||
|
||||
# ===========================================================================
|
||||
# Frontend Services (2.0)
|
||||
# ===========================================================================
|
||||
|
|
|
|||
Loading…
Reference in New Issue