Skip to content

Conversation

phenix3443
Copy link

📋 Overview

Add complete Docker containerization deployment support for the Hyperliquid Node project, including Dockerfile, Docker Compose configuration, automation scripts, and configuration management.

🎯 Key Features

  • Docker Containerization: Complete Docker image building and deployment
  • Automated Management Scripts: run.sh provides complete service lifecycle management
  • Environment Configuration Management: config.env centrally manages all environment variables
  • Data Persistence: Uses Docker named volumes to ensure data security
  • Dual Network Support: Supports both Mainnet and Testnet deployment

📁 File Changes

🆕 New Files

  • Dockerfile - Main node container image definition
  • docker-compose.yml - Service orchestration configuration
  • script/run.sh - Service management script
  • script/startup.sh - Container startup script
  • script/init.sh - Container initialization script
  • script/config.env - Environment variable configuration
  • script/check_data.sh - Data checking script
  • plan.md - Deployment plan documentation

🚀 Usage

Quick Start

# Start service
./script/run.sh start

# Check status
./script/run.sh status

# View logs
./script/run.sh logs

# Stop service
./script/run.sh stop

Environment Configuration

Configure through script/config.env file:

# Network selection
HL_NETWORK=mainnet  # or testnet

# Data writing options
WRITE_TRADES=true
WRITE_FILLS=true
WRITE_ORDER_STATUSES=false
WRITE_MISC_EVENTS=true

# Service options
SERVE_ETH_RPC=true
SERVE_INFO=true

@phenix3443 phenix3443 marked this pull request as draft August 28, 2025 04:47
@phenix3443 phenix3443 marked this pull request as ready for review August 28, 2025 04:52
@phenix3443 phenix3443 marked this pull request as draft August 28, 2025 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant