{
  "manifest_version": "1.0.0",
  "template": {
    "id": "90166fc7-b13c-4c33-ae22-f2d48a9aa677",
    "slug": "huly-workspace",
    "name": "Huly",
    "description": "All-in-one workspace for issues, documents, chat and planning",
    "url": "https://railway.com/deploy/huly-workspace",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/huly-railway"
    }
  },
  "services": [
    {
      "name": "stats",
      "source": {
        "image": "hardcoreeng/stats:v0.7.426"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "elastic",
      "source": {
        "repo": "https://github.com/gridalpha/huly-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/share/elasticsearch/data",
      "http": false
    },
    {
      "name": "account",
      "source": {
        "image": "hardcoreeng/account:v0.7.426"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "front",
      "source": {
        "image": "hardcoreeng/front:v0.7.426"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "proxy",
      "source": {
        "repo": "https://github.com/gridalpha/huly-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "rekoni",
      "source": {
        "image": "hardcoreeng/rekoni-service:v0.7.426"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "fulltext",
      "source": {
        "image": "hardcoreeng/fulltext:v0.7.426"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "transactor",
      "source": {
        "image": "hardcoreeng/transactor:v0.7.426"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "kvs",
      "source": {
        "image": "hardcoreeng/hulykvs:v0.7.426"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "kafka",
      "source": {
        "image": "apache/kafka:3.9.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/kafka/data",
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "workspace",
      "source": {
        "image": "hardcoreeng/workspace:v0.7.426"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "collaborator",
      "source": {
        "image": "hardcoreeng/collaborator:v0.7.426"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "stats",
      "description": "Metrics collector listening port",
      "secret": false,
      "strategy": "default",
      "default": "4900"
    },
    {
      "key": "SERVER_SECRET",
      "service": "stats",
      "description": "Shared platform token secret",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "elastic",
      "description": "Elasticsearch HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "ES_JAVA_OPTS",
      "service": "elastic",
      "description": "JVM heap for the index",
      "secret": false,
      "strategy": "default",
      "default": "-Xms1g -Xmx1g"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "elastic",
      "description": "Start as root so the chown works",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "TAKE_FILE_OWNERSHIP",
      "service": "elastic",
      "description": "Chown the data volume at boot",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "elastic",
      "description": "Selects the search image",
      "secret": false,
      "strategy": "default",
      "default": "elastic/Dockerfile"
    },
    {
      "key": "PORT",
      "service": "account",
      "description": "Account API listening port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "DB_URL",
      "service": "account",
      "description": "PostgreSQL connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRONT_URL",
      "service": "account",
      "description": "Public site root",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_BUCKET",
      "service": "account",
      "description": "Bucket holding all workspaces",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STATS_URL",
      "service": "account",
      "description": "Metrics collector endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "account",
      "description": "Object storage endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_PORT",
      "service": "account",
      "description": "Same port, read by the app",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "ACCOUNTS_URL",
      "service": "account",
      "description": "Public account API",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ACCOUNT_PORT",
      "service": "account",
      "description": "Same port, legacy name",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "QUEUE_CONFIG",
      "service": "account",
      "description": "Kafka broker address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MODEL_ENABLED",
      "service": "account",
      "description": "Enable all workspace modules",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "account",
      "description": "Object storage access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "account",
      "description": "Object storage secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_SECRET",
      "service": "account",
      "description": "Signs every platform token",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DISABLE_SIGNUP",
      "service": "account",
      "description": "Set true to close registration",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TRANSACTOR_URL",
      "service": "account",
      "description": "Internal and public transactor",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "front",
      "description": "Web server listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TITLE",
      "service": "front",
      "description": "Product name in the browser tab",
      "secret": false,
      "strategy": "default",
      "default": "Huly"
    },
    {
      "key": "GMAIL_URL",
      "service": "front",
      "description": "Optional Gmail service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_BUCKET",
      "service": "front",
      "description": "Bucket holding all workspaces",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STATS_URL",
      "service": "front",
      "description": "Metrics collector endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REKONI_URL",
      "service": "front",
      "description": "Text extraction endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "UPLOAD_URL",
      "service": "front",
      "description": "Path the client uploads to",
      "secret": false,
      "strategy": "default",
      "default": "/files"
    },
    {
      "key": "ELASTIC_URL",
      "service": "front",
      "description": "Search index endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "front",
      "description": "Object storage endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_PORT",
      "service": "front",
      "description": "Same port, read by the app",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ACCOUNTS_URL",
      "service": "front",
      "description": "Account API for the browser",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CALENDAR_URL",
      "service": "front",
      "description": "Optional calendar service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TELEGRAM_URL",
      "service": "front",
      "description": "Optional Telegram service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "front",
      "description": "Object storage access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "front",
      "description": "Object storage secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_SECRET",
      "service": "front",
      "description": "Shared platform token secret",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DISABLE_SIGNUP",
      "service": "front",
      "description": "Set true to close registration",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LAST_NAME_FIRST",
      "service": "front",
      "description": "Name ordering in lists",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "COLLABORATOR_URL",
      "service": "front",
      "description": "Document editing socket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DEFAULT_LANGUAGE",
      "service": "front",
      "description": "Interface language",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "DISABLED_FEATURES",
      "service": "front",
      "description": "Modules without a backing service",
      "secret": false,
      "strategy": "default",
      "default": "auto-translate,mailboxes"
    },
    {
      "key": "ACCOUNTS_URL_INTERNAL",
      "service": "front",
      "description": "Account API for the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "proxy",
      "description": "HTTP port the router listens on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "FRONT_HOST",
      "service": "proxy",
      "description": "Web client upstream",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "STATS_HOST",
      "service": "proxy",
      "description": "Stats upstream",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REKONI_HOST",
      "service": "proxy",
      "description": "Rekoni upstream",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ACCOUNT_HOST",
      "service": "proxy",
      "description": "Account service upstream",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MAX_UPLOAD_SIZE",
      "service": "proxy",
      "description": "Largest accepted request body",
      "secret": false,
      "strategy": "default",
      "default": "100MB"
    },
    {
      "key": "TRANSACTOR_HOST",
      "service": "proxy",
      "description": "Transactor upstream",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "COLLABORATOR_HOST",
      "service": "proxy",
      "description": "Collaborator upstream",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "proxy",
      "description": "Selects the router image",
      "secret": false,
      "strategy": "default",
      "default": "proxy/Dockerfile"
    },
    {
      "key": "PORT",
      "service": "rekoni",
      "description": "Extraction service listening port",
      "secret": false,
      "strategy": "default",
      "default": "4004"
    },
    {
      "key": "SECRET",
      "service": "rekoni",
      "description": "Shared platform token secret",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVICE_ID",
      "service": "rekoni",
      "description": "Service identity in tokens",
      "secret": false,
      "strategy": "default",
      "default": "rekoni-service"
    },
    {
      "key": "PORT",
      "service": "fulltext",
      "description": "Indexer listening port",
      "secret": false,
      "strategy": "default",
      "default": "4700"
    },
    {
      "key": "DB_URL",
      "service": "fulltext",
      "description": "PostgreSQL connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET",
      "service": "fulltext",
      "description": "Bucket holding all workspaces",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STATS_URL",
      "service": "fulltext",
      "description": "Metrics collector endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REKONI_URL",
      "service": "fulltext",
      "description": "Text extraction endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "fulltext",
      "description": "Object storage endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACCOUNTS_URL",
      "service": "fulltext",
      "description": "Private account API",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUEUE_CONFIG",
      "service": "fulltext",
      "description": "Kafka broker address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "fulltext",
      "description": "Object storage access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "fulltext",
      "description": "Object storage secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_SECRET",
      "service": "fulltext",
      "description": "Shared platform token secret",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FULLTEXT_DB_URL",
      "service": "fulltext",
      "description": "Elasticsearch endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ELASTIC_INDEX_NAME",
      "service": "fulltext",
      "description": "Index name to maintain",
      "secret": false,
      "strategy": "default",
      "default": "huly_storage_index"
    },
    {
      "key": "PORT",
      "service": "transactor",
      "description": "Transactor listening port",
      "secret": false,
      "strategy": "default",
      "default": "3333"
    },
    {
      "key": "DB_URL",
      "service": "transactor",
      "description": "PostgreSQL connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRONT_URL",
      "service": "transactor",
      "description": "Public site root",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_BUCKET",
      "service": "transactor",
      "description": "Bucket holding all workspaces",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STATS_URL",
      "service": "transactor",
      "description": "Metrics collector endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "transactor",
      "description": "Object storage endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_PORT",
      "service": "transactor",
      "description": "Same port, read by the app",
      "secret": false,
      "strategy": "default",
      "default": "3333"
    },
    {
      "key": "ACCOUNTS_URL",
      "service": "transactor",
      "description": "Private account API",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FULLTEXT_URL",
      "service": "transactor",
      "description": "Search service endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUEUE_CONFIG",
      "service": "transactor",
      "description": "Kafka broker address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "transactor",
      "description": "Object storage access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "transactor",
      "description": "Object storage secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_SECRET",
      "service": "transactor",
      "description": "Shared platform token secret",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LAST_NAME_FIRST",
      "service": "transactor",
      "description": "Name ordering in lists",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "kvs",
      "description": "Key-value store listening port",
      "secret": false,
      "strategy": "default",
      "default": "8094"
    },
    {
      "key": "HULY_BIND_HOST",
      "service": "kvs",
      "description": "Listen on all interfaces",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "HULY_BIND_PORT",
      "service": "kvs",
      "description": "Same port, read by the app",
      "secret": false,
      "strategy": "default",
      "default": "8094"
    },
    {
      "key": "HULY_TOKEN_SECRET",
      "service": "kvs",
      "description": "Shared platform token secret",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HULY_DB_CONNECTION",
      "service": "kvs",
      "description": "PostgreSQL connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLUSTER_ID",
      "service": "kafka",
      "description": "Stable cluster identity",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "KAFKA_NODE_ID",
      "service": "kafka",
      "description": "Broker and controller id",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "KAFKA_LOG_DIRS",
      "service": "kafka",
      "description": "Log directory on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/kafka/data/logs"
    },
    {
      "key": "KAFKA_HEAP_OPTS",
      "service": "kafka",
      "description": "JVM heap for the broker",
      "secret": false,
      "strategy": "default",
      "default": "-Xms512m -Xmx1g"
    },
    {
      "key": "KAFKA_LISTENERS",
      "service": "kafka",
      "description": "Client and controller listeners",
      "secret": false,
      "strategy": "default",
      "default": "PLAINTEXT://:9092,CONTROLLER://:9093"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "kafka",
      "description": "Start as root so the volume is writable",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "KAFKA_PROCESS_ROLES",
      "service": "kafka",
      "description": "Single-node KRaft mode",
      "secret": false,
      "strategy": "default",
      "default": "broker,controller"
    },
    {
      "key": "KAFKA_MIN_INSYNC_REPLICAS",
      "service": "kafka",
      "description": "One in-sync replica",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "KAFKA_ADVERTISED_LISTENERS",
      "service": "kafka",
      "description": "Address given to clients",
      "secret": false,
      "strategy": "default",
      "default": "PLAINTEXT://kafka.railway.internal:9092"
    },
    {
      "key": "KAFKA_CONTROLLER_QUORUM_VOTERS",
      "service": "kafka",
      "description": "Single-node quorum",
      "secret": false,
      "strategy": "default",
      "default": "1@localhost:9093"
    },
    {
      "key": "KAFKA_AUTO_CREATE_TOPICS_ENABLE",
      "service": "kafka",
      "description": "Allow implicit topic creation",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "KAFKA_CONTROLLER_LISTENER_NAMES",
      "service": "kafka",
      "description": "Which listener is the controller",
      "secret": false,
      "strategy": "default",
      "default": "CONTROLLER"
    },
    {
      "key": "KAFKA_DEFAULT_REPLICATION_FACTOR",
      "service": "kafka",
      "description": "One copy for new topics",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "KAFKA_INTER_BROKER_LISTENER_NAME",
      "service": "kafka",
      "description": "Which listener brokers use",
      "secret": false,
      "strategy": "default",
      "default": "PLAINTEXT"
    },
    {
      "key": "KAFKA_TRANSACTION_STATE_LOG_MIN_ISR",
      "service": "kafka",
      "description": "One in-sync replica",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "KAFKA_LISTENER_SECURITY_PROTOCOL_MAP",
      "service": "kafka",
      "description": "Protocol per listener",
      "secret": false,
      "strategy": "default",
      "default": "CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT"
    },
    {
      "key": "KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS",
      "service": "kafka",
      "description": "Join consumer groups immediately",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR",
      "service": "kafka",
      "description": "One copy, single node",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR",
      "service": "kafka",
      "description": "One copy, single node",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "DB_URL",
      "service": "workspace",
      "description": "PostgreSQL connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET",
      "service": "workspace",
      "description": "Bucket holding all workspaces",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STATS_URL",
      "service": "workspace",
      "description": "Metrics collector endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "workspace",
      "description": "Object storage endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACCOUNTS_URL",
      "service": "workspace",
      "description": "Private account API",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUEUE_CONFIG",
      "service": "workspace",
      "description": "Kafka broker address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MODEL_ENABLED",
      "service": "workspace",
      "description": "Enable all workspace modules",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "workspace",
      "description": "Object storage access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "workspace",
      "description": "Object storage secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_SECRET",
      "service": "workspace",
      "description": "Shared platform token secret",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TRANSACTOR_URL",
      "service": "workspace",
      "description": "Internal and public transactor",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ACCOUNTS_DB_URL",
      "service": "workspace",
      "description": "Account tables connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "collaborator",
      "description": "Collaborator listening port",
      "secret": false,
      "strategy": "default",
      "default": "3078"
    },
    {
      "key": "SECRET",
      "service": "collaborator",
      "description": "Shared platform token secret",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET",
      "service": "collaborator",
      "description": "Bucket holding all workspaces",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STATS_URL",
      "service": "collaborator",
      "description": "Metrics collector endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "collaborator",
      "description": "Object storage endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACCOUNTS_URL",
      "service": "collaborator",
      "description": "Private account API",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "collaborator",
      "description": "Object storage access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "collaborator",
      "description": "Object storage secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "COLLABORATOR_PORT",
      "service": "collaborator",
      "description": "Same port, read by the app",
      "secret": false,
      "strategy": "default",
      "default": "3078"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "huly-workspace"
      }
    },
    "cli": "railway deploy --template huly-workspace",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "90166fc7-b13c-4c33-ae22-f2d48a9aa677",
            "serializedConfig": {
              "buckets": {
                "2f14a513-c91b-4957-9ef9-6d7da85953dc": {
                  "name": "huly-files"
                }
              },
              "services": {
                "26a1691a-b088-486a-83da-fa6fa279a960": {
                  "icon": "https://raw.githubusercontent.com/hcengineering/platform/v0.7.426/dev/prod/public/huly/icon-256.png",
                  "name": "stats",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "hardcoreeng/stats:v0.7.426"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Metrics collector listening port",
                      "defaultValue": "4900"
                    },
                    "SERVER_SECRET": {
                      "isOptional": false,
                      "description": "Shared platform token secret",
                      "defaultValue": "${{account.SERVER_SECRET}}"
                    }
                  }
                },
                "43ad0b2e-a040-4cba-8656-25ae318a2972": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/elasticsearch.svg",
                  "name": "elastic",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/huly-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Elasticsearch HTTP port",
                      "defaultValue": "9200"
                    },
                    "ES_JAVA_OPTS": {
                      "isOptional": false,
                      "description": "JVM heap for the index",
                      "defaultValue": "-Xms1g -Xmx1g"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Start as root so the chown works",
                      "defaultValue": "0"
                    },
                    "TAKE_FILE_OWNERSHIP": {
                      "isOptional": false,
                      "description": "Chown the data volume at boot",
                      "defaultValue": "true"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the search image",
                      "defaultValue": "elastic/Dockerfile"
                    }
                  },
                  "volumeMounts": {
                    "43ad0b2e-a040-4cba-8656-25ae318a2972": {
                      "mountPath": "/usr/share/elasticsearch/data"
                    }
                  }
                },
                "7ab8828a-bffc-4f59-8225-7be3813428d4": {
                  "icon": "https://raw.githubusercontent.com/hcengineering/platform/v0.7.426/dev/prod/public/huly/icon-256.png",
                  "name": "account",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'SK=$(printf %s \"$S3_SECRET_KEY\" | sed \"s/+/%2B/g\"); export STORAGE_CONFIG=\"s3|$S3_ENDPOINT?accessKey=$S3_ACCESS_KEY&secretKey=$SK&region=auto&rootBucket=$S3_BUCKET\"; exec node bundle.js'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "hardcoreeng/account:v0.7.426"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Account API listening port",
                      "defaultValue": "3000"
                    },
                    "DB_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "FRONT_URL": {
                      "isOptional": false,
                      "description": "Public site root",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket holding all workspaces",
                      "defaultValue": "${{huly-files.BUCKET}}"
                    },
                    "STATS_URL": {
                      "isOptional": false,
                      "description": "Metrics collector endpoint",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}/_stats"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint",
                      "defaultValue": "${{huly-files.ENDPOINT}}"
                    },
                    "SERVER_PORT": {
                      "isOptional": false,
                      "description": "Same port, read by the app",
                      "defaultValue": "3000"
                    },
                    "ACCOUNTS_URL": {
                      "isOptional": false,
                      "description": "Public account API",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}/_accounts"
                    },
                    "ACCOUNT_PORT": {
                      "isOptional": false,
                      "description": "Same port, legacy name",
                      "defaultValue": "3000"
                    },
                    "QUEUE_CONFIG": {
                      "isOptional": false,
                      "description": "Kafka broker address",
                      "defaultValue": "${{kafka.RAILWAY_PRIVATE_DOMAIN}}:9092"
                    },
                    "MODEL_ENABLED": {
                      "isOptional": false,
                      "description": "Enable all workspace modules",
                      "defaultValue": "*"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Object storage access key",
                      "defaultValue": "${{huly-files.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Object storage secret key",
                      "defaultValue": "${{huly-files.SECRET_ACCESS_KEY}}"
                    },
                    "SERVER_SECRET": {
                      "isOptional": false,
                      "description": "Signs every platform token",
                      "defaultValue": "{{SERVER_SECRET}}"
                    },
                    "DISABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "Set true to close registration",
                      "defaultValue": "false"
                    },
                    "TRANSACTOR_URL": {
                      "isOptional": false,
                      "description": "Internal and public transactor",
                      "defaultValue": "ws://${{transactor.RAILWAY_PRIVATE_DOMAIN}}:3333;wss://${{proxy.RAILWAY_PUBLIC_DOMAIN}}/_transactor"
                    }
                  }
                },
                "8877d803-3679-4f66-bb75-d4ae8c303f48": {
                  "icon": "https://raw.githubusercontent.com/hcengineering/platform/v0.7.426/dev/prod/public/huly/icon-256.png",
                  "name": "front",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'SK=$(printf %s \"$S3_SECRET_KEY\" | sed \"s/+/%2B/g\"); export STORAGE_CONFIG=\"s3|$S3_ENDPOINT?accessKey=$S3_ACCESS_KEY&secretKey=$SK&region=auto&rootBucket=$S3_BUCKET\"; exec node ./bundle.js'",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "hardcoreeng/front:v0.7.426"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Web server listening port",
                      "defaultValue": "8080"
                    },
                    "TITLE": {
                      "isOptional": false,
                      "description": "Product name in the browser tab",
                      "defaultValue": "Huly"
                    },
                    "GMAIL_URL": {
                      "isOptional": false,
                      "description": "Optional Gmail service",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}/_gmail"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket holding all workspaces",
                      "defaultValue": "${{huly-files.BUCKET}}"
                    },
                    "STATS_URL": {
                      "isOptional": false,
                      "description": "Metrics collector endpoint",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}/_stats"
                    },
                    "REKONI_URL": {
                      "isOptional": false,
                      "description": "Text extraction endpoint",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}/_rekoni"
                    },
                    "UPLOAD_URL": {
                      "isOptional": false,
                      "description": "Path the client uploads to",
                      "defaultValue": "/files"
                    },
                    "ELASTIC_URL": {
                      "isOptional": false,
                      "description": "Search index endpoint",
                      "defaultValue": "http://${{elastic.RAILWAY_PRIVATE_DOMAIN}}:9200"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint",
                      "defaultValue": "${{huly-files.ENDPOINT}}"
                    },
                    "SERVER_PORT": {
                      "isOptional": false,
                      "description": "Same port, read by the app",
                      "defaultValue": "8080"
                    },
                    "ACCOUNTS_URL": {
                      "isOptional": false,
                      "description": "Account API for the browser",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}/_accounts"
                    },
                    "CALENDAR_URL": {
                      "isOptional": false,
                      "description": "Optional calendar service",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}/_calendar"
                    },
                    "TELEGRAM_URL": {
                      "isOptional": false,
                      "description": "Optional Telegram service",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}/_telegram"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Object storage access key",
                      "defaultValue": "${{huly-files.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Object storage secret key",
                      "defaultValue": "${{huly-files.SECRET_ACCESS_KEY}}"
                    },
                    "SERVER_SECRET": {
                      "isOptional": false,
                      "description": "Shared platform token secret",
                      "defaultValue": "${{account.SERVER_SECRET}}"
                    },
                    "DISABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "Set true to close registration",
                      "defaultValue": "false"
                    },
                    "LAST_NAME_FIRST": {
                      "isOptional": false,
                      "description": "Name ordering in lists",
                      "defaultValue": "true"
                    },
                    "COLLABORATOR_URL": {
                      "isOptional": false,
                      "description": "Document editing socket",
                      "defaultValue": "wss://${{proxy.RAILWAY_PUBLIC_DOMAIN}}/_collaborator"
                    },
                    "DEFAULT_LANGUAGE": {
                      "isOptional": false,
                      "description": "Interface language",
                      "defaultValue": "en"
                    },
                    "DISABLED_FEATURES": {
                      "isOptional": false,
                      "description": "Modules without a backing service",
                      "defaultValue": "auto-translate,mailboxes"
                    },
                    "ACCOUNTS_URL_INTERNAL": {
                      "isOptional": false,
                      "description": "Account API for the server",
                      "defaultValue": "http://${{account.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    }
                  }
                },
                "8eec5016-7bf4-417e-a89d-43d32dec1dd0": {
                  "icon": "https://raw.githubusercontent.com/hcengineering/platform/v0.7.426/dev/prod/public/huly/icon-256.png",
                  "name": "proxy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/huly-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port the router listens on",
                      "defaultValue": "8080"
                    },
                    "FRONT_HOST": {
                      "isOptional": false,
                      "description": "Web client upstream",
                      "defaultValue": "${{front.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "STATS_HOST": {
                      "isOptional": false,
                      "description": "Stats upstream",
                      "defaultValue": "${{stats.RAILWAY_PRIVATE_DOMAIN}}:4900"
                    },
                    "REKONI_HOST": {
                      "isOptional": false,
                      "description": "Rekoni upstream",
                      "defaultValue": "${{rekoni.RAILWAY_PRIVATE_DOMAIN}}:4004"
                    },
                    "ACCOUNT_HOST": {
                      "isOptional": false,
                      "description": "Account service upstream",
                      "defaultValue": "${{account.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "MAX_UPLOAD_SIZE": {
                      "isOptional": false,
                      "description": "Largest accepted request body",
                      "defaultValue": "100MB"
                    },
                    "TRANSACTOR_HOST": {
                      "isOptional": false,
                      "description": "Transactor upstream",
                      "defaultValue": "${{transactor.RAILWAY_PRIVATE_DOMAIN}}:3333"
                    },
                    "COLLABORATOR_HOST": {
                      "isOptional": false,
                      "description": "Collaborator upstream",
                      "defaultValue": "${{collaborator.RAILWAY_PRIVATE_DOMAIN}}:3078"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the router image",
                      "defaultValue": "proxy/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "9676327c-0612-4829-bc83-c7853e1be7bd": {
                  "icon": "https://raw.githubusercontent.com/hcengineering/platform/v0.7.426/dev/prod/public/huly/icon-256.png",
                  "name": "rekoni",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "hardcoreeng/rekoni-service:v0.7.426"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Extraction service listening port",
                      "defaultValue": "4004"
                    },
                    "SECRET": {
                      "isOptional": false,
                      "description": "Shared platform token secret",
                      "defaultValue": "${{account.SERVER_SECRET}}"
                    },
                    "SERVICE_ID": {
                      "isOptional": false,
                      "description": "Service identity in tokens",
                      "defaultValue": "rekoni-service"
                    }
                  }
                },
                "9a922386-fe4a-4ae1-822b-8f0d09347cfa": {
                  "icon": "https://raw.githubusercontent.com/hcengineering/platform/v0.7.426/dev/prod/public/huly/icon-256.png",
                  "name": "fulltext",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'SK=$(printf %s \"$S3_SECRET_KEY\" | sed \"s/+/%2B/g\"); export STORAGE_CONFIG=\"s3|$S3_ENDPOINT?accessKey=$S3_ACCESS_KEY&secretKey=$SK&region=auto&rootBucket=$S3_BUCKET\"; exec node --expose-gc bundle.js'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "hardcoreeng/fulltext:v0.7.426"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Indexer listening port",
                      "defaultValue": "4700"
                    },
                    "DB_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket holding all workspaces",
                      "defaultValue": "${{huly-files.BUCKET}}"
                    },
                    "STATS_URL": {
                      "isOptional": false,
                      "description": "Metrics collector endpoint",
                      "defaultValue": "http://${{stats.RAILWAY_PRIVATE_DOMAIN}}:4900"
                    },
                    "REKONI_URL": {
                      "isOptional": false,
                      "description": "Text extraction endpoint",
                      "defaultValue": "http://${{rekoni.RAILWAY_PRIVATE_DOMAIN}}:4004"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint",
                      "defaultValue": "${{huly-files.ENDPOINT}}"
                    },
                    "ACCOUNTS_URL": {
                      "isOptional": false,
                      "description": "Private account API",
                      "defaultValue": "http://${{account.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "QUEUE_CONFIG": {
                      "isOptional": false,
                      "description": "Kafka broker address",
                      "defaultValue": "${{kafka.RAILWAY_PRIVATE_DOMAIN}}:9092"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Object storage access key",
                      "defaultValue": "${{huly-files.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Object storage secret key",
                      "defaultValue": "${{huly-files.SECRET_ACCESS_KEY}}"
                    },
                    "SERVER_SECRET": {
                      "isOptional": false,
                      "description": "Shared platform token secret",
                      "defaultValue": "${{account.SERVER_SECRET}}"
                    },
                    "FULLTEXT_DB_URL": {
                      "isOptional": false,
                      "description": "Elasticsearch endpoint",
                      "defaultValue": "http://${{elastic.RAILWAY_PRIVATE_DOMAIN}}:9200"
                    },
                    "ELASTIC_INDEX_NAME": {
                      "isOptional": false,
                      "description": "Index name to maintain",
                      "defaultValue": "huly_storage_index"
                    }
                  }
                },
                "a1f6b9d6-e962-4491-960c-b46413eea482": {
                  "icon": "https://raw.githubusercontent.com/hcengineering/platform/v0.7.426/dev/prod/public/huly/icon-256.png",
                  "name": "transactor",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'SK=$(printf %s \"$S3_SECRET_KEY\" | sed \"s/+/%2B/g\"); export STORAGE_CONFIG=\"s3|$S3_ENDPOINT?accessKey=$S3_ACCESS_KEY&secretKey=$SK&region=auto&rootBucket=$S3_BUCKET\"; exec node ./bundle.js'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "hardcoreeng/transactor:v0.7.426"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Transactor listening port",
                      "defaultValue": "3333"
                    },
                    "DB_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "FRONT_URL": {
                      "isOptional": false,
                      "description": "Public site root",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket holding all workspaces",
                      "defaultValue": "${{huly-files.BUCKET}}"
                    },
                    "STATS_URL": {
                      "isOptional": false,
                      "description": "Metrics collector endpoint",
                      "defaultValue": "http://${{stats.RAILWAY_PRIVATE_DOMAIN}}:4900"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint",
                      "defaultValue": "${{huly-files.ENDPOINT}}"
                    },
                    "SERVER_PORT": {
                      "isOptional": false,
                      "description": "Same port, read by the app",
                      "defaultValue": "3333"
                    },
                    "ACCOUNTS_URL": {
                      "isOptional": false,
                      "description": "Private account API",
                      "defaultValue": "http://${{account.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "FULLTEXT_URL": {
                      "isOptional": false,
                      "description": "Search service endpoint",
                      "defaultValue": "http://${{fulltext.RAILWAY_PRIVATE_DOMAIN}}:4700"
                    },
                    "QUEUE_CONFIG": {
                      "isOptional": false,
                      "description": "Kafka broker address",
                      "defaultValue": "${{kafka.RAILWAY_PRIVATE_DOMAIN}}:9092"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Object storage access key",
                      "defaultValue": "${{huly-files.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Object storage secret key",
                      "defaultValue": "${{huly-files.SECRET_ACCESS_KEY}}"
                    },
                    "SERVER_SECRET": {
                      "isOptional": false,
                      "description": "Shared platform token secret",
                      "defaultValue": "${{account.SERVER_SECRET}}"
                    },
                    "LAST_NAME_FIRST": {
                      "isOptional": false,
                      "description": "Name ordering in lists",
                      "defaultValue": "true"
                    }
                  }
                },
                "ba87ea32-bb02-4d84-8094-75bcf2b67de9": {
                  "icon": "https://raw.githubusercontent.com/hcengineering/platform/v0.7.426/dev/prod/public/huly/icon-256.png",
                  "name": "kvs",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "hardcoreeng/hulykvs:v0.7.426"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Key-value store listening port",
                      "defaultValue": "8094"
                    },
                    "HULY_BIND_HOST": {
                      "isOptional": false,
                      "description": "Listen on all interfaces",
                      "defaultValue": "0.0.0.0"
                    },
                    "HULY_BIND_PORT": {
                      "isOptional": false,
                      "description": "Same port, read by the app",
                      "defaultValue": "8094"
                    },
                    "HULY_TOKEN_SECRET": {
                      "isOptional": false,
                      "description": "Shared platform token secret",
                      "defaultValue": "${{account.SERVER_SECRET}}"
                    },
                    "HULY_DB_CONNECTION": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    }
                  }
                },
                "bf26f01f-4bcf-418f-8816-132e952a29dc": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/kafka-light.svg",
                  "name": "kafka",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "apache/kafka:3.9.1"
                  },
                  "variables": {
                    "CLUSTER_ID": {
                      "isOptional": false,
                      "description": "Stable cluster identity",
                      "defaultValue": "{{CLUSTER_ID}}"
                    },
                    "KAFKA_NODE_ID": {
                      "isOptional": false,
                      "description": "Broker and controller id",
                      "defaultValue": "1"
                    },
                    "KAFKA_LOG_DIRS": {
                      "isOptional": false,
                      "description": "Log directory on the volume",
                      "defaultValue": "/var/lib/kafka/data/logs"
                    },
                    "KAFKA_HEAP_OPTS": {
                      "isOptional": false,
                      "description": "JVM heap for the broker",
                      "defaultValue": "-Xms512m -Xmx1g"
                    },
                    "KAFKA_LISTENERS": {
                      "isOptional": false,
                      "description": "Client and controller listeners",
                      "defaultValue": "PLAINTEXT://:9092,CONTROLLER://:9093"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Start as root so the volume is writable",
                      "defaultValue": "0"
                    },
                    "KAFKA_PROCESS_ROLES": {
                      "isOptional": false,
                      "description": "Single-node KRaft mode",
                      "defaultValue": "broker,controller"
                    },
                    "KAFKA_MIN_INSYNC_REPLICAS": {
                      "isOptional": false,
                      "description": "One in-sync replica",
                      "defaultValue": "1"
                    },
                    "KAFKA_ADVERTISED_LISTENERS": {
                      "isOptional": false,
                      "description": "Address given to clients",
                      "defaultValue": "PLAINTEXT://kafka.railway.internal:9092"
                    },
                    "KAFKA_CONTROLLER_QUORUM_VOTERS": {
                      "isOptional": false,
                      "description": "Single-node quorum",
                      "defaultValue": "1@localhost:9093"
                    },
                    "KAFKA_AUTO_CREATE_TOPICS_ENABLE": {
                      "isOptional": false,
                      "description": "Allow implicit topic creation",
                      "defaultValue": "true"
                    },
                    "KAFKA_CONTROLLER_LISTENER_NAMES": {
                      "isOptional": false,
                      "description": "Which listener is the controller",
                      "defaultValue": "CONTROLLER"
                    },
                    "KAFKA_DEFAULT_REPLICATION_FACTOR": {
                      "isOptional": false,
                      "description": "One copy for new topics",
                      "defaultValue": "1"
                    },
                    "KAFKA_INTER_BROKER_LISTENER_NAME": {
                      "isOptional": false,
                      "description": "Which listener brokers use",
                      "defaultValue": "PLAINTEXT"
                    },
                    "KAFKA_TRANSACTION_STATE_LOG_MIN_ISR": {
                      "isOptional": false,
                      "description": "One in-sync replica",
                      "defaultValue": "1"
                    },
                    "KAFKA_LISTENER_SECURITY_PROTOCOL_MAP": {
                      "isOptional": false,
                      "description": "Protocol per listener",
                      "defaultValue": "CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT"
                    },
                    "KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS": {
                      "isOptional": false,
                      "description": "Join consumer groups immediately",
                      "defaultValue": "0"
                    },
                    "KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR": {
                      "isOptional": false,
                      "description": "One copy, single node",
                      "defaultValue": "1"
                    },
                    "KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR": {
                      "isOptional": false,
                      "description": "One copy, single node",
                      "defaultValue": "1"
                    }
                  },
                  "volumeMounts": {
                    "bf26f01f-4bcf-418f-8816-132e952a29dc": {
                      "mountPath": "/var/lib/kafka/data"
                    }
                  }
                },
                "d1e8f59b-47ca-4add-ac08-69e7dc895972": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, read by the server",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "d1e8f59b-47ca-4add-ac08-69e7dc895972": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "d2a17ff8-3381-48c7-aced-07cc37f0137b": {
                  "icon": "https://raw.githubusercontent.com/hcengineering/platform/v0.7.426/dev/prod/public/huly/icon-256.png",
                  "name": "workspace",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'SK=$(printf %s \"$S3_SECRET_KEY\" | sed \"s/+/%2B/g\"); export STORAGE_CONFIG=\"s3|$S3_ENDPOINT?accessKey=$S3_ACCESS_KEY&secretKey=$SK&region=auto&rootBucket=$S3_BUCKET\"; exec node bundle.js'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "hardcoreeng/workspace:v0.7.426"
                  },
                  "variables": {
                    "DB_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket holding all workspaces",
                      "defaultValue": "${{huly-files.BUCKET}}"
                    },
                    "STATS_URL": {
                      "isOptional": false,
                      "description": "Metrics collector endpoint",
                      "defaultValue": "http://${{stats.RAILWAY_PRIVATE_DOMAIN}}:4900"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint",
                      "defaultValue": "${{huly-files.ENDPOINT}}"
                    },
                    "ACCOUNTS_URL": {
                      "isOptional": false,
                      "description": "Private account API",
                      "defaultValue": "http://${{account.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "QUEUE_CONFIG": {
                      "isOptional": false,
                      "description": "Kafka broker address",
                      "defaultValue": "${{kafka.RAILWAY_PRIVATE_DOMAIN}}:9092"
                    },
                    "MODEL_ENABLED": {
                      "isOptional": false,
                      "description": "Enable all workspace modules",
                      "defaultValue": "*"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Object storage access key",
                      "defaultValue": "${{huly-files.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Object storage secret key",
                      "defaultValue": "${{huly-files.SECRET_ACCESS_KEY}}"
                    },
                    "SERVER_SECRET": {
                      "isOptional": false,
                      "description": "Shared platform token secret",
                      "defaultValue": "${{account.SERVER_SECRET}}"
                    },
                    "TRANSACTOR_URL": {
                      "isOptional": false,
                      "description": "Internal and public transactor",
                      "defaultValue": "ws://${{transactor.RAILWAY_PRIVATE_DOMAIN}}:3333;wss://${{proxy.RAILWAY_PUBLIC_DOMAIN}}/_transactor"
                    },
                    "ACCOUNTS_DB_URL": {
                      "isOptional": false,
                      "description": "Account tables connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    }
                  }
                },
                "f1ff3685-8aa9-42ff-8e54-15968ba1460e": {
                  "icon": "https://raw.githubusercontent.com/hcengineering/platform/v0.7.426/dev/prod/public/huly/icon-256.png",
                  "name": "collaborator",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'SK=$(printf %s \"$S3_SECRET_KEY\" | sed \"s/+/%2B/g\"); export STORAGE_CONFIG=\"s3|$S3_ENDPOINT?accessKey=$S3_ACCESS_KEY&secretKey=$SK&region=auto&rootBucket=$S3_BUCKET\"; exec node bundle.js'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "hardcoreeng/collaborator:v0.7.426"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Collaborator listening port",
                      "defaultValue": "3078"
                    },
                    "SECRET": {
                      "isOptional": false,
                      "description": "Shared platform token secret",
                      "defaultValue": "${{account.SERVER_SECRET}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket holding all workspaces",
                      "defaultValue": "${{huly-files.BUCKET}}"
                    },
                    "STATS_URL": {
                      "isOptional": false,
                      "description": "Metrics collector endpoint",
                      "defaultValue": "http://${{stats.RAILWAY_PRIVATE_DOMAIN}}:4900"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint",
                      "defaultValue": "${{huly-files.ENDPOINT}}"
                    },
                    "ACCOUNTS_URL": {
                      "isOptional": false,
                      "description": "Private account API",
                      "defaultValue": "http://${{account.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Object storage access key",
                      "defaultValue": "${{huly-files.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Object storage secret key",
                      "defaultValue": "${{huly-files.SECRET_ACCESS_KEY}}"
                    },
                    "COLLABORATOR_PORT": {
                      "isOptional": false,
                      "description": "Same port, read by the app",
                      "defaultValue": "3078"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "proxy",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 13,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T12:42:20.926Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_9d2368fdb3a846df94f1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 88
  }
}
