feat(ingress): lab7 enable HTTPS and upstream mTLS

This commit is contained in:
Голиков Maximillian Антон
2026-11-25 08:02:23 +03:00
parent 94c35d3c2c
commit 317fc4097d
6 changed files with 108 additions and 7 deletions
+15 -2
View File
@@ -215,11 +215,15 @@ services:
condition: service_healthy
mc-init:
condition: service_completed_successfully
volumes:
- ./certs/private/ingress/ca.crt:/run/ingress/ca.crt:ro
- ./certs/private/ingress/api.crt:/run/ingress/api.crt:ro
- ./certs/private/ingress/api.key:/run/ingress/api.key:ro
expose:
- "8080"
stop_grace_period: 15s
healthcheck:
test: ["CMD-SHELL", "wget -q -O - http://127.0.0.1:8080/health/ready >/dev/null || exit 1"]
test: ["CMD-SHELL", "wget -q -O - http://127.0.0.1:8081/health/ready >/dev/null || exit 1"]
interval: 5s
timeout: 3s
retries: 5
@@ -236,6 +240,8 @@ services:
dockerfile: Dockerfile
image: mtusi-messenger-api:lab3
command: ["/worker"]
healthcheck:
disable: true
restart: unless-stopped
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: "${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4318}"
@@ -278,6 +284,8 @@ services:
dockerfile: Dockerfile
image: mtusi-messenger-api:lab3
command: ["/reconciler"]
healthcheck:
disable: true
restart: unless-stopped
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: "${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4318}"
@@ -318,8 +326,13 @@ services:
image: nginx:1.27.4-alpine
restart: unless-stopped
ports:
- "${LB_PORT:-8080}:8080"
- "${HTTPS_PORT:-8443}:8443"
volumes:
- ./certs/private/ingress/ca.crt:/run/ingress/ca.crt:ro
- ./certs/private/ingress/ingress.crt:/run/ingress/ingress.crt:ro
- ./certs/private/ingress/ingress.key:/run/ingress/ingress.key:ro
- ./certs/private/ingress/lb.crt:/run/ingress/lb.crt:ro
- ./certs/private/ingress/lb.key:/run/ingress/lb.key:ro
- ./infra/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
api: