Pulumi support
What problem will this feature address?
It would be nice if we could write Pulumi / Terraform code to describe a Dokploy configuration, and it would automatically sync with it, so we could really have "infrastructure as code", with the benefit of having the nice Dokploy UI for monitoring and to access containers when needed!
Perhaps Pulumi could target each Dokploy project, so we could have a Pulumi for "production", a Pulumi for "staging", and then use Dokploy "manually" in a "apps" project when we need ad-hoc stuff that we don't want to add in the Pulumi code?
Describe the solution you'd like
A way to script the Dokploy API through Pulumi
Describe alternatives you've considered
Do a script to run Dokploy CLI deploy commands, but that defeats the purpose, since the cool thing about Pulumi is that it "synchronizes" a "description of the infra", rather than doing "imperative commands"
Additional context
No response
Will you send a PR to implement it?
Yes
In addition to the IaaC, my biggest concern is the disaster recovery. In case my server crashes, how do I restore my database and everything else?
@dharmapurikar don't you use schedule backups feature?
@vsanasc - yes i do use the scheduled backup. My concern is - let us say I have couple of organizations and multiple projects within them. Each with their own backup schedule, the disaster process can be tricky.
- Restore dokploy backup to bring application back up.
- Then check the different applications and individually restore their state e.g. databases, application specific configurations.
- Some of the applications don't use database and have filesystem as backup e.g. bitwarden, minio.
So need a programmatic way to bring everything back up.
@dharmapurikar it would be a great feature but it looks way more complex than a database backup/restore. So, I think for you case the base solution is use a backup system outside the machine. I don't know each service you use, but for sure it has some snapshot system to backup everything. That one would be good an reliable than backup/restore a volumes.
But yeah, definitely it'd be great!
fwiw I've been working on a terraform provider on and off for a couple months.
Ended up doing something simpler in a business day via ~~https://github.com/pythoninthegrass/dokploy_seed~~ https://github.com/pythoninthegrass/icarus
Let me know what you think!
These past two weeks I've been working on Pulumi packages for Dokploy; Accidentally found this issue and thought I'd share the repo: https://github.com/dimeskigj/pulumi-dokploy.
I've already used it for some of my personal projects and even started moving some of my company's small internal projects. Would love some feedback and contributions :)
@dimeskigj @pythoninthegrass Thanks for your projects. I will personally review them. Started each one of them to follow your progress
You're welcome @narcisonunez ! It's a bit idiosyncratic to my personal/professional use cases but has been working well for months 👌