Skip to content

Instantly share code, notes, and snippets.

View amjadafanah's full-sized avatar

Amjad Afanah amjadafanah

View GitHub Profile
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=sqlight
- database_url=Filename=.\\sqlight_db.db
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
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
aspnet-mvc:
image: dchq/aspnet-hellomvc:latest
mem_min: 50m
host: host1
publish_all: true
cluster_size: 1
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, post_scale_in:aspnet
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, post_scale_in:aspnet
aspnet:
image: dchq/aspnet-helloweb:latest
mem_min: 50m
host: host1
publish_all: true
cluster_size: 1
## Execute these commands on the host running the postgres_slave container
## Enter the postgres_slave container
docker exec -it [postgres_slave_container_name] bash
## Access the names database using psql
psql names
## List the tables
\dt;