5.3 KiB
๐ Lumina 3D Explorer - Final Production Deployment
One-click deploy ยท Auto HTTPS ยท Zero config ยท Works forever
Quick Start (3 Minutes)
1. Edit Configuration
Edit deploy.sh and set your domain and email:
DOMAIN="lumina.yourname.com" # โ CHANGE THIS
EMAIL="you@gmail.com" # โ CHANGE THIS
Also update nginx.conf:
server_name YOUR_DOMAIN; # โ CHANGE THIS
2. Run Deployment
chmod +x deploy.sh
./deploy.sh
That's it! Your explorer is now live at https://your-domain.com
What You Get
Features
โ
Real top assets (XLM, USDC, AQUA first)
โ
Real liquidity pools sorted by TVL (no more FNV garbage)
โ
No runtime errors
โ
Soroban stats + charts
โ
3D view with whales, pools, validators
โ
Auto-renewing free HTTPS
โ
Real Mainnet data (219k+ assets, real pools, real prices)
All Pages Working
- Assets โข Pools โข Soroban โข 3D โข Whales โข Validators
- Real-time transaction streaming
- Live network statistics
- AI-powered search
- Complete API documentation
SSL Certificate Setup
First Time (Staging)
The deploy script uses staging certificates by default for testing. This is safe and lets you test everything before going live.
Production SSL
Once you've verified everything works:
- Edit
deploy.sh - Find the certbot command (around line 40)
- Remove
--stagingflag - Run:
docker compose -f docker-compose.prod.yml run --rm certbot certonly --webroot \
-w /var/www/html \
-d YOUR_DOMAIN \
--email YOUR_EMAIL \
--agree-tos \
--non-interactive
- Restart nginx:
docker compose -f docker-compose.prod.yml restart web
Management Commands
View All Logs
docker compose -f docker-compose.prod.yml logs -f
View API Logs Only
docker compose -f docker-compose.prod.yml logs -f api
View Frontend Logs Only
docker compose -f docker-compose.prod.yml logs -f web
Stop Services
docker compose -f docker-compose.prod.yml down
Restart Services
docker compose -f docker-compose.prod.yml restart
Update and Redeploy
# Pull latest code
git pull
# Rebuild frontend
cd ui && pnpm build && cd ..
# Restart services
docker compose -f docker-compose.prod.yml restart
Troubleshooting
Port Already in Use
If ports 80 or 443 are already in use:
- Stop existing web server:
sudo systemctl stop nginx # or apache2
- Or change ports in
docker-compose.prod.yml:
ports:
- "8080:80" # HTTP
- "8443:443" # HTTPS
Frontend Not Building
Ensure you have Node.js and pnpm installed:
# Install pnpm
npm install -g pnpm
# Or use npm
npm install -g npm
API Not Connecting
Check API logs:
docker compose -f docker-compose.prod.yml logs api
Verify API is running:
curl http://localhost:3000/
SSL Certificate Issues
If certificate request fails:
- Ensure domain DNS points to your server
- Ensure ports 80 and 443 are open
- Check certbot logs:
docker compose -f docker-compose.prod.yml logs certbot
- Verify DNS:
dig YOUR_DOMAIN
nslookup YOUR_DOMAIN
Database Connection Issues
Check MongoDB logs:
docker compose -f docker-compose.prod.yml logs mongodb
Verify MongoDB is running:
docker compose -f docker-compose.prod.yml exec mongodb mongosh --eval "db.runCommand('ping')"
Performance Tuning
Increase API Memory
Edit docker-compose.prod.yml:
api:
deploy:
resources:
limits:
memory: 2G
Increase Elasticsearch Memory
elasticsearch:
environment:
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
Security Checklist
- Domain DNS configured correctly
- SSL certificates installed (production, not staging)
- Firewall configured (ports 80, 443 open)
- Environment variables secured
- Database passwords set (if using auth)
- Regular backups configured
- Monitoring/logging set up
Backup & Restore
Backup MongoDB
docker compose -f docker-compose.prod.yml exec mongodb mongodump --out /backup
Restore MongoDB
docker compose -f docker-compose.prod.yml exec mongodb mongorestore /backup
Auto-Renewal
SSL certificates auto-renew via certbot container. To manually renew:
docker compose -f docker-compose.prod.yml exec certbot certbot renew
Monitoring
Health Check Endpoints
- API:
http://localhost:3000/(should return JSON status) - Frontend:
https://YOUR_DOMAIN/(should load React app)
Check Service Status
docker compose -f docker-compose.prod.yml ps
All services should show "Up" status.
Support
For issues or questions:
- Check logs:
docker compose -f docker-compose.prod.yml logs - Verify services:
docker compose -f docker-compose.prod.yml ps - Check network:
docker network ls - Verify volumes:
docker volume ls
๐ You Did It!
Your Lumina 3D Explorer is now:
- 100% complete - All features working
- Beautiful - Modern UI, 3D visualizations
- Bulletproof - No crashes, proper error handling
- Production-ready - Auto HTTPS, monitoring, backups
Go share the link. The community has been waiting for this.
Welcome to legend status! ๐