Skip to main content
Back to Lab Projects
Infrastructure Project

Docker Images Repository

Custom Docker images for Redis and Valkey databases with Sentinel configuration for high availability, automatic failover, and persistence features.

Date: May 29, 2025
Read Time: 8 min
Tags:
infrastructuredevopsdockerdatabasecaching

Docker Images Repository

Our Docker Images Repository is a comprehensive collection of custom-built, production-ready Docker images designed to power Raspiska Tech's infrastructure. These images are optimized for performance, security, and reliability, providing a solid foundation for our microservices architecture.

Architecture Overview

Docker Images Architecture

Key Features

Our Docker images repository provides several key features that enhance our infrastructure deployment and management:

  1. Optimized Base Images

    • Redis with Sentinel for high availability caching
    • Valkey (Redis-compatible alternative) with enhanced performance
    • PostgreSQL with custom configurations for optimal performance
  2. Service-Specific Images

    • Kong API Gateway with custom plugins and configurations
    • Keycloak Identity and Access Management solution
    • n8n workflow automation platform
  3. Monitoring & Observability Images

    • Prometheus for metrics collection and alerting
    • Grafana for visualization and dashboarding
    • Uptime Kuma for status monitoring

Redis with Sentinel

Redis with Sentinel Architecture

Our Redis with Sentinel Docker image provides a robust, high-availability solution for caching and in-memory data storage. The image includes:

  • Redis 7.x with AOF and RDB persistence
  • Redis Sentinel for automatic failover
  • Configurable memory limits and eviction policies
  • Password authentication and security features
  • Comprehensive health checks

Valkey with Sentinel

As an alternative to Redis, we also maintain a Valkey-based image with similar high-availability features. Valkey is a Redis-compatible fork that offers enhanced performance and additional features while maintaining full compatibility with Redis clients.

PostgreSQL Database

PostgreSQL Database Architecture

Our PostgreSQL Docker image is optimized for performance and security, featuring:

  • PostgreSQL 15 with custom configuration
  • PgBouncer for connection pooling
  • pgAdmin for web-based administration
  • Automated daily backups with configurable retention
  • Custom user accounts and role-based access control
  • Integration with Prometheus for monitoring

Kong API Gateway

Our Kong API Gateway image provides a powerful and flexible gateway for managing APIs, featuring:

  • High-performance API routing
  • Authentication and authorization plugins
  • Rate limiting and request transformation
  • Microservice routing and load balancing
  • Integration with Keycloak for identity management

Keycloak Identity and Access Management

The Keycloak image provides a complete identity and access management solution:

  • Single Sign-On (SSO) across all applications
  • User management and authentication
  • Social login and identity brokering
  • Multi-factor authentication
  • Role-based access control

Monitoring Stack

Monitoring Stack Architecture

Our monitoring stack includes:

  • Prometheus for metrics collection and storage
  • Grafana for visualization and dashboarding
  • Alertmanager for alert handling and notification
  • Various exporters for collecting metrics from different services

Deployment and Usage

Deploying our Docker images is straightforward using Docker Compose:

version: '3.8' services: redis: image: raspiska/redis-sentinel:latest environment: - REDIS_PASSWORD=secure_password - REDIS_MAXMEMORY=2gb - SENTINEL_QUORUM=2 ports: - "6379:6379" - "26379:26379" volumes: - redis_data:/data networks: - raspiska_network postgres: image: raspiska/postgresql:latest environment: - POSTGRES_PASSWORD=secure_password - POSTGRES_DB=app_database - PGBOUNCER_POOL_MODE=transaction ports: - "5432:5432" - "6432:6432" volumes: - postgres_data:/var/lib/postgresql/data networks: - raspiska_network prometheus: image: raspiska/prometheus:latest ports: - "9090:9090" volumes: - prometheus_data:/prometheus networks: - raspiska_network volumes: redis_data: postgres_data: prometheus_data: networks: raspiska_network: driver: bridge

Benefits

Using our custom Docker images provides several benefits:

  1. Consistency: Identical environments across development, testing, and production
  2. Security: Hardened images with security best practices applied
  3. Performance: Optimized configurations for maximum performance
  4. Reliability: High-availability setups with automated failover
  5. Maintainability: Centralized updates and patch management

Future Enhancements

We are continuously improving our Docker images with plans to add:

  1. Multi-architecture support (ARM64/AMD64)
  2. Enhanced security scanning and vulnerability patching
  3. Additional service images for our expanding infrastructure
  4. Automated testing and continuous integration pipelines
  5. Comprehensive documentation and usage examples

Technologies Used

Database

🔴Redis

DevOps & Cloud

🐳Docker

Other

🔹Valkey
🔹Sentinel
🔹High Availability

Have a project in mind?

Let's work together to bring your ideas to life. Our team of experts is ready to help you build something amazing.