mix docker.compose (Tds v2.3.6)
View SourceCLI wrapper around docker compose for starting and stopping development services.
Commands
mix docker.compose upmix docker.compose down
The up command always runs in detached mode (docker compose ... up -d).
The down command stops all services (docker compose ... down).
Options
-f,--file PATHUse a specific compose file instead of the default:mix docker.compose up -f docker-compose.test.yml-p,--profile NAMEUse a specific compose profile:mix docker.compose up --profile mssql_amd64
Profile selection rules
If no -f/--file is provided:
docker-compose.ymlis used- if no
--profileis given:- the profile is auto-selected based on host architecture:
- mssql_arm64 on ARM / Apple Silicon
- mssql_amd64 on x86_64
- the profile is auto-selected based on host architecture:
- if
--profileis given:- that profile is used explicitly
If -f/--file is provided:
- that compose file is used
- if no
--profileis given:- no
--profileflag is passed to Docker
- no
- if
--profileis given:- that profile is passed to Docker
Examples
Basic usage (auto-selected profile):
mix docker.compose up
mix docker.compose downCustom compose file:
mix docker.compose up -f docker-compose.test.yml
mix docker.compose down -f docker-compose.test.ymlExplicit profile:
mix docker.compose up --profile mssql_amd64
Summary
Functions
Callback implementation for Mix.Task.run/1.
Functions
Callback implementation for Mix.Task.run/1.