Implement up and down commands in Seabreeze, analogous to docker compose up|down.
Details
The up command utilizes the Docker API to:
Start/Create all the service containers and networks defined in the project's configuration, similar to docker compose up.
Give each created container the label {seabreeze.domain}.project set to the project ID, allowing for reliable tracing of containers back to their respective projects.
The down command utilizes the Docker API to:
Stop and remove all containers and networks created by the up command.
Benefits
Reliable Tracking: Labels ensure that containers can be reliably traced back to their originating projects, providing an alternative to the current heuristic approach.
Consistency: Provides a consistent deployment method within the Seabreeze tool, aligning with familiar Docker Compose workflows.
Caveats
The docker compose up command can still be used, which means there might be cases where containers are not labeled with the Seabreeze-specific label. (Fall back to heuristic if label is missing?)
Implement
up
anddown
commands in Seabreeze, analogous todocker compose up|down
.Details
The
up
command utilizes the Docker API to:docker compose up
.{seabreeze.domain}.project
set to the project ID, allowing for reliable tracing of containers back to their respective projects.The
down
command utilizes the Docker API to:up
command.Benefits
Caveats
docker compose up
command can still be used, which means there might be cases where containers are not labeled with the Seabreeze-specific label. (Fall back to heuristic if label is missing?)