Sign inSign up

pecigonzalo/docker-elb-aws

By pecigonzalo

•Updated over 9 years ago

Docker Swarm on AWS ELB auto updater script

Image
1

672

pecigonzalo/docker-elb-aws repository overview

⁠Docker Swarm for AWS ELB Autoupdater

This container will poll the Docker Swarm cluster for all published ports and update the cluster ELB.

Example project: Terraform docker-swarm⁠

⁠Description

Uses the docker python API to query the running stacks/services with published ports and updates the ELB to map those ports on it.

⁠Usage
⁠Paramaters
ParameterExampleDescription
DEBUGTrueEnable debug logging
ELB_CONFIG-Path to a valid controller config file
AWS_REGIONeu-central-1AWS Region ID
POLL_INTERVAL3Time in seconds to sleep between polls
⁠WIP: Controller configuration

This configuration list the target ELB for each network and a default, this should add support for clusters present on multiple networks.

[main]
127.0.0.1: testELB-Name
0.0.0.0: testELB-Name
default: testELB-Name
⁠Example
docker run -d \
  --name=elb-aws \
  --restart=always \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /var/lib/docker/swarm:/var/lib/docker/swarm \
  -e ELB_CONFIG=/var/lib/docker/swarm/elb.cfg \
  -e AWS_REGION=$AWS_REGION \
  -e DEBUG=True \
   pecigonzalo/docker-elb-aws

Tag summary

Content type

Image

Digest

Size

45.9 MB

Last updated

over 9 years ago

docker pull pecigonzalo/docker-elb-aws