{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b6edef4f-40f0-4437-b79c-aaf9e25eaeb8",
    "slug": "sim-studio-or-just-updated-ai-agent-work",
    "name": "Sim Studio | (Just Updated) AI Agent Workflow Builder, Postgres + Redis, Data Survives Redeploys",
    "description": "Sim Studio: open-source AI agent workflow builder, pgvector Postgres, Redis",
    "url": "https://railway.com/deploy/sim-studio-or-just-updated-ai-agent-work",
    "upstream": {
      "image": "ghcr.io/simstudioai/realtime:1.4.4-alpine@sha256:0b820cd8119ae4eff1d832d18fbdcf78848d216e7cc0965d3cf9ad56779616d7"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "realtime",
      "source": {
        "image": "ghcr.io/simstudioai/realtime:1.4.4-alpine@sha256:0b820cd8119ae4eff1d832d18fbdcf78848d216e7cc0965d3cf9ad56779616d7"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "simstudio",
      "source": {
        "image": "ghcr.io/simstudioai/simstudio:1.4.4-slim@sha256:959ce48839c4f08b136947eaddb9c5862c98594e4b841f4b2929e5dc9c544d2d"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/apps/sim/uploads",
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "pgvector/pgvector:pg17@sha256:7d0a41464797aeb9862dfdc0bbf1526b82cfd324cdd8036df19e3545f4a9ccb8"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "migrations",
      "source": {
        "image": "ghcr.io/simstudioai/migrations:1.4.4-alpine@sha256:23c5bbc62b908edf2943a93d2acca34e8047f379acf2e0d05fd31dbec19759bc"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "image": "redis:7-alpine@sha256:e7723ff73d963f5cc6d9c4643ea3d989527a402a319239054e9472a7fb9219a2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDIS_URL",
      "service": "realtime",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "realtime",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ALLOWED_ORIGINS",
      "service": "realtime",
      "description": "Provide a value for ALLOWED_ORIGINS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BETTER_AUTH_URL",
      "service": "realtime",
      "description": "Provide a value for BETTER_AUTH_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "realtime",
      "description": "Provide a value for BETTER_AUTH_SECRET.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INTERNAL_API_SECRET",
      "service": "realtime",
      "description": "Provide a value for INTERNAL_API_SECRET.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PUBLIC_APP_URL",
      "service": "realtime",
      "description": "Provide a value for NEXT_PUBLIC_APP_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_URL",
      "service": "simstudio",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "simstudio",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ADMIN_API_KEY",
      "service": "simstudio",
      "description": "Provide a value for ADMIN_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "simstudio",
      "description": "Provide a value for ENCRYPTION_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BETTER_AUTH_URL",
      "service": "simstudio",
      "description": "Provide a value for BETTER_AUTH_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "simstudio",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SOCKET_SERVER_URL",
      "service": "simstudio",
      "description": "Provide a value for SOCKET_SERVER_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "simstudio",
      "description": "Provide a value for BETTER_AUTH_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INTERNAL_API_SECRET",
      "service": "simstudio",
      "description": "Provide a value for INTERNAL_API_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NEXT_PUBLIC_APP_URL",
      "service": "simstudio",
      "description": "Provide a value for NEXT_PUBLIC_APP_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_SOCKET_URL",
      "service": "simstudio",
      "description": "Provide a value for NEXT_PUBLIC_SOCKET_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_URL",
      "service": "migrations",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "migrations",
      "description": "Provide a value for ENCRYPTION_KEY.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "sim-studio-or-just-updated-ai-agent-work"
      }
    },
    "cli": "railway deploy --template sim-studio-or-just-updated-ai-agent-work",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b6edef4f-40f0-4437-b79c-aaf9e25eaeb8",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "673f2768-d157-4d3f-aecd-d27a60bb9989": {
                  "icon": null,
                  "name": "realtime",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/simstudioai/realtime:1.4.4-alpine@sha256:0b820cd8119ae4eff1d832d18fbdcf78848d216e7cc0965d3cf9ad56779616d7"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "ALLOWED_ORIGINS": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_SERVICE_SIMSTUDIO_URL}}"
                    },
                    "BETTER_AUTH_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_SERVICE_SIMSTUDIO_URL}}"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "defaultValue": "${{simstudio.BETTER_AUTH_SECRET}}"
                    },
                    "INTERNAL_API_SECRET": {
                      "isOptional": false,
                      "defaultValue": "${{simstudio.INTERNAL_API_SECRET}}"
                    },
                    "NEXT_PUBLIC_APP_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_SERVICE_SIMSTUDIO_URL}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "8f8eb3e1-dca3-4411-89f4-348c92e84766": {
                  "icon": null,
                  "name": "simstudio",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/simstudioai/simstudio:1.4.4-slim@sha256:959ce48839c4f08b136947eaddb9c5862c98594e4b841f4b2929e5dc9c544d2d"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "ADMIN_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{ADMIN_API_KEY}}"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "BETTER_AUTH_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "defaultValue": "{{RAILWAY_RUN_UID}}"
                    },
                    "SOCKET_SERVER_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_SERVICE_REALTIME_URL}}"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "INTERNAL_API_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{INTERNAL_API_SECRET}}"
                    },
                    "NEXT_PUBLIC_APP_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_SOCKET_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_SERVICE_REALTIME_URL}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "8f8eb3e1-dca3-4411-89f4-348c92e84766": {
                      "mountPath": "/app/apps/sim/uploads"
                    }
                  }
                },
                "a094c5de-503b-4f9e-890d-9c327fed8691": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:pg17@sha256:7d0a41464797aeb9862dfdc0bbf1526b82cfd324cdd8036df19e3545f4a9ccb8"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "a094c5de-503b-4f9e-890d-9c327fed8691": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "b53013ff-03e9-4801-bf1d-cdfe47a92e7f": {
                  "icon": null,
                  "name": "migrations",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'cd /app/packages/db && exec bun run db:migrate'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/simstudioai/migrations:1.4.4-alpine@sha256:23c5bbc62b908edf2943a93d2acca34e8047f379acf2e0d05fd31dbec19759bc"
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "defaultValue": "${{simstudio.ENCRYPTION_KEY}}"
                    }
                  }
                },
                "c08bd7c8-2c3f-466f-b4ed-639d6a440434": {
                  "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'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:7-alpine@sha256:e7723ff73d963f5cc6d9c4643ea3d989527a402a319239054e9472a7fb9219a2"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "c08bd7c8-2c3f-466f-b4ed-639d6a440434": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "realtime",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-11-04T22:15:11.317Z",
  "generator_version": "0.1.0"
}
