Skip to content

DB wipe after possible automatic Docker path update #3883

@ciscoheat

Description

@ciscoheat

To Reproduce

I had a Postgres DB that yesterday got wiped out after some update that is possibly related to #3017. Note: I'm using Dokploy Cloud, so I haven't done any updates on the Dokploy platform.

What I did was upgrading packages with apt, and the kernel, so a reboot was needed, after that the DB was just gone. I looked at the application in Dokploy, and what I found on the Advanced tab was that the docker image was docker:18 and the volume path /var/lib/postgresql/18/docker. I have used Postgres 17 and have not updated or changed anything there.

So what I wonder is if the aforementioned issue, or something else, auto-updated the Postgres application so it just cleaned out the DB after reboot. Fortunately I had backups (all labeled 17.3, so I know it was version 17 before this happened), so I created a new Postgres instance and restored to there, but it still took many hours to figure out what had happened, and of course the uncertainty of if it will happen again. For example, how to ensure certain data like the database is always left on the drive, even if something like this happens with Docker?

Current vs. Expected behavior

I expect of course the package and volume path not to change automatically! Also note that I tried to set the Docker image in advanced to postgres:18.3, but when saving and deploying, Dokploy reset it back to just postgres:18.

Provide environment information

OS: Ubuntu 24.04 LTS
VPS Provider: Hostinger
Application: Postgres database

Which area(s) are affected? (Select all that apply)

Databases

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

Remote server

Additional context

No response

Will you send a PR to fix it?

Maybe, need help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions