feat: add platform notification core

This commit is contained in:
Codex
2026-05-26 18:01:39 +03:00
parent c1ac8b1a10
commit e605e95920
17 changed files with 1865 additions and 5 deletions
+40
View File
@@ -16,6 +16,8 @@ services:
depends_on:
authentik-server:
condition: service_started
notification-core:
condition: service_started
extra_hosts:
- "host.docker.internal:host-gateway"
@@ -87,9 +89,47 @@ services:
- authentik-certs:/certs
- ./authentik/custom-templates:/templates
notification-postgres:
image: docker.io/library/postgres:16-alpine
restart: unless-stopped
env_file:
- path: .env
required: false
environment:
POSTGRES_DB: ${NOTIFICATION_PG_DB:-nodedc_notifications}
POSTGRES_PASSWORD: ${NOTIFICATION_PG_PASS:-nodedc_notifications}
POSTGRES_USER: ${NOTIFICATION_PG_USER:-nodedc_notifications}
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 30s
timeout: 5s
retries: 5
start_period: 20s
volumes:
- notification-database:/var/lib/postgresql/data
notification-core:
image: nodedc/notification-core:local
build:
context: ../services/notification-core
restart: unless-stopped
env_file:
- path: .env
required: false
environment:
NODE_ENV: production
PORT: 5185
DATABASE_URL: postgres://${NOTIFICATION_PG_USER:-nodedc_notifications}:${NOTIFICATION_PG_PASS:-nodedc_notifications}@notification-postgres:5432/${NOTIFICATION_PG_DB:-nodedc_notifications}
expose:
- "5185"
depends_on:
notification-postgres:
condition: service_healthy
volumes:
authentik-database:
authentik-data:
authentik-certs:
notification-database:
caddy-data:
caddy-config: