504 Gateway Time-out

I’m using Ubuntu. After command docker-compose up -d I go to any browser and go to localhost. But I get an error 504 Gateway Time-out and I can’t fix it. Please, help me!

I usually get a 504 for about 5-10 seconds after initially starting the devilbox. But then it works fine. I assume you’ve tried again after 20 seconds or so?