a year 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!
2 Replies
a year ago
You would need to set all this up as a Railway service, nothing to do with docker run at all.
a year ago
it worked!!! You saved my life! Thank you!
But how can I setup the env variables in Dockerfile? I tried in many ways and nothing worked