Dokploy / Dokploy/dokploy

Feature Request: Automatically start stopped database services before backup restore

Open
#4,895 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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:

  1. Check whether the database service is running.
  2. If it is stopped, start the service automatically.
  3. Wait until the database is ready to accept connections.
  4. Execute the restore.
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.