Enhancement Proposal: Transition Standalone Databases to Declarative Compose Setup #5742
Megajin
started this conversation in
Improvement Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I’d like to propose an improvement regarding the handling of standalone database installations in Coolify.
While reviewing the source code, I came across the
standalone-phpandaction.phpfiles. During my testing, I encountered several issues related to database instances — including, but not limited to, #5450, #4911, and #4519. Additionally, toggling the SSL option (enable → disable → re-enable) does not seem to have any effect unless the container is manually recreated.This isn’t meant to be a bug report, but rather a discussion around architecture and usability. Currently, the PHP backend logic is responsible for generating
docker-compose.ymlfiles, managing reverse proxy settings, and handling init scripts. While functional, this setup introduces several limitations:Proposal:
Shift away from dynamic PHP-based container orchestration and instead move to static, customizable
docker-compose.ymltemplates for each supported database. This approach has several advantages:compose.yml.docker-compose.ymldefinitions, so this would bring the architecture in line.As a workaround, I currently rename the original database binary (in this case PostgreSQL), insert a custom wrapper script to fix permissions, and then start the actual process. While effective, this is not an ideal long-term solution.
I believe adopting static compose definitions for standalone databases would improve maintainability, transparency, and user experience — especially for teams running Coolify in production environments.
Happy to hear your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions