TSM Quick Deploy
Quick deployment guide for RAILWISE-TSM total station automated monitoring platform, covering server preparation, Docker deployment, and initial configuration.
TSM Quick Deploy
Section titled “TSM Quick Deploy”Overview
Section titled “Overview”RAILWISE-TSM is a total station automated deformation monitoring platform based on Next.js / NestJS / Rust / WASM. It supports automated monitoring scenarios for deep foundation pits, shield tunnels, bridges, and slopes.
Server Requirements
Section titled “Server Requirements”| Configuration | Minimum | Recommended |
|---|---|---|
| CPU | 4 cores | 8 cores+ |
| Memory | 8GB | 16GB+ |
| Disk | 100GB SSD | 500GB SSD+ |
| Network | 10Mbps | 100Mbps+ |
| OS | Ubuntu 20.04 | Ubuntu 22.04 LTS |
Deployment Steps
Section titled “Deployment Steps”Step 1: Server Preparation
Section titled “Step 1: Server Preparation”Update the system:
sudo apt update && sudo apt upgrade -yInstall basic tools:
sudo apt install -y curl wget git vim htopStep 2: Install Docker
Section titled “Step 2: Install Docker”curl -fsSL https://get.docker.com | shsudo usermod -aG docker $USERInstall Docker Compose:
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-composesudo chmod +x /usr/local/bin/docker-composeVerify installation:
docker --versiondocker-compose --versionStep 3: Download TSM Deployment Package
Section titled “Step 3: Download TSM Deployment Package”mkdir -p /opt/railwise-tsmcd /opt/railwise-tsmwget https://www.railwise.cn/downloads/tsm/tsm-server-3.0.0.tar.gztar -xzf tsm-server-3.0.0.tar.gzView deployment files:
ls -la# Expected output: docker-compose.yml config/ scripts/Step 4: Configure Environment
Section titled “Step 4: Configure Environment”Edit the environment configuration file:
vim .envKey configuration parameters:
# Database ConfigurationDB_HOST=postgresDB_PORT=5432DB_NAME=tsm_dbDB_USER=tsm_userDB_PASSWORD=your_secure_password
# Service ConfigurationSERVER_PORT=8080SERVER_HOST=0.0.0.0
# Storage ConfigurationDATA_PATH=/opt/railwise-tsm/dataLOG_PATH=/opt/railwise-tsm/logs
# Security ConfigurationJWT_SECRET=your_jwt_secret_keyAPI_KEY=your_api_keyBe sure to change the default password and key. Use strong password policies. Limit database access permissions. Configure firewall rules.
Step 5: Start Services
Section titled “Step 5: Start Services”docker-compose up -dView service status:
docker-compose psView logs:
docker-compose logs -f tsm-serverStep 6: Initialize Database
Section titled “Step 6: Initialize Database”docker-compose exec tsm-server npm run db:migratedocker-compose exec tsm-server npm run db:seedCreate administrator account:
docker-compose exec tsm-server npm run create:admin -- --username admin --password your_passwordStep 7: Verify Deployment
Section titled “Step 7: Verify Deployment”Access the TSM Web interface:
http://your-server-ip:8080Verify API interface:
curl http://your-server-ip:8080/api/v1/healthNext Steps
Section titled “Next Steps”- TSM Station Configuration — Configure monitoring stations and instruments
- TSM Data Acquisition — Configure data acquisition plans
- TSM Monitoring Project Management — Create and manage monitoring projects
RailWise · Smart Monitoring — Engineering Surveying and Safety Monitoring Digital Solutions
