Skip to content

Instantly share code, notes, and snippets.

@amjadafanah
Created August 15, 2016 02:00
Show Gist options
  • Save amjadafanah/fd0a5da9b929b7a2fff6e3eb3e814c3b to your computer and use it in GitHub Desktop.
Save amjadafanah/fd0a5da9b929b7a2fff6e3eb3e814c3b to your computer and use it in GitHub Desktop.
nginx:
image: nginx:latest
publish_all: true
host: host1
mem_min: 50m
plugins:
- !plugin
id: 0H1Nk
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
- servers=server {{aspnet-mvc | container_private_ip}}:5004;
# Use container_hostname if you're using Weave networking
#- servers=server {{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