---
title: "Discussion on \"PostgreSQL после переноса Docker Compose: база пустая, хотя YAML тот же\" | Hashnode"
description: "Discussion on \"PostgreSQL после переноса Docker Compose: база пустая, хотя YAML тот же\". Почему одинаковый compose.yaml создаёт новый том PostgreSQL. Реальный тест: две базы, pg_dump, проверка данных и перезапуск."
url: "https://hashnode.com/posts/postgresql-empty-after-docker-compose-migration/6b0be68732823c1355d49593"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [PostgreSQL после переноса Docker Compose: база пустая, хотя YAML тот же](https://motsell.hashnode.dev/postgresql-empty-after-docker-compose-migration?utm_source=hashnode&utm_medium=feed)

Почему одинаковый compose.yaml создаёт новый том PostgreSQL. Реальный тест: две базы, pg\_dump, проверка данных и перезапуск.

5d ago · 4 min read · motsell.hashnode.dev  
Read the article

-   [#docker-compose](https://hashnode.com/tag/docker-compose)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#docker-volume](https://hashnode.com/tag/docker-volume)

## Written by

[MOTSELL](https://hashnode.com/@motsell)

@motsell

  
[View profile](https://hashnode.com/@motsell)

Self-managed Linux VPS in Germany and Finland for web apps, APIs and bots. Technical notes from MOTSELL.

MOTSELL: self-managed Linux VPS in Germany and Finland for web apps, APIs and bots. We share reproducible deployment notes and state what was tested. Apps and backups remain the customer’s responsibility. Posts may use AI assistance. https://motsell.com/en/vps-vds?utm\_source=hashnode&amp;utm\_medium=community&amp;utm\_campaign=profile\_202611

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
