Did you check the diagnostics? It might have trouble connecting to itself in that setup if you’re using a localhost link to access the wordpress.
Like, you access site from localhost:8000 and the simply-static scripts will attempt to connect to that address but internally wordpress is hosted on localhost:80.
A good solution would be using extra_hosts for docker compose, if you’re using the same setup I’ve found elsewhere.
Good luck!