Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save oviniciusfeitosa/4e2c34a52694b284b6d37e8b584f6db4 to your computer and use it in GitHub Desktop.
Save oviniciusfeitosa/4e2c34a52694b284b6d37e8b584f6db4 to your computer and use it in GitHub Desktop.
Docker Compose (docker-compose) auto scale.md

Docker Compose (docker-compose) auto scale

To specify how many containers to scale using docker-compose use the --scale service = {number} command. This command sets 5 containers for redis-service: docker-compose up -d --scale redis-service = 5

docker-compose -f docker-compose-scale.yml up -d --scale hello=5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment