Feature Request: Automatically start stopped database services before backup restore
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 37.4k
- Forks
- 3k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 73
Description
What problem will this feature address?
Description
When restoring a database backup, Dokploy currently requires the database container to already be running.
If the container is stopped, the restore process fails because the restore command only searches for running containers.
As a result, the restore fails with a generic Command execution failed error, which does not clearly indicate that the database service is simply stopped.
Describe the solution you'd like
Proposed functionality
Before executing a restore, Dokploy should:
- Check whether the database service is running.
- If it is stopped, start the service automatically.
- Wait until the database is ready to accept connections.
- Execute the restore.
- Display clear progress and error messages during the process.
Describe alternatives you've considered
Suggested workflow
Restore requested
↓
Check database service status
↓
Is the service running?
↓
No → Start service
↓
Wait for database readiness
↓
Execute restore
↓
Display result
Additional context
No response
Will you send a PR to implement it?
No
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the restore command and the database service lifecycle handling; the payload does not name specific files or tests. Trace how stopped database containers are discovered and how restore commands are executed. Done means a stopped service is started, readiness is awaited, restore proceeds, and progress or failure messages clearly describe each stage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, typescript
- Domain
- backend, database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100