Dokploy / Dokploy/dokploy

[BUG] : Container restart when using compose services

Open
#5,397 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage🔍
Dominant language
TypeScript
Stars
37.4k
Forks
3k
Avg merge
1d 3h
Merged PRs (30d)
73

Description

To Reproduce
  1. Create a compose service using multiple containers. One service is an "init" container to setup a database for example and a main service with the restart always policy depends on the successful termination of this "init" service.
  2. Physically restart the server
  3. The main service is now offline and we need to retrigger a manual deployment to solve the issue.
Current vs. Expected behavior

The expected behaviors would be a restart of the physical server ensure that the deployments are running in the state they were running before the reboot.

Provide environment information
Dokploy Version v0.29.14
Debian 13
[Example of problematic deployment here](https://github.com/LouisPauchet/ThingsBoard_Dokploy_Deployment/blob/main/docker-compose.yml)
Which area(s) are affected? (Select all that apply)

Docker Compose

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix 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 with the linked docker-compose.yml and reproduce the deployment after physically rebooting the Debian server, focusing on the init-container dependency and restart policy. Trace the Docker Compose deployment startup path in Dokploy; done means the main service automatically returns to the pre-reboot running state without a manual redeployment.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.