How 217heidai/grass-desktop-node works
Main Components
a) Container Layer:
• Docker Container (primary boundary)
• Volume Mount (/config)
• Network Interface (host network or port mapping)
b) Application Components:
• Grass Desktop Node Application
• Web Interface (port 5800)
• Configuration Storage
c) External Interactions:
• Grass Network Connection
• User's Browser Access
• Host System Resources
[External Layer]
• User's Browser
• Grass Network
[Container Layer]
• Docker Container Configuration
• Network Modes (host/bridged)
[Application Layer]
• Grass Desktop Node
• Web Interface
• Persistent Storage
Key Elements to Highlight
• Two alternative network configurations:
• Host network mode (--network host)
• Port mapping mode (-p 5800:5800)
• Web interface connection on port 5800
• Environment variables (USER_ID, GROUP_ID, WEB_LISTENING_PORT)
Connection Flows
• User browser → Web Interface (port 5800)
• Container → Grass Network
• Container → Volume Mount
• Environment Variables → Container Configuration
Additional Details
• Container configuration options
• Network mode differences
• Volume mount purpose
• Environment variables