---
title: "Deploy Relaticle agent-native CRM"
description: "Agent-native CRM with durable records, uploads, PostgreSQL, and Redis."
category: "AI/ML"
url: https://railway.com/deploy/relaticle-agent-native-crm
---

# Deploy Relaticle agent-native CRM

Agent-native CRM with durable records, uploads, PostgreSQL, and Redis.

**[Deploy Relaticle agent-native CRM on Railway](https://railway.com/template/relaticle-agent-native-crm)**

- **Creator:** Anton Orel's Projects
- **Category:** AI/ML
- **Total deploys:** 3

## Template content

### Relaticle

- **Image:** ghcr.io/relaticle/relaticle@sha256:ded723fe642a8cb9ea711d523747da05fe9d2f42099150704ed1f5845a2020c9
- **Start command:** `/bin/sh -euc 'php /var/www/html/artisan config:clear; until php /var/www/html/artisan migrate --force; do sleep 3; done; php /var/www/html/artisan storage:link || true; php /var/www/html/artisan config:cache; php /var/www/html/artisan route:cache; php /var/www/html/artisan view:cache; php /var/www/html/artisan event:cache; if ! php -r '\''$pdo = new PDO("pgsql:host=".getenv("DB_HOST").";port=".getenv("DB_PORT").";dbname=".getenv("DB_DATABASE"), getenv("DB_USERNAME"), getenv("DB_PASSWORD")); $query = $pdo->prepare("select 1 from system_administrators where email = ? limit 1"); $query->execute([getenv("INITIAL_ADMIN_EMAIL")]); exit($query->fetchColumn() ? 0 : 1);'\''; then php /var/www/html/artisan sysadmin:create --name="$INITIAL_ADMIN_NAME" --email="$INITIAL_ADMIN_EMAIL" --password="$INITIAL_ADMIN_PASSWORD" --no-interaction; fi; mkdir -p /tmp/relaticle-nginx; envsubst "\${NGINX_ERROR_LOG} \${LOG_OUTPUT_LEVEL} \${NGINX_SERVER_TOKENS} \${HEALTHCHECK_PATH} \${NGINX_ACCESS_LOG} \${NGINX_CLIENT_MAX_BODY_SIZE}" < /etc/nginx/nginx.conf.template | sed "s#/var/run/nginx.pid#/tmp/relaticle-nginx/nginx.pid#; s#/etc/nginx/conf.d/\\*.conf#/tmp/relaticle-nginx/default.conf#" > /tmp/relaticle-nginx/nginx.conf; envsubst "\${NGINX_HTTP_PORT} \${NGINX_WEBROOT} \${NGINX_FASTCGI_BUFFERS} \${NGINX_FASTCGI_BUFFER_SIZE} \${PHP_MAX_EXECUTION_TIME}" < /etc/nginx/site-opts.d/http.conf.template | sed "s#include        fastcgi_params;#include /etc/nginx/fastcgi_params;\\n        fastcgi_param HTTP_X_FORWARDED_PROTO \$http_x_forwarded_proto;\\n        fastcgi_param HTTPS \$http_x_forwarded_proto;#g" > /tmp/relaticle-nginx/http.conf; sed "s#/etc/nginx/site-opts.d/http.conf#/tmp/relaticle-nginx/http.conf#" /etc/nginx/sites-available/ssl-off > /tmp/relaticle-nginx/default.conf; php /var/www/html/artisan horizon & horizon_pid=$!; php /var/www/html/artisan schedule:work & scheduler_pid=$!; php-fpm --nodaemonize & fpm_pid=$!; nginx -c /tmp/relaticle-nginx/nginx.conf & nginx_pid=$!; stop() { kill -TERM "$horizon_pid" "$scheduler_pid" "$fpm_pid" "$nginx_pid" 2>/dev/null || true; wait || true; }; trap stop TERM INT EXIT; while kill -0 "$horizon_pid" 2>/dev/null && kill -0 "$scheduler_pid" 2>/dev/null && kill -0 "$fpm_pid" 2>/dev/null && kill -0 "$nginx_pid" 2>/dev/null; do sleep 5; done; exit 1'`
- **Health check:** /up
- **Public domain:** Yes

### Relaticle Redis

- **Image:** redis@sha256:e7723ff73d963f5cc6d9c4643ea3d989527a402a319239054e9472a7fb9219a2
- **Start command:** `/bin/sh -euc 'exec redis-server --appendonly yes --requirepass "$REDIS_PASSWORD"'`

### Relaticle PostgreSQL

- **Image:** postgres@sha256:742f40ea20b9ff2ff31db5458d127452988a2164df9e17441e191f3b72252193

## Documentation

# Deploy and Host Relaticle agent-native CRM

Relaticle is an open-source, self-hosted CRM built for people and AI agents. This Railway template deploys the CRM, its Horizon queue workers and scheduler, PostgreSQL, Redis, and durable storage with generated internal secrets.

## About Hosting Relaticle agent-native CRM

Relaticle provides companies, people, opportunities, tasks, notes, customizable fields, multi-team isolation, a REST API, and an MCP server for AI-agent access. The template exposes only Relaticle publicly; PostgreSQL and Redis stay on Railway's private network. An initial system administrator is created automatically from the email you provide and a generated password.

## Why Deploy Relaticle agent-native CRM on Railway

Railway supplies private service networking, persistent volumes, generated secrets, health checks, and HTTPS routing around Relaticle's official immutable image. The application processes share one service and volume, so uploads and imports remain available to background jobs without requiring external object storage.

## Common Use Cases

- Run a private CRM for a small team without per-seat SaaS pricing.
- Connect Claude, GPT, or another MCP-capable agent to team-scoped CRM tools.
- Build internal automations against Relaticle's REST API.
- Evaluate customizable, multi-team CRM workflows on infrastructure you control.

## Dependencies for Relaticle agent-native CRM

Relaticle `3.3.19` runs on its official container image with PostgreSQL 17 and Redis 7. An OpenAI or Anthropic API key is optional and enables the corresponding AI chat models. SMTP is optional but required for real invitation and notification delivery.

### Deployment Dependencies

- Relaticle `3.3.19`
- PostgreSQL 17
- Redis 7
- Three Railway persistent volumes
- At least 2 GB RAM across the deployment


## 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/relaticle-agent-native-crm
