This directory contains deployment scripts for NetMirror Looking Glass servers.
Manual agent deployment script for advanced users.
./deploy-agent.sh \
--master http://panel-ip:3000 \
--token YOUR_TOKEN \
--name "Tokyo Agent" \
--location "Tokyo, JP" \
--port 3000Parameters:
| Parameter | Description | Required | Default |
|---|---|---|---|
--master |
Panel URL | Yes | - |
--token |
Registration token | Yes | - |
--name |
Node display name | No | Agent Node |
--location |
Node location | No | Unknown |
--port |
HTTP port | No | 3000 |
--url |
Custom public URL | No | Auto-detected |
--image |
Docker image | No | soyorins/netmirror-agent:latest |
--dir |
Deployment directory | No | ./netmirror-agent |
Installs required system tools (mtr, traceroute, etc.) in the container.
Installs the official Speedtest CLI in the container.
Use the Panel's token-based deployment instead of manual scripts:
- Access the Panel admin interface
- Create a deployment token with node name and location
- Copy the generated install script
- Run on target server
The generated script handles everything automatically:
- Docker installation
- External IP detection
- Container setup
- Registration with panel
| Image | Description |
|---|---|
soyorins/netmirror-panel |
Full panel with web UI |
soyorins/netmirror-agent |
API-only agent (smaller) |
# Check logs
docker logs netmirror-agent-3000
# Check if port is available
netstat -tlnp | grep 3000# Test panel connectivity
curl http://panel-ip:3000/
# Verify token
curl -X POST http://panel-ip:3000/api/register \
-H "Content-Type: application/json" \
-d '{"token":"YOUR_TOKEN","url":"http://agent-ip:3000"}'sudo usermod -aG docker $USER
# Then logout and login again