I have the following docker-compose.yml
file where I have a service that does:
service:
container_name: service-name
image: service-image
command: >
/bin/bash -c "
command1;
command2;
command3
"
This docker-compose.yml works fine. The problem is that the script of the "command" is becoming complex and I want to externilize it in configure.sh
script so that in my folder I have:
docker-compose.yml
configure.sh
is there a way to call configure.sh
from the "command" option?
The image service-image comes from Docker-HUB and there is not a chance I can copy configure.sh into the image unless I extend it with my own image. However, I would like to avoid this.