{
  "manifest_version": "1.0.0",
  "template": {
    "id": "cde82dff-fc54-42aa-8192-71b3e24064c0",
    "slug": "erpnext",
    "name": "ERPNext",
    "description": "Deploy and Host ERPNext with Railway",
    "url": "https://railway.com/deploy/erpnext",
    "upstream": {
      "repo_url": "https://github.com/pipech/erpnext-docker-debian"
    }
  },
  "services": [
    {
      "name": "erpnext",
      "source": {
        "repo": "https://github.com/pipech/erpnext-docker-debian"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/frappe/bench/sites",
      "http": true
    },
    {
      "name": "mariadb",
      "source": {
        "image": "mariadb:10.6"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "redis-queue",
      "source": {
        "image": "redis:6.2-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "redis-cache",
      "source": {
        "image": "redis:6.2-alpine"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "FRAPPE_DB_HOST",
      "service": "erpnext",
      "description": "Provide a value for FRAPPE_DB_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RFP_DOMAIN_NAME",
      "service": "erpnext",
      "description": "Public domain name, will be use to create Frappe/ERPNext site and configure Nginx. Change to custom domain name if need. Sample value: your-erp-site.com",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "FRAPPE_DB_PASSWORD",
      "service": "erpnext",
      "description": "[Removable after initial site setup]",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRAPPE_REDIS_CACHE",
      "service": "erpnext",
      "description": "Provide a value for FRAPPE_REDIS_CACHE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FRAPPE_REDIS_QUEUE",
      "service": "erpnext",
      "description": "Provide a value for FRAPPE_REDIS_QUEUE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RFP_DB_ROOT_PASSWORD",
      "service": "erpnext",
      "description": "[Removable after initial site setup]",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RFP_SITE_ADMIN_PASSWORD",
      "service": "erpnext",
      "description": "[Removable after initial site setup]",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "mariadb",
      "description": "[Removable after initial site setup]",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "erpnext"
      }
    },
    "cli": "railway deploy --template erpnext",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "cde82dff-fc54-42aa-8192-71b3e24064c0",
            "serializedConfig": {
              "services": {
                "21e7d72a-e007-4141-9f06-1eeed1f29e09": {
                  "icon": "https://github.com/frappe/erpnext/raw/develop/erpnext/public/images/v16/erpnext.svg",
                  "name": "erpnext",
                  "deploy": {
                    "startCommand": "tail -f /dev/null",
                    "healthcheckPath": ""
                  },
                  "source": {
                    "repo": "pipech/erpnext-docker-debian",
                    "branch": null,
                    "rootDirectory": ""
                  },
                  "variables": {
                    "FRAPPE_DB_HOST": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{mariadb.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RFP_DOMAIN_NAME": {
                      "isOptional": false,
                      "description": "Public domain name, will be use to create Frappe/ERPNext site and configure Nginx. Change to custom domain name if need. Sample value: your-erp-site.com",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "FRAPPE_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "[Removable after initial site setup]",
                      "defaultValue": "${{mariadb.MARIADB_ROOT_PASSWORD}}"
                    },
                    "FRAPPE_REDIS_CACHE": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "redis://${{redis-cache.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "FRAPPE_REDIS_QUEUE": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "redis://${{redis-queue.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "RFP_DB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "[Removable after initial site setup]",
                      "defaultValue": "${{mariadb.MARIADB_ROOT_PASSWORD}}"
                    },
                    "RFP_SITE_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "[Removable after initial site setup]",
                      "defaultValue": "{{RFP_SITE_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "21e7d72a-e007-4141-9f06-1eeed1f29e09": {
                      "mountPath": "/home/frappe/bench/sites"
                    }
                  }
                },
                "4b457f0a-fb72-4c78-92ea-4613f06a2137": {
                  "icon": "https://cdn.svgporn.com/logos/mariadb-icon.svg",
                  "name": "mariadb",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mariadbd --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --skip-character-set-client-handshake --skip-innodb-read-only-compressed --ignore-db-dirs=lost+found"
                  },
                  "source": {
                    "image": "mariadb:10.6"
                  },
                  "variables": {
                    "MARIADB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "[Removable after initial site setup]",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "4b457f0a-fb72-4c78-92ea-4613f06a2137": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "663bea73-3ac5-4808-9a66-3a7557ef8ada": {
                  "icon": "https://cdn.svglogos.dev/logos/redis.svg",
                  "name": "redis-queue",
                  "source": {
                    "image": "redis:6.2-alpine"
                  },
                  "volumeMounts": {
                    "663bea73-3ac5-4808-9a66-3a7557ef8ada": {
                      "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."
                  }
                },
                "d328dca0-ea7b-41a3-87de-45a753eff466": {
                  "icon": "https://cdn.svglogos.dev/logos/redis.svg",
                  "name": "redis-cache",
                  "source": {
                    "image": "redis:6.2-alpine"
                  },
                  "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."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T20:16:09.123Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_1518becc63924641bd6b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 212,
    "typical_build_seconds": 141,
    "typical_start_seconds": 20,
    "slowest_service": "erpnext"
  }
}
