From HTTP 201 to Persistent Docker Data: Nicola’s MyZubster Pilot Works Locally
Описание и применение
МиZubster MVP успешно сохраняет данные при перезапуске контейнера и полном выключении Docker Compose, демонстрируя надёжную постоянную схему хранения на Windows.
Задача
Ensuring that a Dockerized application preserves data across container restarts and full shutdowns on a local Windows machine.
Результат
The MyZubster MVP Docker setup successfully preserved observation data across container restarts and full Compose shutdowns, demonstrating reliable persistence on a Windows host.
Рабочий процесс
- Clone the repo
- Start Docker Desktop and ensure the Linux engine is running
- Run
docker compose up --build -dto build and start services - Verify API is reachable via
http://localhost:5000/api/observations - Create an observation with a POST request
- Retrieve observations to confirm creation
- Restart the API service with
docker compose restart apiand verify data persists - Shut down Compose with
docker compose downand check that the volume remains - Recreate the environment with
docker compose up -dand confirm data is still present
Доказательства
We recreated the network and container: docker compose up -d
The observation survived the container restart.
The container exited with code 137.
- Дата записи: 2026-09-07T19:59:14.676Z