- Added a step to bring down existing containers before creating new ones to avoid issues with Docker's recreate path, specifically addressing a known bug with Docker Compose v1.29 and the latest Docker Engine.
- Ensured that the network and data are preserved during the down operation by using the `--remove-orphans` flag.
This change improves the reliability of the deployment process and prevents potential downtime during service updates.