Skip to content

Conversation

@zvladru
Copy link

@zvladru zvladru commented Mar 20, 2025

Overview

This PR updates the production Docker Compose configuration by adding the restart policy "unless-stopped" for the devicehub-mongo service in docker-compose-prod.yaml.

Changes

  • In the devicehub-mongo service, the following line has been added:

    restart: unless-stopped

Reasoning

Adding the restart policy "unless-stopped" ensures that the MongoDB container automatically recovers after system reboots, thus enhancing the resilience and availability of our application services.

Testing

The changes have been tested locally. After a system reboot, the container correctly restarts without manual intervention.

feat(docker): add restart: unless-stopped for devicehub-mongo in docker-compose-prod.yaml

Updated the devicehub-mongo service configuration to include the restart policy "unless-stopped". This ensures that the MongoDB container automatically restarts after a system reboot, improving overall service availability. Tested locally.
@zvladru zvladru requested a review from a team as a code owner March 20, 2025 13:03
Copy link
Collaborator

@irdkwmnsb irdkwmnsb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was a mistake on our part. Glad you were able to submit a PR to fix it! Thank you!

@irdkwmnsb irdkwmnsb merged commit dd708c4 into VKCOM:master Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants