defang compose
Work with local Compose files
Synopsis
Define and deploy multi-container applications with Defang. Most compose commands require a "compose.yaml" file. The simplest "compose.yaml" file with a single service is:
services: app: # the name of the service build: . # the folder with the Dockerfile and app sources (. means current folder) ports:
- 80 # the port the service listens on for HTTP requests
Options
-h, --help help for compose
Options inherited from parent commands
--color color-mode colorize output; "auto", "always" or "never" (default auto)
-C, --cwd string change directory before running the command
--debug debug logging for troubleshooting the CLI
--dry-run dry run (don't actually change anything)
-f, --file stringArray compose file path
-T, --non-interactive disable interactive prompts / no TTY (default true)
-p, --project-name string project name
-P, --provider provider cloud provider to use; use "aws" for bring-your-own-cloud (default auto)
-v, --verbose verbose logging
SEE ALSO
- defang - Defang CLI is used to develop, deploy, and debug your cloud services
- defang compose config - Reads a Compose file and shows the generated config
- defang compose down - Reads a Compose file and deprovisions its services
- defang compose logs - Tail logs from one or more services
- defang compose ps - Get list of services in the project
- defang compose restart - Reads a Compose file and restarts its services
- defang compose start - Reads a Compose file and deploys services to the cluster
- defang compose stop - Reads a Compose file and stops its services
- defang compose up - Reads a Compose file and deploy a new project or update an existing project