How to transform "docker run" commands into railway.json or Custom Start Command

Hi there! I'm trying to make a service using this docker image: https://hub.docker.com/r/pixboost/transformimgs and I want to allow changing the port value and setting the 3 options as environment variables. The docs describe on how to set this using docker run like so:
$ docker run -p 8080:8080 pixboost/transformimgs [OPTIONS]
$ docker run -p 8080:8080 pixboost/transformimgs [OPTIONS]
So my question is is there a way to do this with the railway.json or Custom Start Command? I had a hard time trying to find the answer beforehand so I'm asking this here as a future reference for anyone who needs this
4 Replies
Percy
Percyβ€’2mo ago
Project ID: N/A
Brody
Brodyβ€’2mo ago
@Ping for toast this would take you 3 minutes to make a template
Duchess
Duchessβ€’2mo ago
New reply sent from Help Station thread:
I have the same question. I run docker run -p 8080:8080 wppconnect/server-cli:latest --name wppserver --secretKey $SECRET_KEY --port $PORT --frontend localy, but I have no idea how to set this in the start command. I tried in many ways, but it did not work
You're seeing this because this thread has been automatically linked to the Help Station thread.