Application demo designed to show how ASP.NET Core and PostgreSQL can be run in Docker containers. The app uses Entity Framework to create a simple database that stores Docker commands and examples. It also shows how Angular can be integrated with Web API to display customer information.
Install Docker Desktop for Mac
or Docker Desktop for Windows
.
Navigate to the AspNetCorePostgreSQLDockerApp
subfolder in a console window.
Open the Client
folder in a terminal window and run the following commands at the root of the folder (requires Node.js):
npm install
npm install -g @angular/cli
ng build
Move back up a level to the AspNetCorePostgreSQLDockerApp
in the terminal window:
Run docker-compose build
Run docker-compose up
Navigate to http://localhost:5000 in your browser to view the site.
docker-compose -f docker-compose.prod.yml build
.aspnetcoreapp
image as [yourDockerHubUserAccount]/aspnetcoreapp
. Make sure you substitute your Docker Hub user account for [yourDockerHubUserAccount]
.docker push [yourDockerHubUserAccount]/aspnetcoreapp
.docker-compose azure.yml
file and change the image for the web
service to [yourDockerHubUserAccount]/aspnetcoreapp
.Web App for Containers
service in Azure. You'll need to add it to a new or existing Resource Group.Docker
tab, switch Options
to Docker Compose
, Image Source
to Docker Hub
and upload the docker-compose azure.yml
file using the Configuration File
section of the screen.Overview
section to hit the app.