Skip to content
Railway offers an easy deployment experience for Kora nodes with automatic SSL, domain management, and built-in monitoring. This guide will walk through setting up a Kora node on railway with a simple Docker image and the Railway CLI.

​Prerequisites

​Step 1: Prepare Deployment Files

Create a new directory for your Kora node:
Add the sample configuration files to your directory: Then create a Dockerfile that starts from the official Kora v2.0.5 image and adds your configuration:
Dockerfile
Note: Don’t use the repository’s sample Dockerfile. It runs cargo install kora-cli on rust:1.88, and that build now fails because current dependency releases require Rust 1.89. If you want to compile Kora in your image instead, use FROM rust:1.89 (or later) and RUN cargo install kora-cli@2.0.5 --locked.
Your directory should now look like:

​Step 2: Deploy to Railway

From your project directory, login to Railway
Follow the on-screen instructions to log in with your account. Initialize Railway project in your directory.
Railway will prompt you to:
  1. Create a new project or select existing
  2. Choose a project name (e.g., “my-kora-node”)

​Deploy Your Application

This will:
  • Upload your files to Railway
  • Build the Docker image
  • Deploy your application
Expected output:
The container stops right away, and the deploy logs show Environment variable 'KORA_PRIVATE_KEY' required for signer 'main_signer' is not set. That’s expected: the environment variables aren’t configured yet. Set them next.

​Step 3: Configure Environment Variables

Open your Railway dashboard at railway.app and navigate to your project. In your project, click “Settings” > “Variables”
Railway Environment Variables for
Kora
Railway Environment Variables for Kora
Add these environment variables:
VariableValueDescription
RPC_URLhttps://api.mainnet.solana.comSolana RPC endpoint
KORA_PRIVATE_KEY[12,34,...] or a base58 stringYour Solana private key: the byte array from a keypair file, or base58
RUST_LOGinfoLog level for debugging
Security Warning: Your private key has access to SOL for paying fees. Use a dedicated keypair for your Kora node and only fund it with the SOL you’re willing to spend on transaction fees. For more information on signers, see the Signers Guide.

​Getting Your Private Key

If you need to create a new keypair:
solana-keygen writes the key as a JSON array of 64 numbers. Kora accepts that array, a base58-encoded private key, or a path to a keypair file (see Signers). Fund the public key with enough SOL to pay the transaction fees your node will sponsor.

​Step 4: Redeploy

After saving your variables, you will be prompted to redeploy your server—do that.

​Step 5: Test Your Deployment

​Generate Public Endpoint

To send requests to your endpoint, you will need to generate a public Domain. From your deployment, go to “Settings” > “Generate domain”.
Railway Domain
Setup
Railway Domain Setup
Use the default port, “8080” and click “Generate Domain”. You should get a domain like https://my-kora-node.railway.app/

​Test Configuration Endpoint

Expected response:
Your Kora node is now live. Need Help?