Created
August 27, 2016 22:35
-
-
Save amjadafanah/4b4a7442061b85f21074ba56f6a84112 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:dotnet, post_scale_in:dotnet | |
arguments: | |
# Use container_private_ip if you're using Docker networking | |
- BalancerMembers=BalancerMember http://{{dotnet | container_private_ip}}:5000 | |
# Use container_hostname if you're using Weave networking | |
#- BalancerMembers=BalancerMember http://{{dotnet | container_hostname}}:5000 | |
dotnet: | |
image: dchq/dotnet-names-directory:latest | |
publish_all: false | |
#ports: | |
# - 5000:5000 | |
host: host1 | |
mem_min: 200m | |
environment: | |
- database_driverClassName=mssql | |
- database_url=Server=tcp:dchq-sql-server.database.windows.net,1433;Initial Catalog=NameDirectory;Persist Security Info=False;User ID={your_username};Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30; | |
plugins: | |
- !plugin | |
id: hHjF0 | |
lifecycle: post_create | |
restart: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment