Skip to main content
Railway builds the Dockerfile from a connected repo.
1

Add a Dockerfile

2

Modify and commit connection.yaml

The project must use a direct connector, with secrets replaced by ${VAR} environment references:
connection.yaml is gitignored by default. Once its secrets are ${VAR} placeholders, remove it from .gitignore and commit it — the container reads it at runtime.
3

Create the service

In the Railway dashboard: New Project → Deploy from GitHub repo, and select the project’s repo. Railway detects the Dockerfile automatically.
4

Set service variables

On the service, open the Variables tab and add:
  • EVIDENCE_BASIC_USER — HTTP Basic Auth username
  • EVIDENCE_BASIC_PASSWORD — HTTP Basic Auth password
  • every ${VAR} referenced in connection.yaml, here SNOWFLAKE_USER and SNOWFLAKE_PRIVATE_KEY
Use plain service variables — shared variables are for referencing values across multiple services. Mark secrets as sealed to hide their values after saving. No PORT variable is needed — Railway provides one and the image binds to it automatically.