안녕하세요,
Docker 컨테이너에서 Discourse 인스턴스를 실행 중이며 prometheus-exporter가 설치되어 있습니다. rails 서버를 시작하기 위해 bundle exec rails server -b 0.0.0.0를 사용하고 있으며(/bin/unicorn/을 사용해도 동일한 오류가 발생합니다), 포트 매핑 9045:9045를 지정하고 포트 9045를 노출했습니다.
puma 오류 로그에는 다음과 같은 오류가 표시됩니다:
Prometheus Exporter, failed to send message Cannot assign requested address - connect(2) for "localhost" port 9405
2022-08-09 22:48:25 +0000 Rack app ("GET /metrics" - (172.22.0.1)): #<Errno::EADDRNOTAVAIL: Failed to open TCP connection to localhost:9405 (Cannot assign requested address - connect(2) for "localhost" port 9405)>
prometheus-exporter가 포트 9405에서 TCP 연결을 열 수 있도록 Discourse가 puma에 대해 특별히 수행하는 작업이 있습니까?