{
  "manifest_version": "1.0.0",
  "template": {
    "id": "387e1172-7620-4700-806a-fa92d03b16f4",
    "slug": "twenty-crm-production",
    "name": "Twenty CRM Production",
    "description": "Open-source Salesforce alternative: CRM with worker, S3 files, workflows",
    "url": "https://railway.com/deploy/twenty-crm-production",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/twenty-railway"
    }
  },
  "services": [
    {
      "name": "postgres",
      "source": {
        "repo": "https://github.com/nomideusz/twenty-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "worker",
      "source": {
        "repo": "https://github.com/nomideusz/twenty-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "repo": "https://github.com/nomideusz/twenty-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "server",
      "source": {
        "repo": "https://github.com/nomideusz/twenty-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Auto-generated database password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_URL",
      "service": "worker",
      "description": "Redis URI for BullMQ. The family=0 suffix is required on Railway (IPv6) — don't remove it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "APP_SECRET",
      "service": "worker",
      "description": "Session-signing secret, shared from the server. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_URL",
      "service": "worker",
      "description": "Public URL of this Twenty instance. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PG_DATABASE_URL",
      "service": "worker",
      "description": "Postgres connection string. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "STORAGE_S3_NAME",
      "service": "worker",
      "description": "Bundled Railway bucket name. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_ENDPOINT",
      "service": "worker",
      "description": "Bundled Railway bucket endpoint. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_ACCESS_KEY_ID",
      "service": "worker",
      "description": "Bundled Railway bucket access key. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_SECRET_ACCESS_KEY",
      "service": "worker",
      "description": "Bundled Railway bucket secret key. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Auto-generated queue password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "server",
      "description": "Server listen port. Must stay 3000 — Railway would otherwise inject 8080.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "REDIS_URL",
      "service": "server",
      "description": "Redis URI for BullMQ. The family=0 suffix is required on Railway (IPv6) — don't remove it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "APP_SECRET",
      "service": "server",
      "description": "Signs sessions and tokens. The worker references this value — must match.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SERVER_URL",
      "service": "server",
      "description": "Public URL of this Twenty instance. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PG_DATABASE_URL",
      "service": "server",
      "description": "Postgres connection string. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "STORAGE_S3_NAME",
      "service": "server",
      "description": "Bundled Railway bucket name. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_ENDPOINT",
      "service": "server",
      "description": "Bundled Railway bucket endpoint. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_ACCESS_KEY_ID",
      "service": "server",
      "description": "Bundled Railway bucket access key. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_SECRET_ACCESS_KEY",
      "service": "server",
      "description": "Bundled Railway bucket secret key. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "twenty-crm-production"
      }
    },
    "cli": "railway deploy --template twenty-crm-production",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "387e1172-7620-4700-806a-fa92d03b16f4",
            "serializedConfig": {
              "buckets": {
                "b4a4d9b1-3503-44a2-a213-bc1591059858": {
                  "name": "twenty-storage"
                }
              },
              "services": {
                "3bff9c7d-ace5-4dcb-8c3b-9d566937b66f": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/twenty-railway",
                    "rootDirectory": "/postgres"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "3bff9c7d-ace5-4dcb-8c3b-9d566937b66f": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "4d7a4ae6-7662-4a6d-9534-0c02d326e56f": {
                  "icon": "https://raw.githubusercontent.com/twentyhq/twenty/6fd8dab55243cda291fa45f896caaa9d5e5160b8/packages/twenty-chrome-extension/public/logo/32-32.svg",
                  "name": "worker",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/twenty-railway",
                    "rootDirectory": "/worker"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis URI for BullMQ. The family=0 suffix is required on Railway (IPv6) — don't remove it.",
                      "defaultValue": "redis://:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379?family=0"
                    },
                    "APP_SECRET": {
                      "isOptional": false,
                      "description": "Session-signing secret, shared from the server. Wired automatically — don't change.",
                      "defaultValue": "${{server.APP_SECRET}}"
                    },
                    "SERVER_URL": {
                      "isOptional": false,
                      "description": "Public URL of this Twenty instance. Wired automatically — don't change.",
                      "defaultValue": "https://${{server.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PG_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string. Wired automatically — don't change.",
                      "defaultValue": "postgres://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/default"
                    },
                    "STORAGE_S3_NAME": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket name. Wired automatically — don't change.",
                      "defaultValue": "${{twenty-storage.BUCKET}}"
                    },
                    "STORAGE_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket endpoint. Wired automatically — don't change.",
                      "defaultValue": "${{twenty-storage.ENDPOINT}}"
                    },
                    "STORAGE_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket access key. Wired automatically — don't change.",
                      "defaultValue": "${{twenty-storage.ACCESS_KEY_ID}}"
                    },
                    "STORAGE_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket secret key. Wired automatically — don't change.",
                      "defaultValue": "${{twenty-storage.SECRET_ACCESS_KEY}}"
                    }
                  }
                },
                "51628d9d-f5cd-477c-a5d2-c69ee7985a45": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/twenty-railway",
                    "rootDirectory": "/redis"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated queue password.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "51628d9d-f5cd-477c-a5d2-c69ee7985a45": {
                      "mountPath": "/data"
                    }
                  }
                },
                "a3322943-3659-4ebb-b871-b64071a3c154": {
                  "icon": "https://raw.githubusercontent.com/twentyhq/twenty/6fd8dab55243cda291fa45f896caaa9d5e5160b8/packages/twenty-chrome-extension/public/logo/32-32.svg",
                  "name": "server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/twenty-railway",
                    "rootDirectory": "/server"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Server listen port. Must stay 3000 — Railway would otherwise inject 8080.",
                      "defaultValue": "3000"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis URI for BullMQ. The family=0 suffix is required on Railway (IPv6) — don't remove it.",
                      "defaultValue": "redis://:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379?family=0"
                    },
                    "APP_SECRET": {
                      "isOptional": false,
                      "description": "Signs sessions and tokens. The worker references this value — must match.",
                      "defaultValue": "{{APP_SECRET}}"
                    },
                    "SERVER_URL": {
                      "isOptional": false,
                      "description": "Public URL of this Twenty instance. Wired automatically — don't change.",
                      "defaultValue": "https://${{server.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PG_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string. Wired automatically — don't change.",
                      "defaultValue": "postgres://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/default"
                    },
                    "STORAGE_S3_NAME": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket name. Wired automatically — don't change.",
                      "defaultValue": "${{twenty-storage.BUCKET}}"
                    },
                    "STORAGE_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket endpoint. Wired automatically — don't change.",
                      "defaultValue": "${{twenty-storage.ENDPOINT}}"
                    },
                    "STORAGE_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket access key. Wired automatically — don't change.",
                      "defaultValue": "${{twenty-storage.ACCESS_KEY_ID}}"
                    },
                    "STORAGE_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket secret key. Wired automatically — don't change.",
                      "defaultValue": "${{twenty-storage.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "server",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T04:14:41.730Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T07:07:46.635Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_63b004574fc44b7e8b0d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 212,
    "typical_build_seconds": 61,
    "typical_start_seconds": 20,
    "slowest_service": "worker"
  }
}
