fix: rename api service to web in all docker-compose files

- Aligns compose service name with the image name (hrynco.notification-service.web)
- Rename API_PORT env var to WEB_PORT for consistency

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Anatolii Grynchuk
2026-05-02 18:50:16 +03:00
parent d71c3513a5
commit 3e1cc696c1
3 changed files with 4 additions and 4 deletions
@@ -5,7 +5,7 @@ services:
environment: environment:
- App__ConnectionString=Host=db;Port=5432;Database=notification_service;Username=postgres;Password=postgres - App__ConnectionString=Host=db;Port=5432;Database=notification_service;Username=postgres;Password=postgres
api: web:
environment: environment:
- ASPNETCORE_ENVIRONMENT=Development - ASPNETCORE_ENVIRONMENT=Development
- App__ConnectionString=Host=db;Port=5432;Database=notification_service;Username=postgres;Password=postgres - App__ConnectionString=Host=db;Port=5432;Database=notification_service;Username=postgres;Password=postgres
+2 -2
View File
@@ -3,11 +3,11 @@ services:
build: {} build: {}
image: registry.grynco.com.ua/hrynco.notification-service.migrator:${MIGRATOR_IMAGE_TAG:?MIGRATOR_IMAGE_TAG is required} image: registry.grynco.com.ua/hrynco.notification-service.migrator:${MIGRATOR_IMAGE_TAG:?MIGRATOR_IMAGE_TAG is required}
api: web:
build: {} build: {}
image: registry.grynco.com.ua/hrynco.notification-service.web:${WEB_IMAGE_TAG:?WEB_IMAGE_TAG is required} image: registry.grynco.com.ua/hrynco.notification-service.web:${WEB_IMAGE_TAG:?WEB_IMAGE_TAG is required}
ports: ports:
- "${API_PORT:?API_PORT is required}:8080" - "${WEB_PORT:?WEB_PORT is required}:8080"
environment: environment:
- Serilog__WriteTo__1__Args__serverUrl=${SEQ_URL:-} - Serilog__WriteTo__1__Args__serverUrl=${SEQ_URL:-}
restart: always restart: always
+1 -1
View File
@@ -14,7 +14,7 @@ services:
- internal - internal
restart: "no" restart: "no"
api: web:
build: build:
context: ../.. context: ../..
dockerfile: HrynCo.NotificationService.Web/Dockerfile dockerfile: HrynCo.NotificationService.Web/Dockerfile