Skip to content

feat: add dev/prod deployment templates and workflow#38

Closed
shaikhhasib wants to merge 1 commit intomainfrom
feature/dev-prod-deployment
Closed

feat: add dev/prod deployment templates and workflow#38
shaikhhasib wants to merge 1 commit intomainfrom
feature/dev-prod-deployment

Conversation

@shaikhhasib
Copy link
Copy Markdown
Collaborator

Description

Added environment-specific config templates:
.env.dev.example
.env.prod.example

Added environment-specific Docker Compose definitions:
docker-compose.dev.yml for local/dev stack (db, redis, api, monitor, worker
docker-compose.prod.yml for runtime services (api, monitor, worker) using external DB/Redis from env file

Added CI/CD workflow draft:
deploy-dev-prod.yml
Builds and pushes a single immutable image to GHCR
Deploys to dev on main pushes
Deploys to prod on v* tags

Added deployment runbook:
DEPLOYMENT.md with deploy, migration, and rollback steps

Added inline workflow comments to explain deployment decisions and expected secrets.

Motivation

This change is required to separate development and production deployment paths while keeping one codebase.
It solves these problems:

   Dev and prod configuration were mixed/hardcoded in compose.
   No dedicated workflow existed for controlled promotion from dev to prod.
   Deployment steps and operational expectations were undocumented.

Design decisions:
Single image artifact for api/monitor/worker
Environment-specific runtime via .env.dev/.env.prod
Dev auto-deploy from main; prod deploy from release tags.

@shaikhhasib shaikhhasib requested a review from YektaY March 5, 2026 19:31
@YektaY
Copy link
Copy Markdown
Collaborator

YektaY commented Mar 13, 2026

Closing this PR, parts of this work was integrated into #39

@YektaY YektaY closed this Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants