feat: Mail-Service-Ports aktualisiert, Consul- und Zipkin-Konfiguration hinzugefügt, neue Felder in BewerbService eingefügt

Signed-off-by: StefanMoCoAt <stefan.mo.co@gmail.com>
This commit is contained in:
Stefan Mogeritsch 2026-04-15 21:45:20 +02:00
parent 18e41a90b6
commit 1cefc26be9
5 changed files with 32 additions and 84 deletions

View File

@ -120,6 +120,13 @@ MAILPIT_IMAGE=axllent/mailpit:v1.29
MAILPIT_WEB_PORT=8025:8025 MAILPIT_WEB_PORT=8025:8025
MAILPIT_SMTP_PORT=1025:1025 MAILPIT_SMTP_PORT=1025:1025
# --- SPRING MAIL CONFIG (Lokal / Mailpit) ---
# Für lokale Entwicklung mit Mailpit (Docker Compose)
SPRING_MAIL_HOST=mailpit
SPRING_MAIL_PORT=1025
SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH=false
SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE=false
# --- PGADMIN --- # --- PGADMIN ---
PGADMIN_IMAGE=dpage/pgadmin4:8 PGADMIN_IMAGE=dpage/pgadmin4:8
PGADMIN_EMAIL=meldestelle@mo-code.at PGADMIN_EMAIL=meldestelle@mo-code.at
@ -149,6 +156,8 @@ GATEWAY_DEBUG_PORT=5005:5005
GATEWAY_SERVER_PORT=8081 GATEWAY_SERVER_PORT=8081
GATEWAY_SPRING_PROFILES_ACTIVE=docker GATEWAY_SPRING_PROFILES_ACTIVE=docker
GATEWAY_DEBUG=true GATEWAY_DEBUG=true
GATEWAY_SERVICE_NAME=api-gateway
GATEWAY_CONSUL_PREFER_IP=true
# --- PING-SERVICE --- # --- PING-SERVICE ---
PING_SPRING_PROFILES_ACTIVE=docker PING_SPRING_PROFILES_ACTIVE=docker
@ -160,9 +169,9 @@ PING_SERVICE_NAME=ping-service
PING_CONSUL_PREFER_IP=true PING_CONSUL_PREFER_IP=true
# --- MAIL-SERVICE --- # --- MAIL-SERVICE ---
MAIL_PORT=8083:8085 MAIL_PORT=8083:8083
MAIL_DEBUG_PORT=5014:5014 MAIL_DEBUG_PORT=5014:5014
MAIL_SERVER_PORT=8085 MAIL_SERVER_PORT=8083
MAIL_SPRING_PROFILES_ACTIVE=docker MAIL_SPRING_PROFILES_ACTIVE=docker
MAIL_DEBUG=true MAIL_DEBUG=true
MAIL_SERVICE_NAME=mail-service MAIL_SERVICE_NAME=mail-service
@ -234,6 +243,8 @@ SERIES_DEBUG_PORT=5011:5011
SERIES_SERVER_PORT=8089 SERIES_SERVER_PORT=8089
SERIES_SPRING_PROFILES_ACTIVE=docker SERIES_SPRING_PROFILES_ACTIVE=docker
SERIES_DEBUG=true SERIES_DEBUG=true
SERIES_SERVICE_NAME=series-service
SERIES_CONSUL_PREFER_IP=true
# --- WEB-APP --- # --- WEB-APP ---
WEB_APP_PORT=4000:4000 WEB_APP_PORT=4000:4000

74
.gitignore vendored
View File

@ -1,74 +0,0 @@
# --- General ---
.gradle/
**/build/
**/out/
.kotlin/
kotlin-js-store/
# --- Environments ---
#.env
config/env/.env.local
.env.development.local
.env.test.local
.env.production.local
.env.local
# --- IDEs ---
# IntelliJ
.idea/
*.iml
*.ipr
*.iws
# VS Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/snippets
# Fleet
.fleet/
!.fleet/receipt.json
# --- Dependencies & Build ---
node_modules/
**/node_modules/
package-lock.json
yarn.lock
pnpm-lock.yaml
# --- OS Files ---
.DS_Store
Thumbs.db
*.swp
*~
.nfs*
# --- Logs ---
_backup/logs/
**/*.log
*.log.gz
# --- Languages & Runtimes ---
# Java/Kotlin
*.class
.attach_pid*
# Python
.venv/
venv/
ENV/
*.pyc
__pycache__/
# --- Quality & Documentation ---
build/diagrams/
.eslintcache
.stylelintcache
.phpunit.result.cache
.dataSources/
dataSources.local.xml
/_backup/
.env

View File

@ -72,7 +72,9 @@ class BewerbService(
pausenBezeichnung = req.pausenBezeichnung, pausenBezeichnung = req.pausenBezeichnung,
// Finanzen // Finanzen
startgeldCent = req.startgeldCent, startgeldCent = req.startgeldCent,
geldpreisAusbezahlt = req.geldpreisAusbezahlt geldpreisAusbezahlt = req.geldpreisAusbezahlt,
znsNummer = req.znsNummer,
znsAbteilung = req.znsAbteilung
) )
return repo.create(b) return repo.create(b)
} }
@ -163,6 +165,8 @@ class BewerbService(
// Finanzen // Finanzen
startgeldCent = req.startgeldCent, startgeldCent = req.startgeldCent,
geldpreisAusbezahlt = req.geldpreisAusbezahlt, geldpreisAusbezahlt = req.geldpreisAusbezahlt,
znsNummer = req.znsNummer,
znsAbteilung = req.znsAbteilung
) )
return repo.update(updated) return repo.update(updated)
} }

View File

@ -61,7 +61,7 @@ services:
PING_SERVICE_URL: "http://ping-service:8082" PING_SERVICE_URL: "http://ping-service:8082"
MASTERDATA_SERVICE_URL: "http://masterdata-service:8086" MASTERDATA_SERVICE_URL: "http://masterdata-service:8086"
EVENTS_SERVICE_URL: "http://events-service:8085" EVENTS_SERVICE_URL: "http://events-service:8085"
MAIL_SERVICE_URL: "http://mail-service:8085" MAIL_SERVICE_URL: "http://mail-service:8083"
ZNS_IMPORT_SERVICE_URL: "http://zns-import-service:8095" ZNS_IMPORT_SERVICE_URL: "http://zns-import-service:8095"
RESULTS_SERVICE_URL: "http://results-service:8088" RESULTS_SERVICE_URL: "http://results-service:8088"
BILLING_SERVICE_URL: "http://billing-service:8087" BILLING_SERVICE_URL: "http://billing-service:8087"
@ -559,12 +559,12 @@ services:
container_name: "${PROJECT_NAME:-meldestelle}-mail-service" container_name: "${PROJECT_NAME:-meldestelle}-mail-service"
restart: unless-stopped restart: unless-stopped
ports: ports:
- "${MAIL_PORT:-8083:8085}" - "${MAIL_PORT:-8083:8083}"
- "${MAIL_DEBUG_PORT:-5014:5014}" - "${MAIL_DEBUG_PORT:-5014:5014}"
environment: environment:
SPRING_PROFILES_ACTIVE: "${MAIL_SPRING_PROFILES_ACTIVE:-docker}" SPRING_PROFILES_ACTIVE: "${MAIL_SPRING_PROFILES_ACTIVE:-docker}"
DEBUG: "${MAIL_DEBUG:-true}" DEBUG: "${MAIL_DEBUG:-true}"
SERVER_PORT: "${MAIL_SERVER_PORT:-8085}" SERVER_PORT: "${MAIL_SERVER_PORT:-8083}"
# --- KEYCLOAK --- # --- KEYCLOAK ---
SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUER_URI: "${KC_ISSUER_URI:-http://keycloak:8080/realms/meldestelle}" SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUER_URI: "${KC_ISSUER_URI:-http://keycloak:8080/realms/meldestelle}"
@ -601,7 +601,7 @@ services:
condition: "service_healthy" condition: "service_healthy"
healthcheck: healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8085/actuator/health/readiness" ] test: [ "CMD", "wget", "--spider", "-q", "http://localhost:8083/actuator/health/readiness" ]
interval: 15s interval: 15s
timeout: 5s timeout: 5s
retries: 5 retries: 5
@ -724,7 +724,13 @@ services:
# --- CONSUL --- # --- CONSUL ---
SPRING_CLOUD_CONSUL_HOST: "${CONSUL_HOST:-consul}" SPRING_CLOUD_CONSUL_HOST: "${CONSUL_HOST:-consul}"
SPRING_CLOUD_CONSUL_PORT: "${CONSUL_PORT:-8500}" SPRING_CLOUD_CONSUL_PORT: "${CONSUL_HTTP_PORT:-8500}"
SPRING_CLOUD_CONSUL_DISCOVERY_SERVICE_NAME: "${SERIES_SERVICE_NAME:-series-service}"
SPRING_CLOUD_CONSUL_DISCOVERY_PREFER_IP_ADDRESS: "${SERIES_CONSUL_PREFER_IP:-true}"
# --- ZIPKIN ---
MANAGEMENT_ZIPKIN_TRACING_ENDPOINT: "${ZIPKIN_ENDPOINT:-http://zipkin:9411/api/v2/spans}"
MANAGEMENT_TRACING_SAMPLING_PROBABILITY: "${ZIPKIN_SAMPLING_PROBABILITY:-1.0}"
depends_on: depends_on:
postgres: postgres:

View File

@ -2,11 +2,12 @@ package at.mocode.frontend.features.nennung.di
import at.mocode.frontend.features.nennung.domain.NennungRemoteRepository import at.mocode.frontend.features.nennung.domain.NennungRemoteRepository
import at.mocode.frontend.features.nennung.presentation.NennungViewModel import at.mocode.frontend.features.nennung.presentation.NennungViewModel
import io.ktor.client.HttpClient import io.ktor.client.*
import org.koin.core.module.dsl.viewModel import org.koin.core.module.dsl.viewModel
import org.koin.core.qualifier.named
import org.koin.dsl.module import org.koin.dsl.module
val nennungFeatureModule = module { val nennungFeatureModule = module {
single<NennungRemoteRepository> { NennungRemoteRepository(get<HttpClient>()) } single<NennungRemoteRepository> { NennungRemoteRepository(get<HttpClient>(named("apiClient"))) }
viewModel { NennungViewModel() } viewModel { NennungViewModel() }
} }