UserManagement.API service is used for Deeproxio platform authentication and authorization processes. Also the service responds for managing dpio user data.
Technologies: ASP.NET Core
, Entity Framework Core
, ASP.NET Core Identity
, AutoMapper
, Npgsql
, JWT
Service requires access to `Postgres` database.
-
Service image preparation
# cd in root git repository docker build -t dpio-UserManagement.API:latest -f Dockerfile .
-
Service image standalone usage
# run command after image build docker run -d --name dpio-UserManagement.API --restart always -p 4300:80 --link local-postgres -e ConnectionStrings__IdentityDbContext=Host=local-postgres;Database=dpioaccountdb;Username=postgres;Password=12345678 -e ENVIRONMENT=Production dpio-UserManagement.API:latest
P.S.
local-postgres
isPostgres
DB container deployed in the same docker environment. Replace to any correct name if it's need. Also replaceUsername
andPassword
to correct DB user settings. -
Migration image preparation
# cd in root git repository docker build -t dpio-UserManagement.API-db-migration:latest -f Dockerfile-MigrationJob .
-
Migration image standalone usage
# run interactive container session after image build docker run -it --rm --name dpio-UserManagement.API-migration --link test-postgres-server -e ConnectionStrings__IdentityDbContext=Host=test-postgres-server;Database=dpio-user-db;Username=admin;Password=12345678 -e ENVIRONMENT=Production dpio-UserManagement.API-db-migration:latest dotnet ef database update
P.S.
test-postgres-server
isPostgres
DB container deployed in the same docker environment. Replace to any correct name if it's need. Also replaceUsername
andPassword
to correct DB user settings.