ae119d1a3d
- 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>
38 lines
950 B
YAML
38 lines
950 B
YAML
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
|