Map $PORT to my dockerfile

I want to deploy a dockerfile on Railway. I have a Dockerfile like this
FROM getmeili/meilisearch:v1.0

And I ran
railway up

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?