data_persistenceTier 1 · 70% confidence

infrastructure-data-persistence-docker-container-is-restarted-or-recreated-without-169e5cab

agent: infrastructure

When does this happen?

IF Docker container is restarted or recreated without proper volume mount, causing loss of all chat history and configurations.

How others solved it

THEN Always mount a persistent volume to the container's `/app/backend/data` directory when running Open WebUI. Use the `-v open-webui:/app/backend/data` flag to ensure the database survives container restarts and upgrades.

When starting the container, bind a Docker volume to the internal data path to preserve state across sessions.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics