-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment Guide
Altug Tatlisu edited this page Dec 6, 2025
·
1 revision
- Update credentials:
# Edit .env file
DATABASE_URL=postgresql://user:CHANGE_THIS@postgres:5432/ecash_db
REDIS_URL=redis://:CHANGE_THIS@redis:6379- Deploy:
docker-compose -f docker-compose.yml up -d- Verify:
docker-compose ps
docker-compose logs -f ecash-server# Scale API servers
docker-compose up -d --scale ecash-server=3
# Nginx automatically load balances- Kubernetes cluster 1.25+
-
kubectlconfigured
# Create namespace
kubectl create namespace ecash
# Apply manifests
kubectl apply -f deployment/kubernetes/
# Verify
kubectl get pods -n ecash
kubectl get services -n ecashkubectl scale deployment ecash-server --replicas=5 -n ecashkubectl logs -f deployment/ecash-server -n ecash
kubectl top pods -n ecash# PostgreSQL
createdb ecash_db
createuser ecash_user -P
psql ecash_db < crates/ecash-server/schema.sql
# Redis
redis-server --requirepass your_passwordcargo build --release -p ecash-server
./target/release/ecash-serverexport DATABASE_URL=postgresql://ecash_user:pass@localhost:5432/ecash_db
export REDIS_URL=redis://:pass@localhost:6379
export SERVER_PORT=8080- Change default passwords
- Enable TLS/HTTPS
- Configure firewall rules
- Set up monitoring
- Enable audit logging
- Configure automated backups
- Review rate limits
- Test disaster recovery