refactoring: Docker-Dateien Api-Gateway

This commit is contained in:
2025-11-26 13:45:57 +01:00
parent b8af69ccf6
commit 596a05b69c
2 changed files with 32 additions and 12 deletions
+27 -9
View File
@@ -24,7 +24,9 @@ services:
retries: 5 retries: 5
start_period: 10s start_period: 10s
networks: networks:
- meldestelle-network meldestelle-network:
aliases:
- postgres
redis: redis:
image: redis:7-alpine image: redis:7-alpine
@@ -41,7 +43,9 @@ services:
timeout: 5s timeout: 5s
retries: 3 retries: 3
networks: networks:
- meldestelle-network meldestelle-network:
aliases:
- redis
# ========================================== # ==========================================
# SECURITY # SECURITY
@@ -77,7 +81,9 @@ services:
retries: 5 retries: 5
start_period: 60s start_period: 60s
networks: networks:
- meldestelle-network meldestelle-network:
aliases:
- keycloak
# ========================================== # ==========================================
# MONITORING & TOOLS # MONITORING & TOOLS
@@ -94,7 +100,9 @@ services:
volumes: volumes:
- pgadmin-data:/var/lib/pgadmin - pgadmin-data:/var/lib/pgadmin
networks: networks:
- meldestelle-network meldestelle-network:
aliases:
- pgadmin
prometheus: prometheus:
image: prom/prometheus:v2.54.1 image: prom/prometheus:v2.54.1
@@ -115,7 +123,9 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
networks: networks:
- meldestelle-network meldestelle-network:
aliases:
- prometheus
grafana: grafana:
image: grafana/grafana:11.3.0 image: grafana/grafana:11.3.0
@@ -138,7 +148,9 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
networks: networks:
- meldestelle-network meldestelle-network:
aliases:
- grafana
# ========================================== # ==========================================
# APPLICATION GATEWAY # APPLICATION GATEWAY
@@ -157,7 +169,9 @@ services:
timeout: 5s timeout: 5s
retries: 3 retries: 3
networks: networks:
- meldestelle-network meldestelle-network:
aliases:
- consul
api-gateway: api-gateway:
build: build:
@@ -201,7 +215,9 @@ services:
keycloak: keycloak:
condition: service_healthy condition: service_healthy
networks: networks:
- meldestelle-network meldestelle-network:
aliases:
- api-gateway
# ========================================== # ==========================================
# MICROSERVICES # MICROSERVICES
@@ -250,7 +266,9 @@ services:
keycloak: keycloak:
condition: service_healthy condition: service_healthy
networks: networks:
- meldestelle-network meldestelle-network:
aliases:
- ping-service
volumes: volumes:
postgres-data: postgres-data:
@@ -81,13 +81,15 @@ spring:
uri: http://localhost:${server.port} uri: http://localhost:${server.port}
predicates: predicates:
- Method=GET - Method=GET
- Path=/gateway-info
filters: filters:
- name: setStatus - name: SetStatus
args: args:
status: 200 status: 200
- name: setResponseHeader - name: SetResponseHeader
args: args:
Content-Type: application/json name: Content-Type
value: application/json
# ============================================================== # ==============================================================
# --- Ping-Service-Integration (optional) --- # --- Ping-Service-Integration (optional) ---