Coming from Docker Compose
Alzo does not invoke or wrap Docker Compose at runtime. Migration is one-way: Compose is input, and the result is an ordinary alzo.config.ts with no compatibility layer to keep in sync.
Migrating with an agent
The Alzo repository includes an agent skill, compose-to-alzo. It reads the Compose file and Compose's canonical model of it without resolving environment secrets, translates every supported service into Alzo, reports every semantic difference, then runs alzo check and alzo plan. The skill is the .agents/skills/compose-to-alzo/ directory: copy it into the skills directory your agent reads in your project, then ask:
Use $compose-to-alzo to migrate compose.yaml to alzo.config.ts.Keeping a dependency outside Alzo
If a dependency must keep running outside Alzo, adopt its already-running address:
const postgres = defineService({
name: 'postgres',
ports: { pg: { port: 5432 } },
provision: { adopt: { host: '127.0.0.1', port: { pg: 5432 } } },
ready: { tcp: { on: 'pg' }, period: '2s', failureThreshold: 90 },
});The external system keeps lifecycle and teardown ownership. Alzo waits on the address and may order dependent Alzo nodes after it, but alzo down does not stop the external service.
Differences to expect
| Compose | Alzo |
|---|---|
depends_on orders startup; waiting for health needs condition: service_healthy on each edge | dependsOn: [db.available] waits for readiness by default (Dependencies and readiness) |
| Host processes run outside the file | Host processes and containers are nodes in one graph (Services) |
| You choose host ports, and a second checkout needs a different project name and ports | Ports are allocated, and every worktree gets its own instance (Parallel environments) |
docker compose down keeps named volumes unless you pass -v | alzo down removes them unless they have onRemove: 'retain' (Storage) |
network_mode: "service:app" | attach: { to: app }, a reference rather than a string (Services) |
env_file reads .env files | Alzo reads the environment; use a loader or a parser (Secrets and parameters) |
profiles: adds services to the default set | A profile is a whole alternative graph (Profiles and settings) |
What has no equivalent yet, and therefore stops or qualifies a migration: custom or external network topology, GPU or CDI reservations, sysctls, tmpfs, cap_drop, custom logging drivers, and Compose's additive per-service profiles:. The skill never silently drops one of these fields.
Why Alzo compares the size of three real Compose files with their Alzo translations.