{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f3e9af12-e911-4bcc-b6cc-ca9ee433f589",
    "slug": "twenty-crm-or-salesforce-alternative-ver",
    "name": "Twenty CRM | (Just Updated) Salesforce Alternative, Built-In S3",
    "description": "Salesforce alternative wired up whole: server, worker, Postgres, S3",
    "url": "https://railway.com/deploy/twenty-crm-or-salesforce-alternative-ver",
    "upstream": {
      "image": "ghcr.io/bon5co/twenty-railway:latest"
    }
  },
  "services": [
    {
      "name": "twenty",
      "source": {
        "image": "ghcr.io/bon5co/twenty-railway:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "minio",
      "source": {
        "image": "quay.io/minio/minio:RELEASE.2025-09-07T16-13-09Z"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "postgres",
      "source": {
        "image": "postgres:16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "worker",
      "source": {
        "image": "ghcr.io/bon5co/twenty-railway:latest"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDIS_URL",
      "service": "twenty",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "APP_SECRET",
      "service": "twenty",
      "description": "Provide a value for APP_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SERVER_URL",
      "service": "twenty",
      "description": "Provide a value for SERVER_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "twenty",
      "description": "Provide a value for ENCRYPTION_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PG_DATABASE_URL",
      "service": "twenty",
      "description": "Provide a value for PG_DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "STORAGE_S3_ENDPOINT",
      "service": "twenty",
      "description": "Provide a value for STORAGE_S3_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "STORAGE_S3_ACCESS_KEY_ID",
      "service": "twenty",
      "description": "Provide a value for STORAGE_S3_ACCESS_KEY_ID.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_SECRET_ACCESS_KEY",
      "service": "twenty",
      "description": "Provide a value for STORAGE_S3_SECRET_ACCESS_KEY.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MINIO_ROOT_USER",
      "service": "minio",
      "description": "Provide a value for MINIO_ROOT_USER.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MINIO_ROOT_PASSWORD",
      "service": "minio",
      "description": "Provide a value for MINIO_ROOT_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_URL",
      "service": "worker",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_SECRET",
      "service": "worker",
      "description": "Provide a value for APP_SECRET.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_URL",
      "service": "worker",
      "description": "Provide a value for SERVER_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "worker",
      "description": "Provide a value for ENCRYPTION_KEY.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PG_DATABASE_URL",
      "service": "worker",
      "description": "Provide a value for PG_DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_ENDPOINT",
      "service": "worker",
      "description": "Provide a value for STORAGE_S3_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_ACCESS_KEY_ID",
      "service": "worker",
      "description": "Provide a value for STORAGE_S3_ACCESS_KEY_ID.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_SECRET_ACCESS_KEY",
      "service": "worker",
      "description": "Provide a value for STORAGE_S3_SECRET_ACCESS_KEY.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "twenty-crm-or-salesforce-alternative-ver"
      }
    },
    "cli": "railway deploy --template twenty-crm-or-salesforce-alternative-ver",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f3e9af12-e911-4bcc-b6cc-ca9ee433f589",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "27f2e4d5-eded-415b-8913-1d26d6bee373": {
                  "icon": null,
                  "name": "twenty",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/twenty-railway:latest"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379?family=0"
                    },
                    "APP_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{APP_SECRET}}"
                    },
                    "SERVER_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "PG_DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "STORAGE_S3_ENDPOINT": {
                      "isOptional": false,
                      "defaultValue": "http://${{minio.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "STORAGE_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "defaultValue": "${{minio.MINIO_ROOT_USER}}"
                    },
                    "STORAGE_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "defaultValue": "${{minio.MINIO_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "8b164fa4-2ac0-4cbf-be1e-fb0087de5c5d": {
                  "icon": null,
                  "name": "minio",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'rm -rf /data/lost+found && mkdir -p /data/twenty && exec minio server --address \":9000\" --console-address \":9001\" /data'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "quay.io/minio/minio:RELEASE.2025-09-07T16-13-09Z"
                  },
                  "variables": {
                    "MINIO_ROOT_USER": {
                      "isOptional": false,
                      "defaultValue": "{{MINIO_ROOT_USER}}"
                    },
                    "MINIO_ROOT_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{MINIO_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "8b164fa4-2ac0-4cbf-be1e-fb0087de5c5d": {
                      "mountPath": "/data"
                    }
                  }
                },
                "b5673eeb-054c-4706-baf4-f232074d8657": {
                  "icon": null,
                  "name": "redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'chown -R redis:redis /data && exec docker-entrypoint.sh redis-server --requirepass \"$REDIS_PASSWORD\" --appendonly yes --dir /data --maxmemory-policy noeviction'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "b5673eeb-054c-4706-baf4-f232074d8657": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "d18b3874-226a-44f4-b0f5-5868efaa11ed": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:16"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "d18b3874-226a-44f4-b0f5-5868efaa11ed": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "ec4c7543-8b7e-4e0d-9289-21210ce9a545": {
                  "icon": null,
                  "name": "worker",
                  "deploy": {
                    "startCommand": "/usr/local/bin/railway-entrypoint.sh yarn worker:prod",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/twenty-railway:latest"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "${{twenty.REDIS_URL}}"
                    },
                    "APP_SECRET": {
                      "isOptional": false,
                      "defaultValue": "${{twenty.APP_SECRET}}"
                    },
                    "SERVER_URL": {
                      "isOptional": false,
                      "defaultValue": "${{twenty.SERVER_URL}}"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "defaultValue": "${{twenty.ENCRYPTION_KEY}}"
                    },
                    "PG_DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "${{twenty.PG_DATABASE_URL}}"
                    },
                    "STORAGE_S3_ENDPOINT": {
                      "isOptional": false,
                      "defaultValue": "${{twenty.STORAGE_S3_ENDPOINT}}"
                    },
                    "STORAGE_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "defaultValue": "${{minio.MINIO_ROOT_USER}}"
                    },
                    "STORAGE_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "defaultValue": "${{minio.MINIO_ROOT_PASSWORD}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "twenty",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T04:14:37.968Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-17T16:40:01.373Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a1057a9b0b4447149207",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 194,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "worker"
  }
}
