Docker Compose v5.8.0: Scheduled Jobs

Docker Compose v5.8.0 adds a top-level jobs: element: containers that run to completion, on demand or on a schedule, declared next to the services they work with. A nightly database backup no longer needs a cron entry on the host or a container running crond. It lives in the Compose file, and the Docker Engine fires it. Because the engine owns the schedule, a job keeps firing after the docker compose command has exited, and also when the project targets a remote engine. Each execution is recorded with its state and exit code. ...

November 17, 2026 · 5 min · 997 words · Guillaume Lours

Docker Compose Tip #93: The ambassador pattern for environment-specific dependencies

An app connects to Redis at localhost:6379 in every environment, but Redis never actually lives at the same place twice: a local container in dev, a managed instance in staging, a different managed instance in prod. Something has to resolve that difference, and the easiest place to put it is scattered if ENV == "prod" branches in the app’s own config. The ambassador pattern puts it in one disposable container instead. ...

October 16, 2026 · 3 min · 455 words · Guillaume Lours

Docker Compose Tip #92: Compose now tells you when an attribute does nothing

deploy.update_config, credential_spec, ports[].mode: host: every one of these is valid against the compose-spec schema, and none of them has ever done anything to a plain docker compose up. They’re Swarm-only. Before Compose 5.6.0, a file carrying any of them loaded without complaint, and whatever behavior you expected from reading the spec just never showed up, with no hint why. What changed Load a file with one of these attributes now, and Compose says so: ...

October 14, 2026 · 2 min · 405 words · Guillaume Lours

Docker Compose Tip #91: Providers now take part in the image phase

A provider managing containers on a remote or non-Docker runtime has always been able to declare build: or image: on its service, but getting the actual image bytes to wherever that runtime lives was left entirely to the provider: push to a registry it can reach, or shell out to docker save/scp and hope it matches what Compose actually resolved. Tip #61 covered provider services for exactly this kind of external dependency: databases, tunnels, Kubernetes intercepts. Compose 5.6.0 adds the piece that tip didn’t have yet: a provider can now opt into the same image phase every other service goes through. ...

October 12, 2026 · 3 min · 471 words · Guillaume Lours

Docker Skills, Part 3: docker-compose-patterns in Depth

depends_on only guarantees a container has started. It says nothing about whether the process inside is actually ready to take traffic, and a database container that’s up but still replaying its init scripts will happily accept a connection from a service that then fails on its first query. docker-compose-patterns, the skill that fires when the task is service wiring rather than image builds, spends a good part of its rules closing that exact gap. ...

October 2, 2026 · 5 min · 1001 words · Guillaume Lours