Sample for dockerize dotnetcore application composed:
- 1 web site in react
- 1 api fullrest write in dotnet core
- 1 SQL Server
It contains 3 projects. Each project contains a readme file that details the principal commands.
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 in dotnet core that allows to connect to the database. You must build the application before run docker
dotnet publish -o ./publish
Database for data storage. A script creates the database when docker starts.
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