Self-deployment Tutorial 2 (Containerized)
Using RainYun Cloud App
Section titled “Using RainYun Cloud App”- Log in to the RainYun Cloud App console, click Create App, find the EasyTier app in the App Store, click Deploy, select the latest web version, adjust other options as needed (defaults are generally fine).

-
Wait for the installation to complete, then enter the app’s console.
-
In the console terminal, enter the EasyTier startup command and parameters to start the node.
When acting as a public node, you can start without parameters (default listening on port 11010). To specify protocols and ports, use the following parameters:
# Multiple ports or protocols require separate specificationseasytier-core --listeners tcp://0.0.0.0:11010 --listeners xxxxxxIf you want the server to only help establish P2P connections without forwarding data, enable relay RPC and the network whitelist. To forward traffic for specific networks, append the corresponding network name after the whitelist:
easytier-core --relay-all-peer-rpc --relay-network-whitelist xxxxxx- Based on the ports and protocols you opened, add the corresponding entries in the Services section.

Others can connect to your server node using the corresponding IP address and port.
- Optional: Add a scheduled task.
While the above method successfully runs the node, manually operating it every time the app restarts can be tedious. Therefore, you can add a scheduled task to auto-start the node.
- On the instance’s Scheduled Tasks page, click Add. Name the task as you like, and set the interval to about 30 minutes or 1 hour.

- Set the task type to Shell, select EasyTier as the application, and enter the following script:
#!/bin/bashPROCESS_NAME="easytier-core"# Full command to execute (replace with your actual command)FULL_COMMAND="easytier-core --listeners tcp://0.0.0.0:11010 --relay-all-peer-rpc --relay-network-whitelist xxxxxx......"
if pgrep -x "$PROCESS_NAME" > /dev/nullthen echo "$(date): $PROCESS_NAME is running, no action needed"else echo "$(date): $PROCESS_NAME is not running, starting..." nohup $FULL_COMMAND > /dev/null 2>&1 &
sleep 3 if pgrep -x "$PROCESS_NAME" > /dev/null then echo "$(date): $PROCESS_NAME started successfully" else echo "$(date): $PROCESS_NAME failed to start" exit 1 fifi
exit 0At this point, the public server node has been deployed successfully.
Deploying with Docker
Section titled “Deploying with Docker”To be updated