“Sever Error” for Containerized Apollo Router

Hi, I’m trying to host apollo router using docker container following the script from https://github.com/apollographql/router/blob/dev/dockerfiles/diy/dockerfiles/Dockerfile.release. I’ve tried locally, used and exposed port, the build and deploy log looks fine, but the endpoint shows “Server Error” and I couldn’t query through graphql playground as well.
8 Replies
JustJake
JustJake3y ago
You set the port correctly?
darian
darian3y ago
I think yes, the ‘43169’ came from $PORT env Sorry, currently https://gateway-canary.up.railway.app/ shows “Application Error”
JustJake
JustJake3y ago
Don’t think we assign em that high Try setting PORT=43169
darian
darian3y ago
In the “Variables” tab?
JustJake
JustJake3y ago
Yep
darian
darian3y ago
okay now its working Should I keep the port configuration to 43169?
JustJake
JustJake3y ago
Yes Well I mean you can change it just gotta update it In the application
darian
darian3y ago
Ah okay, I just realized that railway can customize the port cool, thanks for the support!
Want results from more Discord servers?
Add your server