File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## Deployment Architecture
2+
3+ Application is deployed on an Azure Virtual Machine using Docker.
4+
5+ Two environments are maintained on the same VM:
6+
7+ - Staging → Container running on port 8001 (develop branch)
8+ - Production → Container running on port 8000 (main branch)
9+
10+ Nginx reverse proxy routes traffic to appropriate containers.
11+
12+ ### Environment Variable Management
13+
14+ Sensitive values are not stored in the repository.
15+
16+ They are managed using:
17+
18+ - GitHub Secrets for CI/CD authentication
19+ - Environment variables inside Docker runtime
20+ - Azure Key Vault can be used in real production
21+
22+ ### Rollback Strategy
23+
24+ If deployment fails:
25+
26+ - Previous commit can be reverted
27+ - Older Docker image can be redeployed
28+ - Container can be restarted with previous tag
29+ - GitHub Actions workflow can be re-run
You can’t perform that action at this time.
0 commit comments