docker compose --remove-orphans удалил мне базы данных: как работает имя проекта в Compose
Archived This article has left the front pages. Originally published November 21, 2026 by Хабр. KioskNews no longer keeps the text of this article. Хабр has the original.
Translate
Разнёс infra и app по двум compose-файлам в одной папке, запустил docker compose -f app.yml down --remove-orphans и потерял MongoDB, Redis, RabbitMQ и nginx. Причина в том, что имя проекта Compose берёт из папки, а не из файла. Разбираю, как Compose находит «сирот», почему уцелел