{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1bb120e4-8ff4-4e59-9fe3-f67f136c59a5",
    "slug": "huly-platform",
    "name": "Huly | Open-Source Linear, Slack & Notion Alternative",
    "description": "Issues, chat, docs and planning in one self-hosted team workspace",
    "url": "https://railway.com/deploy/huly-platform",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/huly-railway"
    }
  },
  "services": [
    {
      "name": "Redpanda",
      "source": {
        "image": "redpandadata/redpanda:v24.3.18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/redpanda/data",
      "http": false
    },
    {
      "name": "Huly",
      "source": {
        "repo": "https://github.com/nomideusz/huly-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Elasticsearch",
      "source": {
        "image": "elasticsearch:7.17.28"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/share/elasticsearch/data",
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Redpanda",
      "description": "Run as root so Redpanda can write to the root-owned Railway volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "PORT",
      "service": "Huly",
      "description": "Port the Caddy edge listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "TITLE",
      "service": "Huly",
      "description": "Name shown in the browser tab",
      "secret": false,
      "strategy": "default",
      "default": "Huly"
    },
    {
      "key": "DB_URL",
      "service": "Huly",
      "description": "Postgres on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_BUCKET",
      "service": "Huly",
      "description": "Railway bucket name (every workspace gets its own prefix)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "Huly",
      "description": "Railway bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PUBLIC_URL",
      "service": "Huly",
      "description": "Public URL of Huly (sign-in, websockets, links) - set it to your custom domain after adding one",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "Huly",
      "description": "Railway bucket endpoint for attachments and documents",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUEUE_CONFIG",
      "service": "Huly",
      "description": "Redpanda (Kafka API) on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "Huly",
      "description": "Railway bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "Huly",
      "description": "Railway bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_SECRET",
      "service": "Huly",
      "description": "Signs every login and service token shared by Huly's services. Changing it logs everyone out",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DISABLE_SIGNUP",
      "service": "Huly",
      "description": "Set to true after your team has signed up to close public registration (invites still work)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "FULLTEXT_DB_URL",
      "service": "Huly",
      "description": "Elasticsearch on the private network (full-text search index)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LAST_NAME_FIRST",
      "service": "Huly",
      "description": "Show people as 'Last First' instead of 'First Last'",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DEFAULT_LANGUAGE",
      "service": "Huly",
      "description": "Default UI language (en, de, es, fr, it, pt, ru, zh, ja, cs, tr)",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "Huly",
      "description": "First boot creates the database schema before the health check can pass",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "ES_JAVA_OPTS",
      "service": "Elasticsearch",
      "description": "JVM heap - raise to 1g for large workspaces",
      "secret": false,
      "strategy": "default",
      "default": "-Xms512m -Xmx512m"
    },
    {
      "key": "network.host",
      "service": "Elasticsearch",
      "description": "Listen on IPv6 and IPv4 so Railway's private network can reach it",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "discovery.type",
      "service": "Elasticsearch",
      "description": "Single-node cluster",
      "secret": false,
      "strategy": "default",
      "default": "single-node"
    },
    {
      "key": "xpack.ml.enabled",
      "service": "Elasticsearch",
      "description": "Machine learning off - saves memory, Huly does not use it",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TAKE_FILE_OWNERSHIP",
      "service": "Elasticsearch",
      "description": "Hands the root-owned Railway volume to the elasticsearch user on boot",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "xpack.security.enabled",
      "service": "Elasticsearch",
      "description": "Private network only; Huly connects without credentials, like upstream",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ingest.geoip.downloader.enabled",
      "service": "Elasticsearch",
      "description": "Skip the GeoIP database download on boot - Huly does not use it",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "huly"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "huly"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Time for Postgres to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "huly-platform"
      }
    },
    "cli": "railway deploy --template huly-platform",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1bb120e4-8ff4-4e59-9fe3-f67f136c59a5",
            "serializedConfig": {
              "buckets": {
                "e9f987a6-616b-4e05-b0fc-ecaea6538fe2": {
                  "name": "Files"
                }
              },
              "services": {
                "37745006-9003-46fc-b97f-4ce1c461d43e": {
                  "icon": "https://raw.githubusercontent.com/redpanda-data/redpanda/dev/docs/icon-redpanda.svg",
                  "name": "Redpanda",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"exec rpk redpanda start --mode dev-container --smp 1 --memory 400M --reserve-memory 0M --kafka-addr internal://[::]:9092 --advertise-kafka-addr internal://$RAILWAY_PRIVATE_DOMAIN:9092 --rpc-addr [::]:33145 --advertise-rpc-addr $RAILWAY_PRIVATE_DOMAIN:33145 --default-log-level=warn\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redpandadata/redpanda:v24.3.18"
                  },
                  "variables": {
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run as root so Redpanda can write to the root-owned Railway volume",
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "83dc51d9-27a9-41d9-86ea-c68364c464ee": {
                      "mountPath": "/var/lib/redpanda/data"
                    }
                  }
                },
                "96199ece-dc53-458c-9656-a7c1fc56c4cb": {
                  "icon": "https://raw.githubusercontent.com/nomideusz/huly-railway/main/icon.svg",
                  "name": "Huly",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/huly-railway"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the Caddy edge listens on - leave as is",
                      "defaultValue": "8000"
                    },
                    "TITLE": {
                      "isOptional": false,
                      "description": "Name shown in the browser tab",
                      "defaultValue": "Huly"
                    },
                    "DB_URL": {
                      "isOptional": false,
                      "description": "Postgres on the private network",
                      "defaultValue": "postgresql://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Railway bucket name (every workspace gets its own prefix)",
                      "defaultValue": "${{Files.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "Railway bucket region",
                      "defaultValue": "${{Files.REGION}}"
                    },
                    "PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL of Huly (sign-in, websockets, links) - set it to your custom domain after adding one",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Railway bucket endpoint for attachments and documents",
                      "defaultValue": "${{Files.ENDPOINT}}"
                    },
                    "ADMIN_EMAILS": {
                      "isOptional": true,
                      "description": "Optional comma-separated emails that get Huly's instance admin console",
                      "defaultValue": ""
                    },
                    "QUEUE_CONFIG": {
                      "isOptional": false,
                      "description": "Redpanda (Kafka API) on the private network",
                      "defaultValue": "${{Redpanda.RAILWAY_PRIVATE_DOMAIN}}:9092"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Railway bucket access key",
                      "defaultValue": "${{Files.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Railway bucket secret key",
                      "defaultValue": "${{Files.SECRET_ACCESS_KEY}}"
                    },
                    "SERVER_SECRET": {
                      "isOptional": false,
                      "description": "Signs every login and service token shared by Huly's services. Changing it logs everyone out",
                      "defaultValue": "{{SERVER_SECRET}}"
                    },
                    "DISABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "Set to true after your team has signed up to close public registration (invites still work)",
                      "defaultValue": "false"
                    },
                    "FULLTEXT_DB_URL": {
                      "isOptional": false,
                      "description": "Elasticsearch on the private network (full-text search index)",
                      "defaultValue": "http://${{Elasticsearch.RAILWAY_PRIVATE_DOMAIN}}:9200"
                    },
                    "LAST_NAME_FIRST": {
                      "isOptional": false,
                      "description": "Show people as 'Last First' instead of 'First Last'",
                      "defaultValue": "true"
                    },
                    "DEFAULT_LANGUAGE": {
                      "isOptional": false,
                      "description": "Default UI language (en, de, es, fr, it, pt, ru, zh, ja, cs, tr)",
                      "defaultValue": "en"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First boot creates the database schema before the health check can pass",
                      "defaultValue": "600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "c4d596e7-030a-4cf0-9f1e-8630927a820f": {
                  "icon": "https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/elasticsearch.svg",
                  "name": "Elasticsearch",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "elasticsearch:7.17.28"
                  },
                  "variables": {
                    "ES_JAVA_OPTS": {
                      "isOptional": false,
                      "description": "JVM heap - raise to 1g for large workspaces",
                      "defaultValue": "-Xms512m -Xmx512m"
                    },
                    "network.host": {
                      "isOptional": false,
                      "description": "Listen on IPv6 and IPv4 so Railway's private network can reach it",
                      "defaultValue": "::"
                    },
                    "discovery.type": {
                      "isOptional": false,
                      "description": "Single-node cluster",
                      "defaultValue": "single-node"
                    },
                    "xpack.ml.enabled": {
                      "isOptional": false,
                      "description": "Machine learning off - saves memory, Huly does not use it",
                      "defaultValue": "false"
                    },
                    "TAKE_FILE_OWNERSHIP": {
                      "isOptional": false,
                      "description": "Hands the root-owned Railway volume to the elasticsearch user on boot",
                      "defaultValue": "true"
                    },
                    "xpack.security.enabled": {
                      "isOptional": false,
                      "description": "Private network only; Huly connects without credentials, like upstream",
                      "defaultValue": "false"
                    },
                    "ingest.geoip.downloader.enabled": {
                      "isOptional": false,
                      "description": "Skip the GeoIP database download on boot - Huly does not use it",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "959de842-0c7a-4207-91a4-484e4ca2fa27": {
                      "mountPath": "/usr/share/elasticsearch/data"
                    }
                  }
                },
                "e769b7e1-91cf-4b63-af4e-15bf86ca34f1": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "huly"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "huly"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for Postgres to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "cb64c4e5-d7af-4e74-9702-d695b7eb8487": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Huly",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-10-12T04:14:37.344Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-12T02:16:13.488Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_4d559a3a66ff4472a93e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
