How to Add Arguments to Docker Run Command on Railway?
lucasps136
HOBBYOP

2 years ago

Hi there,

I’m trying to deploy a service using the Docker image wppconnect/server-cli on Railway. I need to run the container with specific arguments:

yaml
Copiar código
docker run -p 8080:8080 wppconnect/server-cli:latest --name wppserver --secretKey My53cr3tKY --port 8080 --frontend
I've set the environment variables in Railway, but I can't find a way to add these command-line arguments directly in the Railway configuration. Is there a way to achieve this on Railway? Any guidance or workarounds would be appreciated!

Thanks!

4 Replies

lucasps136
HOBBYOP

2 years ago

sory the docker script is wrong
docker run -p 8080:8080 --name wppconnect-server-cli --rm wppconnect/server-cli:latest wppserver --secretKey 1234 --port 8080 --frontend


Every image is different so I think this may benefit from the involvement from the community, changing visibility of thread.


This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.


brody
EMPLOYEE

2 years ago

You would need to setup a service to deploy the wppconnect/server-cli:latest image and then you would have to see all the needed service variables and other configurations.

This would not have anything to do with docker run since the end user does not have any access to that.


Loading...