diff --git a/backend/services/docker-compose.2.0.yml b/backend/services/docker-compose.2.0.yml index c46778a4..d33db7b2 100644 --- a/backend/services/docker-compose.2.0.yml +++ b/backend/services/docker-compose.2.0.yml @@ -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) # ===========================================================================