SKorolchuk / dpio-media-operations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deeproxio Account REST API

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.

Docker images

  • 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 is Postgres DB container deployed in the same docker environment. Replace to any correct name if it's need. Also replace Username and Password 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 is Postgres DB container deployed in the same docker environment. Replace to any correct name if it's need. Also replace Username and Password to correct DB user settings.

About

License:MIT License


Languages

Language:C# 98.0%Language:Dockerfile 1.5%Language:Batchfile 0.5%