Closed cjgratacos closed 6 years ago
Good suggestion, but that would take quite a bit more effort than what we have here in your comment. I am not sure if it is worth the effort.
Also a few remarks regarding the script that you posted: stop/down on docker-compose are not identical. Down kills the entire thing and drops the database, etc. - Stop just halts it. So you shouid be using "pygmy stop" and "docker-compose stop" instead.
Installing the backend should happen inside the container. So composer install should run within the container. Why? Because some dependencies care about the used php version and will have a different result if your host php version is different than the one inside the container. Also, some people (me) simply don't have php outside of docker :).
It will be excellent to have a simple bash file with a set commands that would automate the startup and stop process of the environment.
Oversimplified example on a Mac and Linux: filename:
process.sh