-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Nest.jsStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programbackendNew feature or requestNew feature or request
Description
📌 Overview
A standardized production environment simplifies deployment, ensures consistency across machines, and makes it easier for contributors to run GasGuard locally or in production. Containerization reduces dependency issues and streamlines CI/CD workflows.
This task introduces a Dockerized Production Deployment Setup for GasGuard, providing production-ready containers and clear deployment instructions.
🎯 Objective
Build a system that:
- Packages GasGuard backend, worker services, and optional dashboard into Docker containers
- Supports environment configuration for production, staging, and local testing
- Enables easy deployment using Docker Compose or Kubernetes
- Ensures repeatable, consistent, and isolated environments for all contributors and production instances
🛠 Scope of Work
1️⃣ Docker Containerization
-
Create Dockerfiles for each service:
- Backend API
- Queue workers (BullMQ)
- Database initialization (PostgreSQL or relevant DB)
- Optional front-end dashboard
-
Optimize images for:
- Small size
- Fast startup
- Production-level performance
2️⃣ Docker Compose Setup
-
Provide
docker-compose.ymlfor local and production setups:- Services: backend, workers, Redis, DB
- Networking between containers
- Environment variable configuration
- Volume mapping for persistent storage
-
Example services:
services:
backend:
build: ./backend
ports:
- "8080:8080"
environment:
NODE_ENV: production
DB_HOST: db
depends_on:
- db
db:
image: postgres:15
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:7
volumes:
pgdata:Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Nest.jsStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programbackendNew feature or requestNew feature or request