9. Stop without deleting data
Use the same project directory, environment and Compose file as startup. Include the workspace profile if you enabled its listener.
sudo docker compose --env-file deploy/postgres/.env \
-f deploy/postgres/compose.yaml --profile v2 --profile workspace down
The command removes the project containers and network and retains the database, WAL archive and backup volumes. Verify the project no longer has running services. To restart, use the same configuration and service startup checks. Use the upgrade workflow for a changed source or schema rather than treating an upgrade as a restart.