Decoupling Postgres and Redis from Directus on Coolify: Only Two Real Reasons
A developer running Directus on a Coolify-managed VPS tested common assumptions about splitting Postgres and Redis into separate services instead of using a single bundled Docker Compose file. Most expected benefits of decoupling — such as independent restarts, backups, and scheduled tasks — turned out to already be available within Coolify's bundled Compose setup. Only two scenarios genuinely justify decoupling: Coolify does not support CPU and memory metrics for Docker Compose-based deployments, and a database defined inside one app's Compose file cannot be accessed by other applications due to Docker's private network defaults. For developers running a single application, the bundled single-Compose-file approach remains the recommended setup. Those needing cross-app database sharing or per-container metrics monitoring should create Postgres as a standalone resource from the outset.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in