Execute some bash script before docker-compose build triggered by command

Viewed 7849

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: ....
1 Answers

No there is not.

you can make a custom bash build script that executes your local script before starting the containers

Related