Map $PORT to my dockerfile

RRise2/10/2023
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?