sajad torkamani
On this page

Syntax

docker-compose exec <service> /bin/bash -c "<multiple commands separated by &&>"

Example

docker-compose exec web /bin/bash -c "ls && pwd"
Tagged: Docker