{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3306b5ab-9672-47bb-87e3-c88813276f60",
    "slug": "twenty-crm-v2-railway",
    "name": "Twenty",
    "description": "Twenty v2 CRM with worker, PostgreSQL, Redis, and object storage.",
    "url": "https://railway.com/deploy/twenty-crm-v2-railway",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-twenty"
    }
  },
  "services": [
    {
      "name": "redis",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-twenty"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "worker",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-twenty"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "postgres",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-twenty"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "server",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-twenty"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Generated Redis password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_URL",
      "service": "worker",
      "description": "Authenticated Redis queue URL; family=0 supports Railway private networking.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "APP_SECRET",
      "service": "worker",
      "description": "Must match the server signing secret.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_URL",
      "service": "worker",
      "description": "Canonical public Twenty URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "STORAGE_TYPE",
      "service": "worker",
      "description": "Use object storage so server and worker share attachments.",
      "secret": false,
      "strategy": "default",
      "default": "S_3"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "worker",
      "description": "Must match the server encryption key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PG_DATABASE_URL",
      "service": "worker",
      "description": "PostgreSQL connection shared by server and worker.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "STORAGE_S3_NAME",
      "service": "worker",
      "description": "Bundled Railway bucket name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_REGION",
      "service": "worker",
      "description": "Railway bucket uses an S3-compatible automatic region.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "STORAGE_S3_ENDPOINT",
      "service": "worker",
      "description": "Bundled Railway bucket endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DISABLE_DB_MIGRATIONS",
      "service": "worker",
      "description": "The server owns migrations.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "STORAGE_S3_ACCESS_KEY_ID",
      "service": "worker",
      "description": "Bundled Railway bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_SECRET_ACCESS_KEY",
      "service": "worker",
      "description": "Bundled Railway bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DISABLE_CRON_JOBS_REGISTRATION",
      "service": "worker",
      "description": "The server owns cron registration.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Initialize below the Railway mount root.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Twenty database name.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Database user.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Generated PostgreSQL password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "server",
      "description": "Railway public port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NODE_PORT",
      "service": "server",
      "description": "Twenty Node listen port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "REDIS_URL",
      "service": "server",
      "description": "Authenticated Redis queue URL; family=0 supports Railway private networking.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "APP_SECRET",
      "service": "server",
      "description": "Legacy signing secret retained for compatibility.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SERVER_URL",
      "service": "server",
      "description": "Canonical public Twenty URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "STORAGE_TYPE",
      "service": "server",
      "description": "Use object storage so server and worker share attachments.",
      "secret": false,
      "strategy": "default",
      "default": "S_3"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "server",
      "description": "Primary at-rest encryption and session key.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PG_DATABASE_URL",
      "service": "server",
      "description": "PostgreSQL connection shared by server and worker.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "STORAGE_S3_NAME",
      "service": "server",
      "description": "Bundled Railway bucket name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_REGION",
      "service": "server",
      "description": "Railway bucket uses an S3-compatible automatic region.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "STORAGE_S3_ENDPOINT",
      "service": "server",
      "description": "Bundled Railway bucket endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_ACCESS_KEY_ID",
      "service": "server",
      "description": "Bundled Railway bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_SECRET_ACCESS_KEY",
      "service": "server",
      "description": "Bundled Railway bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "twenty-crm-v2-railway"
      }
    },
    "cli": "railway deploy --template twenty-crm-v2-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3306b5ab-9672-47bb-87e3-c88813276f60",
            "serializedConfig": {
              "buckets": {
                "5a1d98d6-348e-468d-916a-9fea3b56b3f9": {
                  "name": "twenty-storage"
                }
              },
              "services": {
                "032cf8b8-9f65-4459-95f3-96160d27aa99": {
                  "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/monotykamary/railway-template-twenty",
                    "commitSha": "b575683c8757c80070485777bc8e150b0d204970",
                    "rootDirectory": "/redis"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated Redis password.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "032cf8b8-9f65-4459-95f3-96160d27aa99": {
                      "mountPath": "/data",
                      "backupSchedules": [
                        "WEEKLY"
                      ]
                    }
                  }
                },
                "349d9ce2-a727-4c57-922b-baf6e40031f2": {
                  "icon": "https://raw.githubusercontent.com/twentyhq/twenty/main/packages/twenty-docs/images/core/logo-mini.png",
                  "name": "worker",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-twenty",
                    "commitSha": "b575683c8757c80070485777bc8e150b0d204970",
                    "rootDirectory": "/worker"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Authenticated Redis queue URL; family=0 supports Railway private networking.",
                      "defaultValue": "redis://:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379?family=0"
                    },
                    "APP_SECRET": {
                      "isOptional": false,
                      "description": "Must match the server signing secret.",
                      "defaultValue": "${{server.APP_SECRET}}"
                    },
                    "SERVER_URL": {
                      "isOptional": false,
                      "description": "Canonical public Twenty URL.",
                      "defaultValue": "https://${{server.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "STORAGE_TYPE": {
                      "isOptional": false,
                      "description": "Use object storage so server and worker share attachments.",
                      "defaultValue": "S_3"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Must match the server encryption key.",
                      "defaultValue": "${{server.ENCRYPTION_KEY}}"
                    },
                    "PG_DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection shared by server and worker.",
                      "defaultValue": "postgres://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/default"
                    },
                    "STORAGE_S3_NAME": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket name.",
                      "defaultValue": "${{twenty-storage.BUCKET}}"
                    },
                    "STORAGE_S3_REGION": {
                      "isOptional": false,
                      "description": "Railway bucket uses an S3-compatible automatic region.",
                      "defaultValue": "auto"
                    },
                    "STORAGE_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket endpoint.",
                      "defaultValue": "${{twenty-storage.ENDPOINT}}"
                    },
                    "DISABLE_DB_MIGRATIONS": {
                      "isOptional": false,
                      "description": "The server owns migrations.",
                      "defaultValue": "true"
                    },
                    "STORAGE_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket access key.",
                      "defaultValue": "${{twenty-storage.ACCESS_KEY_ID}}"
                    },
                    "STORAGE_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket secret key.",
                      "defaultValue": "${{twenty-storage.SECRET_ACCESS_KEY}}"
                    },
                    "DISABLE_CRON_JOBS_REGISTRATION": {
                      "isOptional": false,
                      "description": "The server owns cron registration.",
                      "defaultValue": "true"
                    }
                  }
                },
                "3b9f0aa5-b933-4811-b923-7856e6306771": {
                  "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/monotykamary/railway-template-twenty",
                    "commitSha": "b575683c8757c80070485777bc8e150b0d204970",
                    "rootDirectory": "/postgres"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Initialize below the Railway mount root.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Twenty database name.",
                      "defaultValue": "default"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated PostgreSQL password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "3b9f0aa5-b933-4811-b923-7856e6306771": {
                      "mountPath": "/var/lib/postgresql/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                },
                "60a4e919-2741-45e0-88a7-951e216ea121": {
                  "icon": "https://raw.githubusercontent.com/twentyhq/twenty/main/packages/twenty-docs/images/core/logo-mini.png",
                  "name": "server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-twenty",
                    "commitSha": "b575683c8757c80070485777bc8e150b0d204970",
                    "rootDirectory": "/server"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Railway public port.",
                      "defaultValue": "3000"
                    },
                    "NODE_PORT": {
                      "isOptional": false,
                      "description": "Twenty Node listen port.",
                      "defaultValue": "3000"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Authenticated Redis queue URL; family=0 supports Railway private networking.",
                      "defaultValue": "redis://:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379?family=0"
                    },
                    "APP_SECRET": {
                      "isOptional": false,
                      "description": "Legacy signing secret retained for compatibility.",
                      "defaultValue": "{{APP_SECRET}}"
                    },
                    "SERVER_URL": {
                      "isOptional": false,
                      "description": "Canonical public Twenty URL.",
                      "defaultValue": "https://${{server.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "STORAGE_TYPE": {
                      "isOptional": false,
                      "description": "Use object storage so server and worker share attachments.",
                      "defaultValue": "S_3"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Primary at-rest encryption and session key.",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "PG_DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection shared by server and worker.",
                      "defaultValue": "postgres://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/default"
                    },
                    "STORAGE_S3_NAME": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket name.",
                      "defaultValue": "${{twenty-storage.BUCKET}}"
                    },
                    "STORAGE_S3_REGION": {
                      "isOptional": false,
                      "description": "Railway bucket uses an S3-compatible automatic region.",
                      "defaultValue": "auto"
                    },
                    "STORAGE_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket endpoint.",
                      "defaultValue": "${{twenty-storage.ENDPOINT}}"
                    },
                    "STORAGE_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket access key.",
                      "defaultValue": "${{twenty-storage.ACCESS_KEY_ID}}"
                    },
                    "STORAGE_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket secret key.",
                      "defaultValue": "${{twenty-storage.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "server",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T23:30:41.405Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a82b05718a1f4b229a93",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 210,
    "typical_build_seconds": 81,
    "typical_start_seconds": 10,
    "slowest_service": "worker"
  }
}
