---
title: "Deploy AEX Run"
description: "Self-hosted AI-powered ERP."
category: "AI/ML"
url: https://railway.com/deploy/aex-run
---

# Deploy AEX Run

Self-hosted AI-powered ERP.

**[Deploy AEX Run on Railway](https://railway.com/template/aex-run)**

- **Creator:** André Ahlert
- **Category:** AI/ML
- **Total deploys:** 7

## Template content

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

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

### web https://raw.githubusercontent.com/aex-partners/run/main/assets/icon.svg

- **Image:** ghcr.io/aex-partners/run-web:latest
- **Health check:** /
- **Public domain:** Yes

### 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"`

### api https://raw.githubusercontent.com/aex-partners/run/main/assets/icon.svg

- **Image:** ghcr.io/aex-partners/run-api:latest
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host AEX Run on Railway

  AEX Run is an AI-First, self-hosted, single-tenant ERP. Users interact entirely via chat to manage dynamic database schemas, execute business operations, send emails through SMTP, and run workflow automations. Fully customizable per
  business niche, from retail to manufacturing.

  ## About Hosting AEX Run

  AEX Run requires a PostgreSQL database for persistent storage, Redis for background job queues (email sending, workflow execution), and two application services. The API handles authentication, tRPC endpoints, AI agent processing, and
  SMTP email delivery. The Web frontend is a React SPA served through Caddy, which also reverse proxies API requests over the internal network. On first deploy, database migrations run automatically and the setup wizard guides you through
  organization, email, and AI provider configuration.

  ## Common Use Cases

  - Small and medium businesses looking for a self-hosted ERP they can customize through natural language chat
  - Companies that need a single platform combining CRM, inventory, invoicing, HR, and project management without vendor lock-in
  - Teams that want AI-driven automation for business workflows like lead capture, order processing, and financial tracking

  ## Dependencies for AEX Run Hosting

  - PostgreSQL 17 for data storage, authentication, and dynamic entity schemas
  - Redis 7 for BullMQ background job processing (email delivery, workflow execution, data sync)

  ### Deployment Dependencies

  - [AEX Run GitHub Repository](https://github.com/aex-partners/run)
  - [Drizzle ORM](https://orm.drizzle.team) for database migrations
  - [Better Auth](https://www.better-auth.com) for authentication
  - [Nodemailer](https://nodemailer.com) for SMTP email sending

  ## Why Deploy AEX Run on Railway?

  Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

  By deploying AEX Run on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/aex-run
