Prerequisites
1. Initialize Docker Swarm
On the manager node:
2. Join Worker Nodes (Optional)
On each worker node, run the join command provided by docker swarm init:
On ALL nodes (manager + workers):
-
Configure AWS credentials (see Prerequisites)
-
Install ECR credential helper:
- Configure
~/.docker/config.json:
Deployment
Deploy Commands
For all deployment options:
Non-Interactive Mode
For CI/CD pipelines, use the --yes flag:
With --yes, the command fails immediately on any error. Ensure all configuration is valid before using in automation.
Post-Deployment
Verify Services
Create Initial Entities
If you run 2501-infra deploy without --yes, the CLI will interactively prompt you to create your first tenant, organization, and admin user.
If you used --yes mode, create entities manually:
For all entity management commands:
Useful Docker Commands