{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1b6d5ec0-7722-4866-9ba8-0717cbd7523c",
    "slug": "difyai",
    "name": "Dify.ai",
    "description": "Dify Is an Open-Source Platform for Building LLM-Powered Applications",
    "url": "https://railway.com/deploy/difyai"
  },
  "services": [
    {
      "name": "SANDBOX",
      "source": {
        "image": "langgenius/dify-sandbox"
      },
      "needs_volume": true,
      "volume_mount_path": "/dependencies",
      "http": false
    },
    {
      "name": "Storage Provision",
      "source": {
        "image": "minio/mc"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": " Postgres",
      "source": {
        "image": "postgres:15-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": " Worker",
      "source": {
        "image": "langgenius/dify-api"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "API",
      "source": {
        "image": "langgenius/dify-api"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "WEB",
      "source": {
        "image": "langgenius/dify-web"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Weaviate",
      "source": {
        "image": "semitechnologies/weaviate"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/weaviate",
      "http": false
    },
    {
      "name": " Storage",
      "source": {
        "image": "minio/minio"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": " Plugin Daemon",
      "source": {
        "image": "langgenius/dify-plugin-daemon"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:6-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Database Provision",
      "source": {
        "image": "postgres:15-alpine"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "difyai"
      }
    },
    "cli": "railway deploy --template difyai",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1b6d5ec0-7722-4866-9ba8-0717cbd7523c",
            "serializedConfig": {
              "services": {
                "3566e015-b461-4091-85f9-6f4974b010c4": {
                  "icon": "https://registry.npmmirror.com/@lobehub/icons-static-png/1.75.0/files/dark/dify-color.png",
                  "name": "SANDBOX",
                  "source": {
                    "image": "langgenius/dify-sandbox"
                  },
                  "volumeMounts": {
                    "3566e015-b461-4091-85f9-6f4974b010c4": {
                      "mountPath": "/dependencies"
                    }
                  }
                },
                "3ad7c587-4693-4b8d-9cf6-a9def8a782cb": {
                  "icon": "https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png",
                  "name": "Storage Provision",
                  "source": {
                    "image": "minio/mc"
                  }
                },
                "73b420ee-5363-42f2-ab16-eeb48c3c5fdd": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": " Postgres",
                  "source": {
                    "image": "postgres:15-alpine"
                  },
                  "volumeMounts": {
                    "73b420ee-5363-42f2-ab16-eeb48c3c5fdd": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "7b01dfe5-54aa-4bd8-b3e7-a3ccd47644a8": {
                  "icon": "https://registry.npmmirror.com/@lobehub/icons-static-png/1.75.0/files/dark/dify-color.png",
                  "name": " Worker",
                  "source": {
                    "image": "langgenius/dify-api"
                  }
                },
                "7dc48a1c-742d-4e19-a8a9-9c39079f6ab0": {
                  "icon": "https://registry.npmmirror.com/@lobehub/icons-static-png/1.75.0/files/dark/dify-color.png",
                  "name": "API",
                  "source": {
                    "image": "langgenius/dify-api"
                  }
                },
                "81fa035d-3376-46b6-bee2-cd81f821ecd1": {
                  "icon": "https://cdn.zeabur.com/dify-icon.png",
                  "name": "WEB",
                  "source": {
                    "image": "langgenius/dify-web"
                  }
                },
                "ce9f8414-a4ca-47f7-a7bf-140a4e34eb3b": {
                  "icon": "https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/publication/logo/35d9c94b-b826-4592-8ada-f26fb501b5d4/weaviate-logo-light-transparent.png",
                  "name": "Weaviate",
                  "source": {
                    "image": "semitechnologies/weaviate"
                  },
                  "volumeMounts": {
                    "ce9f8414-a4ca-47f7-a7bf-140a4e34eb3b": {
                      "mountPath": "/var/lib/weaviate"
                    }
                  }
                },
                "dde4909b-ce26-45b6-be27-b052fef00404": {
                  "icon": "https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png",
                  "name": " Storage",
                  "source": {
                    "image": "minio/minio"
                  },
                  "volumeMounts": {
                    "dde4909b-ce26-45b6-be27-b052fef00404": {
                      "mountPath": "/data"
                    }
                  }
                },
                "e7f06f50-cae0-487b-b55a-1694712304c7": {
                  "icon": "https://registry.npmmirror.com/@lobehub/icons-static-png/1.75.0/files/dark/dify-color.png",
                  "name": " Plugin Daemon",
                  "source": {
                    "image": "langgenius/dify-plugin-daemon"
                  }
                },
                "f18a5e6a-d497-4eb1-a106-fa53a545dd5e": {
                  "icon": "https://devicons.railway.com/i/redis.svg",
                  "name": "Redis",
                  "source": {
                    "image": "redis:6-alpine"
                  },
                  "volumeMounts": {
                    "f18a5e6a-d497-4eb1-a106-fa53a545dd5e": {
                      "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."
                  }
                },
                "fcdc5f0d-1496-4266-bfa5-403bf4b0df11": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "Database Provision",
                  "source": {
                    "image": "postgres:15-alpine"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 11,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T08:25:52.760Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_0c6e4d57adb44f75bcf1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "DEPLOYING,SUCCESS,FAILED,FAILED,SUCCESS,DEPLOYING,DEPLOYING,DEPLOYING,SUCCESS,FAILED,SUCCESS"
      }
    ]
  }
}
