Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amjadafanah/e804715bee96b6989b95efc6b1ba4e79 to your computer and use it in GitHub Desktop.
Save amjadafanah/e804715bee96b6989b95efc6b1ba4e79 to your computer and use it in GitHub Desktop.
http-lb:
image: httpd:latest
publish_all: true
mem_min: 50m
host: host1
plugins:
- !plugin
id: uazUi
restart: true
lifecycle: on_create, post_scale_out:aspnet-mvc, post_scale_in:aspnet-mvc
arguments:
# Use container_private_ip if you're using Docker networking
- BalancerMembers=BalancerMember http://{{aspnet-mvc | container_private_ip}}:5004
# Use container_hostname if you're using Weave networking
#- BalancerMembers=BalancerMember http://{{aspnet-mvc | container_hostname}}:5004
aspnet-mvc:
image: dchq/aspnet-hellomvc:latest
mem_min: 100m
host: host1
publish_all: false
cluster_size: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment