- Replace TLAS with License Authority throughout documentation - Add Government of Goa emblem/logo (Ashoka Chakra style) - Update frontend branding to match documentation - Add configurable Swagger API link via VITE_API_BASE_URL env var - Fix Docker build for VitePress (git dependency, .dockerignore) - Fix helmet security headers for HTTP deployments - Add CORS support for VM deployment Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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/license-authority.git
|
|
cd license-authority
|
|
|
|
# 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@license.gov.in
|
|
- Documentation: This guide
|