Skip to content
Dawid Brzozowski edited this page Apr 1, 2023 · 15 revisions

Overview

This section describes how to run our Api connected to MSSql database in docker containers.


Prerequisites


Before you start

  • Docker Desktop app is running.

  • Our server certificate is added.

  • Check if there are no running containers in Docker Desktop App (Containers Tab).

  • Navigate to the root of the solution (in PowerShell terminal)


Running Containers

Just type in the root of the solution (in PowerShell terminal).

docker compose up running our services (App and MsSql).

docker compose up -d running our services in background

docker compose up --build rebuild our image and run services

docker compose down stopping our services and release the resources.

or just pick docker compose project as start up project in visual studio

docker-startup-project


Database

MSSQL

Connect to database using SQL Server Management Studio with following credentials:

server name: localhost,1433

authentication: SQL Server Authentication

login: sa

password: S3cur3P@ssW0rd!

connection_to_database


Api

When your containers are running you can test our api in a browser at:

Open our Swagger API

Create a new user in Keycloak.


I'll add more info later.

Clone this wiki locally