diff --git a/HrynCo.NotificationService.slnx b/HrynCo.NotificationService.slnx index 8817f04..c5698ec 100644 --- a/HrynCo.NotificationService.slnx +++ b/HrynCo.NotificationService.slnx @@ -1,4 +1,8 @@ + + + + diff --git a/docker/environments/docker-compose.Development.yml b/docker/environments/docker-compose.Development.yml new file mode 100644 index 0000000..86702a8 --- /dev/null +++ b/docker/environments/docker-compose.Development.yml @@ -0,0 +1,39 @@ +services: + api: + environment: + - ASPNETCORE_ENVIRONMENT=Development + - App__ConnectionString=Host=db;Port=5432;Database=notification_service;Username=postgres;Password=postgres + - Serilog__WriteTo__1__Args__serverUrl=http://seq:5341 + ports: + - "5200:8080" + + worker: + environment: + - DOTNET_ENVIRONMENT=Development + - App__ConnectionString=Host=db;Port=5432;Database=notification_service;Username=postgres;Password=postgres + - Serilog__WriteTo__1__Args__serverUrl=http://seq:5341 + + db: + image: postgres:17 + environment: + POSTGRES_DB: notification_service + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + ports: + - "5433:5432" + volumes: + - notification_db:/var/lib/postgresql/data + + seq: + image: datalust/seq:latest + environment: + ACCEPT_EULA: "Y" + ports: + - "5342:80" + - "5341:5341" + volumes: + - notification_seq:/data + +volumes: + notification_db: + notification_seq: \ No newline at end of file diff --git a/docker/environments/docker-compose.yml b/docker/environments/docker-compose.yml new file mode 100644 index 0000000..a61e4b5 --- /dev/null +++ b/docker/environments/docker-compose.yml @@ -0,0 +1,22 @@ +services: + api: + build: + context: ../.. + dockerfile: HrynCo.NotificationService.Api/Dockerfile + environment: + - ASPNETCORE_ENVIRONMENT=Production + - App__ConnectionString=${CONNECTION_STRING} + ports: + - "8080:8080" + depends_on: + - db + + worker: + build: + context: ../.. + dockerfile: HrynCo.NotificationService.Worker/Dockerfile + environment: + - DOTNET_ENVIRONMENT=Production + - App__ConnectionString=${CONNECTION_STRING} + depends_on: + - db \ No newline at end of file