Skip to content

Sample for dockerize an web application with SQL Server and dotnet core

Notifications You must be signed in to change notification settings

ChristopheLej/docker-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-dotnet

Sample for dockerize dotnetcore application composed:

  • 1 web site in react
  • 1 api fullrest write in dotnet core
  • 1 SQL Server

Solution

It contains 3 projects. Each project contains a readme file that details the principal commands.

Web

React project in typescript create with create-react-app. It contains the Dockerfile that allows to create the docker. You must build the application before:

yarn build

API

Api in dotnet core that allows to connect to the database. You must build the application before run docker

dotnet publish -o ./publish

Sql

Database for data storage. A script creates the database when docker starts.

Docker-compose

You can use the following command line for build docker image:

docker-compose -f docker-compose-build.yml up --build -d

else use

docker-compose up -d