Skip to content

Profiles cannot leave out Compose containers #244

Closed

Description

@fen89

What I want

A light profile for daily work that leaves out containers the tree does not strictly need: a search engine (~2 GB RAM), a virus scanner, a document converter, an address geocoder, a mock AI service.

[profiles.lite]
description = "daily work without the heavy optional containers"
autostart = ["api", "web"]

autostart only takes [services] entries. Naming a container is an error:

devstack.toml: 1 problem(s)
  - profiles.lite.autostart[1]: no service `compose.search.search-engine` in `[services]`

A Compose group always starts every container in its services list, and neither a profile nor the group has a key that leaves one out. A Compose profiles: entry in the dev overlay does not help either: devstack starts the containers by name, and Compose starts a container named on the command line even when it belongs to a profile.

Proposal

Let a profile leave out containers, for example:

[profiles.lite]
skip = ["compose.search.search-engine", "compose.app.scanner"]   # or a whole group: "compose.search"

Alternatively, a per-container autostart = false in the Compose group (started on demand with devstack start compose.app.scanner), which a profile's autostart could then list like a service.

devstack check could warn when a skipped container is still in another member's after or in a {compose.<group>.<service>...} placeholder, the way it already reports unknown names.

Environment

  • devstack 0.20.0
  • Windows 11, Docker Desktop
  • Stack: two Compose groups (one with a single search-engine container, one with ~13 containers), native .NET API + migrator job + Angular dev server

Activity

  1. 7schmiede commented on Oct 23, 2026

    @7schmiede
    Member

    Thanks, this is now proposed in #246 (ADR-0058): a profile gets skip, which takes containers (compose.<group>.<service>), whole groups (compose.<group>) and services:

    [profiles.lite]
    description = "daily work without the heavy optional containers"
    skip = ["compose.search", "compose.app.scanner"]

    What a profile skips does not start with the tree. A skipped container that still runs from an earlier start is stopped, so the memory is freed. It can still be started on demand (devstack start compose.app.scanner).

    devstack check reports a service that starts with the profile and uses a skipped container's address (a {compose.…} placeholder or rewrite_hosts) as an error, since its start would fail. after alone is fine: the service starts without waiting.

    autostart was not extended to containers: an existing autostart = ["api", "web"] starts every container today, and that would have changed.

  2. 7schmiede commented on Oct 23, 2026

    @7schmiede
    Member

    Fixed in 0.21.0 by #246: [profiles.<name>] skip leaves out containers, whole Compose groups and services (ADR-0058).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions