The docker-compose tool provides sophisticated orchestration functionality with a handful of commands. In this section, we will list out the docker-compose options and commands:
docker-compose [<options>] <command> [<args>...]
The docker-compose tool supports the following options:
- -f, --file <file>: This specifies an alternate file for docker-compose (default is the docker-compose.yml file)
- -p, --project-name <name>: This specifies an alternate project name (default is the directory name)
- --verbose: This shows more output
- -v, --version: This prints the version and exits
- -H, --host <host>: This is to specify the daemon socket to connect to
- -tls, --tlscacert, --tlskey, and --skip-hostname-check: The docker-compose ...