monitoring an obfs4-bridge docker container with nyx


I have set up an obfs4-bridge docker container with the help of the tutorial and it also seems to work without any problems. However, I would like to use nyx to monitor it. I have already added port 9051 to the docker compose file and OBFS4V_ControlPort=9051 to the .env file and also OBFS4V_CookieAuthentication=1 as a test.
On the host I have installed nyx but whenever I want to use it it tells me: “Unable to authenticate: socket connection failed ([Errno 104] Connection reset by peer)”.