refactor(container): simplify Redis pool initialization flow

- Remove redundant `$container` parameter in `RedisPoolInitializer` instantiation.
- Streamline container interactions for improved clarity and maintainability.
This commit is contained in:
2025-11-04 02:43:45 +01:00
parent 315b54a209
commit 12afbe874d
13 changed files with 1216 additions and 95 deletions

View File

@@ -0,0 +1,33 @@
# Shared PostgreSQL Connection Override for Production
#
# This file provides network configuration for connecting to the PostgreSQL Stack.
# Used by Production Stack.
#
# Usage:
# Production Stack:
# docker compose -f docker-compose.base.yml \
# -f docker-compose.production.yml \
# -f docker-compose.postgres-override.yml up
#
# Prerequisites:
# - PostgreSQL Stack must be running (creates app-internal network)
# - app-internal network must exist as external network
# - PostgreSQL Stack: deployment/stacks/postgresql/docker-compose.yml
services:
# Production Stack Services
# These services will be merged with existing definitions from base.yml + production.yml
php:
networks:
app-internal: {} # Add app-internal network for PostgreSQL access (merged with existing networks)
queue-worker:
networks:
app-internal: {} # Add app-internal network for PostgreSQL access (merged with existing networks)
scheduler:
networks:
app-internal: {} # Add app-internal network for PostgreSQL access
networks:
app-internal:
external: true
name: app-internal