markshust / docker-magento

Mark Shust's Docker Configuration for Magento
https://m.academy/courses/set-up-magento-2-development-environment-docker/
MIT License
2.59k stars 1.01k forks source link

Start magento docker containers automatically whenever the host node get started #1124

Closed MohammadrezaNasrabadi closed 7 months ago

MohammadrezaNasrabadi commented 7 months ago

Description

It seems after the Magento cluster is installed with the docker-compose file if the host server gets rebooted or started at another time, the Magento containers won't be started automatically. I think it's better to add a restart-policy option on the compose file.

Steps To Reproduce

  1. Just set up Magento based on the provided documentation and reboot the server. You can see that Magento containers aren't started automatically.

Expected Result

Actual Result

markshust commented 7 months ago

This setup is meant for development, and I don't think we want to auto-start containers on boot. I think it's simple enough to run bin/start after a reboot. We also want to make sure resources aren't unnecessarily utilized on system starts.