How do I pass this configuration file when deploying the image via Railway?
lewandowski
HOBBYOP
2 years ago
In Railway I'm trying to install an OpenTelemetry collector from an image.
It works in my local Portainer, where I pass a file that is used in the collector configuration. This file goes on a volume (CMD --config /etc/otelcol-contrib/config.yaml).
My question is, how do I pass this configuration file when deploying the image via Railway? I tried using a volume associated with the service, but I was unable to bind the file.
Help =D
1 Replies
2 years ago
If you need to pass extra configuration files into the image you would need to instead deploy from a repository with a Dockerfile, the Dockerfile would look something like this:
FROM <img>
COPY config.yaml /etc/otelcol-contrib/