Pelo que entendi redis não consegue consumir no docker, porém é como se estivesse rodando
kafka-1 | [2024-10-01 19:32:58,368] TRACE [Controller id=1] Checking need to trigger auto leader balancing (kafka.controller.KafkaController) nlp_app | Erro ao conectar ao Redis: Error 111 connecting to 127.0.0.1:6379. Connection refused. nlp_app | INFO: 172.19.0.1:48814 - "GET /dados HTTP/1.1" 500 Internal Server Error kafka-1 | [2024-10-01 19:37:58,372] INFO [Controller id=1] Processing automatic preferred replica leader election (kafka.controller.KafkaController) kafka-1 | [2024-10-01 19:37:58,372] TRACE [Controller id=1] Checking need to trigger auto leader balancing (kafka.controller.KafkaController)
ARQUIVO DOCKER_COMPOSE: version: '3.3'
services: app: build: . container_name: nlp_app ports: - "8000:8000" volumes: - .:/app depends_on: - redis - kafka
redis: image: "redis:alpine" container_name: nlp_redis ports: - "6380:6379" command: ["redis-server", "--port", "6379"] volumes: - "sail-redis:/data" healthcheck: test: ["CMD", "redis-cli", "ping"] retries: 3 timeout: 5s