Skip to content

Reference

Quick-lookup tables and commands for daily operations.

Complete Port Map

Application Services

Moduledevtestalphaproduct
app-prometheus33020180201902029020
support-email33030180301903029030
support-file33040180401904029040
support-schedule33050180501905029050
support-tron-wallet33060180601906029060
support-solana-wallet33070180701907029070
partner-slash33080180801908029080
partner-stripe33090180901909029090

Middleware

Servicedevtestalphaproduct
MySQL35306183061930629306
Redis35379183791937929379
RabbitMQ (AMQP)35672185721957229572
RabbitMQ (Management)35673186721967229672
MinIO (API)35000180001900029000
MinIO (Console)35001180011900129001

Container Naming Convention

slaunchx-{module}-{environment}
Container NameService
slaunchx-app-prometheus-testCore API (test)
slaunchx-support-email-testEmail service (test)
slaunchx-mysql-testMySQL (test)
slaunchx-redis-testRedis (test)
slaunchx-rabbitmq-testRabbitMQ (test)
slaunchx-minio-testMinIO (test)

Health Check Endpoints

ModuleHealth URL
app-prometheushttp://localhost:{port}/prometheus/actuator/health
support-emailhttp://localhost:{port}/email-service/actuator/health
support-filehttp://localhost:{port}/file-service/actuator/health
support-schedulehttp://localhost:{port}/schedule/actuator/health
partner-slashhttp://localhost:{port}/partner/channel/slash/actuator/health
partner-stripehttp://localhost:{port}/partner/channel/stripe/actuator/health
support-tron-wallethttp://localhost:{port}/actuator/health
support-solana-wallethttp://localhost:{port}/actuator/health

Docker Network

PropertyValue
Network nameslaunchx-intra
Subnet172.30.0.0/24
Gateway172.30.0.1
Driverbridge

File Path Reference

PathPurpose
/opt/slaunchx/config/{module}/{env}.envEnvironment variable files
/opt/slaunchx/scripts/Operational scripts (backup, health check)
/home/backups/mysql/MySQL database backups
/home/backups/redis/Redis RDB snapshots
/home/registry/data/Docker registry storage
/home/docker-data/Docker data root (images, containers, volumes)

Docker Volume Reference

VolumeContainerMount PointCritical?
mysql-test-dataslaunchx-mysql-test/var/lib/mysqlYes
redis-test-dataslaunchx-redis-test/dataYes
rabbitmq-test-dataslaunchx-rabbitmq-test/var/lib/rabbitmqNo (queues are transient)
minio-test-dataslaunchx-minio-test/dataYes
tron-wallet-test-dataslaunchx-support-tron-wallet-test/dataCritical (wallet keys)
solana-wallet-test-dataslaunchx-support-solana-wallet-test/dataCritical (wallet keys)

DANGER

Wallet volumes contain private keys. Losing these volumes means permanent loss of funds. Always back up wallet volumes before any destructive operation.

Command Cheat Sheet

Service Lifecycle

bash
# Start
docker start slaunchx-app-prometheus-test

# Stop
docker stop slaunchx-app-prometheus-test

# Restart
docker restart slaunchx-app-prometheus-test

# View logs
docker logs --tail 100 -f slaunchx-app-prometheus-test

# Enter container shell
docker exec -it slaunchx-app-prometheus-test bash

Bulk Operations

bash
# List all SlaunchX containers
docker ps -a --filter "name=slaunchx-" --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"

# Stop all SlaunchX containers
docker ps -q --filter "name=slaunchx-" | xargs -r docker stop

# Remove all stopped SlaunchX containers
docker ps -aq --filter "name=slaunchx-" --filter "status=exited" | xargs -r docker rm

Database

bash
# Connect to MySQL
docker exec -it slaunchx-mysql-test mysql -uslaunchx -p

# Run a query
docker exec -i slaunchx-mysql-test mysql -uslaunchx -p<password> slaunchx -e "SELECT COUNT(*) FROM account;"

# Check Flyway migration status
docker exec -i slaunchx-mysql-test mysql -uslaunchx -p<password> slaunchx \
  -e "SELECT version, description, success FROM flyway_schema_history ORDER BY installed_rank DESC LIMIT 5;"

Redis

bash
# Connect to Redis CLI
docker exec -it slaunchx-redis-test redis-cli -a <password>

# Check memory usage
docker exec -it slaunchx-redis-test redis-cli -a <password> INFO memory | grep used_memory_human

# Check connected clients
docker exec -it slaunchx-redis-test redis-cli -a <password> INFO clients | grep connected_clients

RabbitMQ

bash
# List queues with message counts
curl -s -u slaunchx:<password> http://localhost:18672/api/queues | \
  python3 -c "import sys,json; [print(f'{q[\"name\"]}: {q[\"messages\"]}') for q in json.load(sys.stdin)]"

# Check connections
curl -s -u slaunchx:<password> http://localhost:18672/api/connections | \
  python3 -c "import sys,json; print(f'{len(json.load(sys.stdin))} connections')"

Disk & Resources

bash
# Docker disk usage
docker system df

# Per-container resource usage
docker stats --no-stream --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}" \
  $(docker ps -q --filter "name=slaunchx-")

Internal Handbook