Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 1.01 KB

README.md

File metadata and controls

29 lines (25 loc) · 1.01 KB

Docker Swarm for AWS Metadata Service

Provides cluster metadata and serves tokens

Example project: Terraform docker-swarm

Description

This container will provide general cluster metadata to the rest of the swarm cluster, in it current state it just provides tokens for Swarm members to join a Swarm cluster.

Usage

Paramaters
Parameter Example Description
AWS_REGION eu-central-1 AWS Region ID
MANAGER_SECURITY_GROUP_ID sg-asdasdasd Security group to allow Manager members from
WORKER_SECURITY_GROUP_ID sg-asdasdasd Security group to allow Worker members from
Example
docker run -d \
  --name=meta-aws \
  --restart=always \
  -p $LOCAL_IP:9024:5000 \
  -e AWS_REGION=$AWS_REGION \
  -e MANAGER_SECURITY_GROUP_ID=$MANAGER_SECURITY_GROUP_ID \
  -e WORKER_SECURITY_GROUP_ID=$WORKER_SECURITY_GROUP_ID \
  -v /var/run/docker.sock:/var/run/docker.sock \
  pecigonzalo/docker-meta-aws