Hangfire Docker with Multiple Servers

$ mkdir Hangfire.UI
$ cd Hangfire.UI
$ dotnet new webapi
$ dotnet add package Hangfire.Core
$ dotnet add package Hangfire.AspNetCore
$ dotnet add package Hangfire.PostgreSql
"ConnectionStrings": {      "HangfireConnection": "Server=postgresql;Port=5432;Database=demo;User Id=demo; Password=111111;"},
$ mkdir Hangfire.Server
$ cd Hangfire.Server
$ dotnet new console
$ dotnet add package Hangfire.Core
$ dotnet add package Hangfire.PostgreSql
hang.server1_1  | Application started. Press Ctrl+C to shut down.
hang.server1_1 | Hosting environment: Production
hang.server1_1 | Content root path: /app/
$ mkdir Hangfire.Jobs
$ cd Hangfire.Jobs
$ dotnet new classlib
$ dotnet add reference ../Hangfire.Jobs
$ docker-compose up --build

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store