coolify icon indicating copy to clipboard operation
coolify copied to clipboard

Adds basic support for pre/post-deployment commands.

Open stooit opened this issue 1 year ago • 1 comments

Runs a given command (or script) in a named container on applications after a deployment has completed. Largely replaces the need for custom entrypoints.

Also adds support for running pre-deployment commands to run in the existing container prior to new ones spinning up.

Some notes:

  • Applications only, no services support
  • Applications that do not support rolling deployments with health checks (e.g docker compose) may not be healthy, script/command would need to account for that
Screenshot 2024-02-08 at 8 03 37 PM Screenshot 2024-02-08 at 7 25 32 PM

stooit avatar Feb 08 '24 09:02 stooit

Nice! This also might help with https://github.com/coollabsio/coolify/issues/1688#issue-2105964566

RayBB avatar Feb 08 '24 15:02 RayBB

I missed this feature. Also I can't wait merge this PR. @stooit have You idea how can testing this without merge PR ? I see that You have configured healthcheck. Can You share a screenshot your configuration cause I have same problem with this configuration.

kfranckiewicz avatar Feb 22 '24 22:02 kfranckiewicz

Huge! I will test it! Thank you!

andrasbacsai avatar Mar 13 '24 13:03 andrasbacsai