feat: add production docker-compose with hrynco-services network

- Base compose: explicit internal network, named volumes with VOLUME_PREFIX
- docker-compose.prod.yml: production images, ports, restart policies, hrynco-services external network on rabbitmq
- docker-compose.Development.yml: cleaned up orphan volumes, named dev volumes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Anatolii Grynchuk
2026-05-02 15:25:09 +03:00
parent 74211f0a4a
commit ae119d1a3d
3 changed files with 88 additions and 26 deletions
@@ -0,0 +1,37 @@
services:
migrator:
build: {}
image: registry.grynco.com.ua/hrynco.notification-service.migrator:${MIGRATOR_IMAGE_TAG:?MIGRATOR_IMAGE_TAG is required}
api:
build: {}
image: registry.grynco.com.ua/hrynco.notification-service.web:${WEB_IMAGE_TAG:?WEB_IMAGE_TAG is required}
ports:
- "${API_PORT:?API_PORT is required}:8080"
environment:
- Serilog__WriteTo__1__Args__serverUrl=${SEQ_URL:-}
restart: always
worker:
build: {}
image: registry.grynco.com.ua/hrynco.notification-service.worker:${WORKER_IMAGE_TAG:?WORKER_IMAGE_TAG is required}
environment:
- Serilog__WriteTo__1__Args__serverUrl=${SEQ_URL:-}
restart: always
rabbitmq:
restart: always
networks:
- internal
- hrynco-services
db:
ports:
- "${DB_PORT:?DB_PORT is required}:5432"
restart: always
networks:
internal: {}
hrynco-services:
external: true
name: hrynco-services