Skip to content

Instantly share code, notes, and snippets.

View amjadafanah's full-sized avatar

Amjad Afanah amjadafanah

View GitHub Profile
Ubuntu4G:
region: IM-DEVBOX
image: \\VFCN10-AD\HyperForm\Template\HyperForm_Ubuntu-14.04_64_10.0.254.100.vhdx
instanceType: cpu=1,memory=4GB,disk=100GB,generation=1
network: Virtual Switch1
skipAgentInstall: true
count: 1
#!/bin/bash
dotnet restore
dotnet ef database update
dotnet run
dotnet:
image: dchq/dotnet-names-directory:latest
publish_all: true
#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;
nginx:
image: nginx:latest
publish_all: true
mem_min: 50m
host: host1
plugins:
- !plugin
id: 0H1Nk
restart: true
lifecycle: on_create, post_scale_out:dotnet, post_scale_in:dotnet
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
nginx:
image: nginx:latest
publish_all: true
mem_min: 50m
host: host1
plugins:
- !plugin
id: 0H1Nk
restart: true
lifecycle: on_create, post_scale_out:dotnet, post_scale_in:dotnet
dotnet:
image: dchq/dotnet-names-directory:latest
publish_all: true
#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;
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
nginx:
image: nginx:latest
publish_all: true
mem_min: 50m
host: host1
plugins:
- !plugin
id: 0H1Nk
restart: true
lifecycle: on_create, post_scale_out:dotnet, post_scale_in:dotnet
dotnet:
image: dchq/dotnet-names-directory:latest
publish_all: true
#ports:
# - 5000:5000
host: host1
mem_min: 200m
environment:
- database_driverClassName=postgres
- database_url=Host={{postgres | container_private_ip}};Database={{postgres | POSTGRES_DB}};Username={{postgres | POSTGRES_USER}};Password={{postgres | POSTGRES_PASSWORD}}