Skip to content

Commit aa4f664

Browse files
committed
Add deployment architecture documentation
1 parent fadda92 commit aa4f664

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

docs/deployment.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

0 commit comments

Comments
 (0)