thank you for watching this question.
So my question relates to best practices on how to run a script on a docker-compose up directive.
Currently i\'m sharin
You can create an alias for docker-compose up
. Put something like this in ~/.bash_aliases
(in Ubuntu):
alias up="docker-compose up; ~/your_script.sh"
I'm not sure if running scripts on the host from a container is possible, but if it's possible, it's a severe security flaw. Containers should be isolated, that's the point of using containers.