Is there a way before building of docker containers with docker compose to execute a bash script?
something like
version: "3"
before_script: //execute my local script
services:
database: ....
No there is not.
you can make a custom bash build script that executes your local script before starting the containers
bash by default. github.com/docker/compose/issues/6736