Visual Editor and MediaWiki - Couldn't connect to server

In this case, it is in localhost:8024/api.php.
From the system level, the API page opens at this address.
From the mediawiki container, the address curl localhost:80/api.php returns the API page.

From he parsoid container it should be mediawiki:80/api.php.
I try to inside the container parsoid wget mediawiki:80/api.php, returns:
100% | ******************************* | 39459 0:00:00 ETA
And echo $(wget mediawiki:80/api.php -q -O -) returns the API page.

But it does not give me anything as I set it up. Still error 500. Maybe the problem is somewhere else?

Thanks. I just managed to set volumes in the meantime.