shop-db runs postgres:16 and holds the shop's orders. It was started without -v, and it has no published port and no restart policy. The reporting team needs it reachable on port 5432 of this host, and it must come back after a reboot.
Recreate it so that it ends up like this:
text
container shop-db
image postgres:16 (unchanged)
password POSTGRES_PASSWORD=shop-secret (unchanged)
data named volume shop-data -> /var/lib/postgresql/data
port 127.0.0.1:5432 -> 5432
restart unless-stoppedEvery order must still be there afterwards, and no leftover volumes should remain.
Start by looking at the current data:
Work in a safe order: find the data, copy it, verify the copy, and delete the old data last.