Skip to content

Open Source Alternative to Vercel, Netlify and Heroku.

License

Notifications You must be signed in to change notification settings

ivanpadavan/dokploy-patches

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5,165 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dokploy Patches Functiona;ty

Patches — a powerful way to customize your deployments without maintaining complex forks.

How It Works

Patches allow you to modify any file in your repository just before deployment. These changes are applied on the fly, meaning you can pull updates from the upstream repository while keeping your custom configurations intact.

Key Benefits

  • Persistent Customization: Your changes survive repository updates.
  • Safety: If a patch cannot be applied (e.g., the file changed significantly), the deployment fails.
  • Ease of Use: Edit files directly in the browser with a familiar interface.

Example

Suppose you need to adjust configuration values, such as removing default resource limits which might be too restrictive for your environment.

  1. Create a Patch: Navigate to the "Patches" tab and select the file you want to modify.

Example Patch 2. Make Changes: Simply select the lines you want to remove or modify directly in the editor.

Example Patch

  1. Save: The system automatically generates a patch file. Just like that, your custom configuration is ready and will be applied on every future deployment.

Example Patch

Self-Hosted Deployment Strategy

This repository includes a custom CI/CD pipeline to automatically build and publish a patched version of Dokploy.

1. Migrating to Patched Version

To switch your existing self-hosted Dokploy instance to use this patched version, you need to update the Docker Swarm service to use the new image.

  1. Find the latest release in the GitHub Releases of this repository (e.g., v0.26.7).

  2. Update the service on your host machine:

    docker service update --image ghcr.io/ivanpadavan/dokploy-patches:<tag> dokploy_dokploy

    Replace <tag> with the actual release tag.

2. Update Strategy

When a new version of Dokploy is released upstream:

  1. Check GitHub Releases: Verify that the automated workflow has built and released the corresponding version in this repository (e.g., matching v0.26.8).
  2. Update Dokploy to the official version:
    • This ensures standard migrations are applied first. Be aware of potential update caveats: Dokploy Issue #3532
  3. Switch to the patched version: Follow the steps in section #1 to replace the official image with your custom patched image.

3. ATTENTION

  • Simplified Build: The build process in this repository uses a direct docker buildx command via a patched script, rather than the complex matrix strategy found in the official dokploy.yml.
    • Note: This means some platform-specific optimizations or advanced build arguments present in the official pipeline might be skipped. However, for standard deployments (amd64/arm64), this is fully functional.
  • Future Migration: Because this is a custom build, moving back to the official image or handling major version upgrades might require manual intervention (e.g., checking for database schema compatibility).
    • Rest assured: The project structure is not overly complex, so any migration issues are typically straightforward to resolve.

About

Open Source Alternative to Vercel, Netlify and Heroku.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • TypeScript 98.8%
  • Other 1.2%