---
title: "Deploy 0dtetrader-template"
description: "Self-hosted 0dteTrader backend: API + Postgres + Redis, zero config."
category: "Other"
url: https://railway.com/deploy/0dtetrader-template
---

# Deploy 0dtetrader-template

Self-hosted 0dteTrader backend: API + Postgres + Redis, zero config.

**[Deploy 0dtetrader-template on Railway](https://railway.com/template/0dtetrader-template)**

- **Creator:** tradewithcash2025's Projects
- **Category:** Other
- **Total deploys:** 1

## Template content

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.1
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### api

- **Source:** https://github.com/TradeWithCash2025/0dteTrader
- **Health check:** /v1/health
- **Public domain:** Yes

## Documentation

# Deploy and Host 0dteTrader Backend on Railway

[0dteTrader](https://github.com/Open-Source-Trader/0dteTrader) is an open-source rapid options trading app (iOS + desktop) built on the official Webull OpenAPI, with options analytics from Tradier. This template deploys its complete backend — API, Postgres, and Redis — into your own Railway account.

## About Hosting 0dteTrader Backend

There is nothing to configure. The NestJS API builds from the repo's Dockerfile with a `/v1/health` health check; database migrations run automatically on every deploy. Database and Redis passwords are generated by Railway at deploy time. JWT signing secrets and the credential-vault encryption key are generated by the API on first boot and stored in **your** Postgres, so logins survive restarts and redeploys — set `JWT_ACCESS_SECRET`, `JWT_REFRESH_SECRET`, or `CRED_ENCRYPTION_KEY` on the api service if you prefer to manage them yourself (an environment variable always wins). Broker credentials (Webull keys, Tradier token) are entered inside the app after login and stored encrypted in your database.

## Why Deploy 0dteTrader Backend?

Running your own backend means your trading accounts, broker credentials, and order history live in infrastructure you control — not on someone else's server. One click gives you a private, isolated instance with its own database and its own unique secrets.

To connect the apps: once the three services are green, copy the api service's public URL (Settings → Networking), confirm `/v1/health` returns `{"status":"ok","db":"ok",...}`, then open **Server** on the app's login screen, paste the URL, hit **Test connection**, and **Save**. Full walkthrough: [docs/self-hosting.md](https://github.com/Open-Source-Trader/0dteTrader/blob/main/docs/self-hosting.md).

## Common Use Cases

- Private backend for your own 0DTE options trading with the 0dteTrader iOS/desktop apps
- A shared backend for a small trading group, with each member's broker credentials encrypted per user
- A staging/sandbox environment for contributing to the open-source project

## Dependencies for 0dteTrader Backend Hosting

- The 0dteTrader iOS or desktop app to connect to your instance
- A Webull OpenAPI key (paper or live) and optionally a Tradier API token, entered in-app after login

### Deployment Dependencies

- [0dteTrader repository](https://github.com/Open-Source-Trader/0dteTrader) — source the api service builds from
- [Webull OpenAPI](https://developer.webull.com/) — order execution and chart data
- [Tradier API](https://documentation.tradier.com/) — options chains and Greeks (optional)

**Risk disclosure:** trading involves substantial risk of loss. This software places real orders when connected to a live brokerage account — always validate against a paper (practice) account first. 0dteTrader is an order-entry and market-data tool, not financial or investment advice.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — [Jul'26] Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/0dtetrader-template
