If you are using zsh as shell and oh-my-zsh, use the plugins
.zshrc file, find the line
plugins=(...), add the two plugins.
plugins=(... docker docker-compose)
When a command is entered (partially), press
tab to see available options and their description. Press tab multiple times to iterate through the options.