73 lines
1.3 KiB
Markdown
73 lines
1.3 KiB
Markdown
|
|
# Deployment Guide
|
||
|
|
|
||
|
|
## Deployment Options
|
||
|
|
|
||
|
|
| Method | Use Case | Complexity |
|
||
|
|
|--------|----------|------------|
|
||
|
|
| Docker Compose | Single server, development | Low |
|
||
|
|
| Kubernetes | Production, high availability | High |
|
||
|
|
| Manual | Custom requirements | Medium |
|
||
|
|
|
||
|
|
## Quick Deploy (Docker Compose)
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# Clone repository
|
||
|
|
git clone https://github.com/goa-gel/tlas.git
|
||
|
|
cd tlas
|
||
|
|
|
||
|
|
# Configure
|
||
|
|
cp .env.example .env
|
||
|
|
# Edit .env with your settings
|
||
|
|
|
||
|
|
# Deploy
|
||
|
|
docker-compose up -d
|
||
|
|
|
||
|
|
# Verify
|
||
|
|
docker-compose ps
|
||
|
|
curl http://localhost:3000/api/health
|
||
|
|
```
|
||
|
|
|
||
|
|
## Production Checklist
|
||
|
|
|
||
|
|
### Pre-deployment
|
||
|
|
|
||
|
|
- [ ] SSL certificates obtained
|
||
|
|
- [ ] Domain DNS configured
|
||
|
|
- [ ] Environment variables set
|
||
|
|
- [ ] Database credentials secured
|
||
|
|
- [ ] Backup strategy defined
|
||
|
|
|
||
|
|
### Deployment
|
||
|
|
|
||
|
|
- [ ] Services deployed
|
||
|
|
- [ ] Health checks passing
|
||
|
|
- [ ] SSL verified
|
||
|
|
- [ ] Firewall configured
|
||
|
|
|
||
|
|
### Post-deployment
|
||
|
|
|
||
|
|
- [ ] Monitoring configured
|
||
|
|
- [ ] Alerts verified
|
||
|
|
- [ ] Backup tested
|
||
|
|
- [ ] Documentation updated
|
||
|
|
|
||
|
|
## Rollback Procedure
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# Stop current version
|
||
|
|
docker-compose down
|
||
|
|
|
||
|
|
# Restore previous version
|
||
|
|
git checkout <previous-tag>
|
||
|
|
docker-compose up -d
|
||
|
|
|
||
|
|
# Verify
|
||
|
|
curl http://localhost:3000/api/health
|
||
|
|
```
|
||
|
|
|
||
|
|
## Support
|
||
|
|
|
||
|
|
For deployment assistance:
|
||
|
|
- Email: devops@tlas.gov.in
|
||
|
|
- Documentation: This guide
|