Skip to content

v0.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Oct 12:24
Immutable release. Only release title and notes can be modified.
v0.1.0
7b587a0

Added

  • Service names resolve between containers (#19). Apple container has no service DNS, so each service container now mounts a generated /etc/hosts listing every project container on a shared network by service name, container name and networks.<net>.aliases. Files live under ~/.local/state/container-compose/<project>/hosts/ and are refreshed on up and start, removed on down.
  • host.docker.internal / gateway.docker.internal (#20) resolve to the network gateway, which is the Mac. Reaches listeners bound to 0.0.0.0. For listeners bound to 127.0.0.1 (kubectl port-forward default) register Apple's redirect once: sudo container system dns create host.docker.internal --localhost 203.0.113.113; when that domain exists the hosts entry is skipped so DNS answers.
  • extra_hosts is applied, incl. the host-gateway keyword. Previously warned as unsupported.
  • depends_on.required: false (#18). An optional dependency joins only when its own profile is active, so --profile ui no longer drags in a local-db-gated service. Needs ComposeKit 0.0.5.
  • up --remove-orphans / down --remove-orphans (#17). Removes containers carrying the project label whose service is no longer in the file, stopped ones included. up warns about them otherwise.
  • up -d (#16) accepted. Containers always ran detached.

Fixed

  • config no longer lists optional dependencies that up would skip.

Notes

  • Hosts files are rewritten in place and padded to 4 KiB. The guest bind mount pins the inode, and virtiofs caches the size for about a second, so a peer that starts after you shows up roughly a second later.
  • Known, not fixed: global flags before the subcommand (container compose -f x down) parse as up with service down. Put flags after the subcommand.
  • Depends on ComposeKit v0.0.5.

Full Changelog: v0.0.9...v0.1.0