Map $PORT to my dockerfile
I want to deploy a dockerfile on Railway. I have a Dockerfile like this
And I ran
Now everything worked, but I cannot access my service because by default, it is listening on port
7700
.
How do I map it to the $PORT env variable, as specified in the doc?3 Replies
Please provide your project ID or reply with
N/A
. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.You might find these helpful:
- Mapping Railway port to docker container
- Running Dockerfile locally doesn't pass railway environment variables to docker (e.i PORT)
⚠️ experimental feature
No project ID was provided. Closing thread.