how can run multiple commands for. I try to run krakend and export the openapi document.
version: "3"
services:
krakend_ce:
image: devopsfaith/krakend:watch
volumes:
- ./krakend:/etc/krakend
ports:
- "9000:9000"
command: ["run", "-d", "-c", "/etc/krakend/krakend.json"]
# how to run krakend openapi export -h
i want to krakend openapi export -hafter container is started
You should not use the
watchtag to run multiple commands, since it monitors the config files for changes, and restart the service.If you use any other version (than watch), you can run an
sh -c 'your commands; command2'command without problems.