You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docker recommends merging files using multiple -f statements to promote modularity and reusability among compose specs. However, Dokploy's run customization can only append statements; it cannot prefix them.
Describe the solution you'd like
Ideally, we can either specify multiple -f <file> options under Compose Path, or to prepend these flags before the up portion of the compose command.
The former results in no configuration found errors on a compose build, and the latter is not supported currently.
Describe alternatives you've considered
See above.
Alternatively (and most flexibly), a shell script entrypoint defined in the project folder can also be set as an entrypoint to resolve all these issues. It would also help to provide runtime-generated variables like $PWD which are automatically present in a shell, but not when Dokploy is running the deployment.
Docker also allows for the COMPOSE_FILE variable to dictate multiple overrides, but it is unclear whether this option is respected by Dokploy. It also doesn't show as extended/overridden services in the previewed compose file.
Less flexibly, a single docker-compose-custom.yml file can consist of these lines:
This works from the normal command line, but Dokploy raises an error since it can't find a named domain-mapped service (e.g. if you specify that frontend has a port of 5000 in Dokploy's Domains tab, the error will show if you include files like this)
Will you send a PR to implement it?
Maybe, need help
The text was updated successfully, but these errors were encountered:
What problem will this feature address?
Docker recommends merging files using multiple
-f
statements to promote modularity and reusability among compose specs. However, Dokploy's run customization can only append statements; it cannot prefix them.Describe the solution you'd like
Ideally, we can either specify multiple
-f <file>
options underCompose Path
, or to prepend these flags before theup
portion of the compose command.The former results in
no configuration found
errors on a compose build, and the latter is not supported currently.Describe alternatives you've considered
$PWD
which are automatically present in a shell, but not when Dokploy is running the deployment.COMPOSE_FILE
variable to dictate multiple overrides, but it is unclear whether this option is respected by Dokploy. It also doesn't show as extended/overridden services in the previewed compose file.docker-compose-custom.yml
file can consist of these lines:This works from the normal command line, but Dokploy raises an error since it can't find a named domain-mapped service (e.g. if you specify that
frontend
has a port of 5000 in Dokploy'sDomains
tab, the error will show if you include files like this)Will you send a PR to implement it?
Maybe, need help
The text was updated successfully, but these errors were encountered: