Docker Swarm Generator

Configure production-ready Docker Swarm deployments. Define replicas, placement constraints, rolling update policies, and secure secret injection.

Swarm Cluster Configuration

Deployment Strategy
Rolling Updates
docker-compose.swarm.yml
1

Swarm Deploy Architecture

The `deploy` key is only evaluated by Docker Swarm. Normal `docker-compose up` will ignore it unless deployed via `docker stack deploy`.

Using `failure_action: rollback` combined with `order: start-first` guarantees zero-downtime blue/green deployments across your cluster.