I've F5 load balancer in front of my environment, and it routes requests to the Docker host where Traefik is running on port (10.55.36.20:8080.) the domain name configured on the F5 is https://devospgyu.com
, and it forwards traffic to the Traefik container (on port 8080).
my problem is My problem is that access to https://devospgyu.com/rabbitmq works fine but https://devospgyu.com/document/api/healthcheck/kibana 404 or https://devospgyu.com/document/api/healthcheck/rabbitmq 404 and its redirect me to https://devospgyu.com/
services:
traefik:
image: registry/library/traefik:v3.1
container_name: traefik
ports:
- "8080:8080"
command:
- "--entryPoints.web.address=:8080"
- "--providers.docker=true"
- "--providers.docker.exposedByDefault=false"
# - "--entryPoints.websecure.address=:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
rabbitmq:
image: registry/library/rabbitmq:3.12.5-management
container_name: rabbitmq
ports:
- "5672:5672"
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_VHOST}
labels:
- "traefik.enable=true"
- "traefik.http.routers.rabbitmq.rule=Host(`devospgyu.com`) && PathPrefix(`/rabbitmq`)"
- "traefik.http.routers.rabbitmq.entryPoints=web"
- "traefik.http.services.rabbitmq.loadBalancer.server.port=15672"
- "traefik.http.middlewares.rabbitmq-strip.stripprefix.prefixes=/rabbitmq"
- "traefik.http.routers.rabbitmq.middlewares=rabbitmq-strip"
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "status"]
interval: 30s
timeout: 10s
retries: 5
restart: unless-stopped
api:
image: registry/poc/document-api:${VERSION}
container_name: api
depends_on:
rabbitmq:
condition: service_healthy
elasticsearch:
condition: service_healthy
environment:
FileStorage__WorkingDir: /mnt/data
RabbitMq__Host: rabbitmq
RabbitMq__User: ${RABBITMQ_USER}
RabbitMq__Pass: ${RABBITMQ_PASSWORD}
RabbitMq__VHost: ${RABBITMQ_VHOST}
volumes:
- ${CIFS_MOUNT}:/mnt/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(`devospgyu.com`) && PathPrefix(`/document`)"
- "traefik.http.routers.api.entryPoints=web"
- "traefik.http.services.api.loadBalancer.server.port=80"
- "traefik.http.middlewares.api-strip.stripprefix.prefixes=/document"
- "traefik.http.routers.api.middlewares=api-strip"
healthcheck:
test: >
bash -c 'curl -sf http://localhost:80/api/healthcheck | grep -q "\"status\":\"Healthy\""'
interval: 30s
timeout: 5s
retries: 3
restart: unless-stopped
kibana:
image: registry/proxy/library/kibana:8.9.1
container_name: ${hostname}-kibana
environment:
- ELASTIC_URL=http://elasticsearch:9200
- XPACK_SECURITY_ENABLED=fals
labels:
- "traefik.enable=true"
- "traefik.http.routers.kibana.rule=Host(`devospgyu.com`) && PathPrefix(`/kibana`)"
- "traefik.http.routers.kibana.entrypoints=web"
- "traefik.http.services.kibana.loadbalancer.server.port=5601"
- "traefik.http.middlewares.kibana-strip.stripprefix.prefixes=/kibana"
- "traefik.http.routers.kibana.middlewares=kibana-strip"
depends_on:
- elasticsearch
I've F5 load balancer in front of my environment, and it routes requests to the Docker host where Traefik is running. The domain name configured on the F5 is https://devospgyu.com
, and it forwards traffic to the Traefik container (on port 8080).
my problem is My problem is that access to https://devospgyu.com/rabbitmq works fine but https://devospgyu.com/document/api/healthcheck/ return 404 also https://devospgyu.com/document/api/healthcheck/kibana/ 404