{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a7b1d7a6-57f9-4e22-b5b9-c7ab55fe715d",
    "slug": "erp-next",
    "name": "ERPNext",
    "description": "Free and Powerful Open Source Enterprise Resource Planning (ERP)",
    "url": "https://railway.com/deploy/erp-next",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/erpnext-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "ERPNext",
      "source": {
        "repo": "https://github.com/gridalpha/erpnext-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/frappe/frappe-bench/sites",
      "http": true
    },
    {
      "name": "Redis-Cache",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Websocket",
      "source": {
        "repo": "https://github.com/gridalpha/erpnext-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "MariaDB",
      "source": {
        "image": "mariadb:11.8"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "Redis-Queue",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "ERPNext",
      "description": "nginx listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ROLE",
      "service": "ERPNext",
      "description": "Runs web, workers and scheduler",
      "secret": false,
      "strategy": "default",
      "default": "app"
    },
    {
      "key": "DB_HOST",
      "service": "ERPNext",
      "description": "MariaDB private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PORT",
      "service": "ERPNext",
      "description": "MariaDB port",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "SITE_NAME",
      "service": "ERPNext",
      "description": "Internal site identity",
      "secret": false,
      "strategy": "default",
      "default": "erpnext.local"
    },
    {
      "key": "DB_ROOT_USER",
      "service": "ERPNext",
      "description": "MariaDB superuser name",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "SITE_DB_NAME",
      "service": "ERPNext",
      "description": "Site database name",
      "secret": false,
      "strategy": "default",
      "default": "erpnext"
    },
    {
      "key": "FRAPPE_SECRET",
      "service": "ERPNext",
      "description": "Seed for derived site credentials",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SOCKETIO_HOST",
      "service": "ERPNext",
      "description": "Realtime service hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SOCKETIO_PORT",
      "service": "ERPNext",
      "description": "Realtime service port",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "ERPNext",
      "description": "Administrator password, set at site creation",
      "secret": true,
      "strategy": "default",
      "default": "\""
    },
    {
      "key": "DISABLE_SIGNUP",
      "service": "ERPNext",
      "description": "Close public sign-up on first boot",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "REDIS_CACHE_URL",
      "service": "ERPNext",
      "description": "Frappe cache endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_QUEUE_URL",
      "service": "ERPNext",
      "description": "Job queue and pub/sub endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_ROOT_PASSWORD",
      "service": "ERPNext",
      "description": "Used to create the site",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GUNICORN_THREADS",
      "service": "ERPNext",
      "description": "Threads per web worker",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "GUNICORN_TIMEOUT",
      "service": "ERPNext",
      "description": "Web request timeout seconds",
      "secret": false,
      "strategy": "default",
      "default": "120"
    },
    {
      "key": "GUNICORN_WORKERS",
      "service": "ERPNext",
      "description": "Web worker processes",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "PROXY_READ_TIMEOUT",
      "service": "ERPNext",
      "description": "nginx upstream read timeout",
      "secret": false,
      "strategy": "default",
      "default": "120"
    },
    {
      "key": "CLIENT_MAX_BODY_SIZE",
      "service": "ERPNext",
      "description": "Maximum upload size",
      "secret": false,
      "strategy": "default",
      "default": "50m"
    },
    {
      "key": "REDISHOST",
      "service": "Redis-Cache",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis-Cache",
      "description": "Standard Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis-Cache",
      "description": "Default ACL user created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis-Cache",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis-Cache",
      "description": "Convenience alias of the generated password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis-Cache",
      "description": "Generated password for the default user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ROLE",
      "service": "Websocket",
      "description": "Runs the Frappe realtime server",
      "secret": false,
      "strategy": "default",
      "default": "websocket"
    },
    {
      "key": "SOCKETIO_PORT",
      "service": "Websocket",
      "description": "Realtime listening port",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "REDIS_CACHE_URL",
      "service": "Websocket",
      "description": "Frappe cache endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_QUEUE_URL",
      "service": "Websocket",
      "description": "Job queue and pub/sub endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TZ",
      "service": "MariaDB",
      "description": "Server timezone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "MARIADB_AUTO_UPGRADE",
      "service": "MariaDB",
      "description": "Upgrade data dir after image bumps",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "MariaDB",
      "description": "MariaDB superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDISHOST",
      "service": "Redis-Queue",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis-Queue",
      "description": "Standard Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis-Queue",
      "description": "Default ACL user created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis-Queue",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis-Queue",
      "description": "Convenience alias of the generated password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis-Queue",
      "description": "Generated password for the default user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "erp-next"
      }
    },
    "cli": "railway deploy --template erp-next",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a7b1d7a6-57f9-4e22-b5b9-c7ab55fe715d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "66650567-539e-4f26-97da-4f043784fef7": {
                  "icon": "https://cdn.simpleicons.org/erpnext/FFFFFF",
                  "name": "ERPNext",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/railway/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/erpnext-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "nginx listening port",
                      "defaultValue": "8080"
                    },
                    "ROLE": {
                      "isOptional": false,
                      "description": "Runs web, workers and scheduler",
                      "defaultValue": "app"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "MariaDB private hostname",
                      "defaultValue": "${{MariaDB.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "MariaDB port",
                      "defaultValue": "3306"
                    },
                    "SITE_NAME": {
                      "isOptional": false,
                      "description": "Internal site identity",
                      "defaultValue": "erpnext.local"
                    },
                    "DB_ROOT_USER": {
                      "isOptional": false,
                      "description": "MariaDB superuser name",
                      "defaultValue": "root"
                    },
                    "SITE_DB_NAME": {
                      "isOptional": false,
                      "description": "Site database name",
                      "defaultValue": "erpnext"
                    },
                    "FRAPPE_SECRET": {
                      "isOptional": false,
                      "description": "Seed for derived site credentials",
                      "defaultValue": "{{FRAPPE_SECRET}}"
                    },
                    "SOCKETIO_HOST": {
                      "isOptional": false,
                      "description": "Realtime service hostname",
                      "defaultValue": "${{Websocket.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SOCKETIO_PORT": {
                      "isOptional": false,
                      "description": "Realtime service port",
                      "defaultValue": "9000"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Administrator password, set at site creation",
                      "defaultValue": "\""
                    },
                    "DISABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "Close public sign-up on first boot",
                      "defaultValue": "1"
                    },
                    "REDIS_CACHE_URL": {
                      "isOptional": false,
                      "description": "Frappe cache endpoint",
                      "defaultValue": "${{Redis-Cache.REDIS_URL}}"
                    },
                    "REDIS_QUEUE_URL": {
                      "isOptional": false,
                      "description": "Job queue and pub/sub endpoint",
                      "defaultValue": "${{Redis-Queue.REDIS_URL}}"
                    },
                    "DB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Used to create the site",
                      "defaultValue": "${{MariaDB.MARIADB_ROOT_PASSWORD}}"
                    },
                    "GUNICORN_THREADS": {
                      "isOptional": false,
                      "description": "Threads per web worker",
                      "defaultValue": "4"
                    },
                    "GUNICORN_TIMEOUT": {
                      "isOptional": false,
                      "description": "Web request timeout seconds",
                      "defaultValue": "120"
                    },
                    "GUNICORN_WORKERS": {
                      "isOptional": false,
                      "description": "Web worker processes",
                      "defaultValue": "2"
                    },
                    "PROXY_READ_TIMEOUT": {
                      "isOptional": false,
                      "description": "nginx upstream read timeout",
                      "defaultValue": "120"
                    },
                    "CLIENT_MAX_BODY_SIZE": {
                      "isOptional": false,
                      "description": "Maximum upload size",
                      "defaultValue": "50m"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "66650567-539e-4f26-97da-4f043784fef7": {
                      "mountPath": "/home/frappe/frappe-bench/sites"
                    }
                  }
                },
                "bda6781b-9186-4395-ab0d-20bace19442b": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis-Cache",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Standard Redis port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default ACL user created on first boot",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Convenience alias of the generated password",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the default user",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "bda6781b-9186-4395-ab0d-20bace19442b": {
                      "mountPath": "/data"
                    }
                  }
                },
                "d1a4dcd1-bea1-4974-b8fe-7f85a7c79840": {
                  "icon": "https://cdn.simpleicons.org/erpnext/FFFFFF",
                  "name": "Websocket",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/erpnext-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "ROLE": {
                      "isOptional": false,
                      "description": "Runs the Frappe realtime server",
                      "defaultValue": "websocket"
                    },
                    "SOCKETIO_PORT": {
                      "isOptional": false,
                      "description": "Realtime listening port",
                      "defaultValue": "9000"
                    },
                    "REDIS_CACHE_URL": {
                      "isOptional": false,
                      "description": "Frappe cache endpoint",
                      "defaultValue": "${{Redis-Cache.REDIS_URL}}"
                    },
                    "REDIS_QUEUE_URL": {
                      "isOptional": false,
                      "description": "Job queue and pub/sub endpoint",
                      "defaultValue": "${{Redis-Queue.REDIS_URL}}"
                    }
                  }
                },
                "df21bd9a-0904-4a48-8c5d-be02c7f0d501": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mariadb.svg",
                  "name": "MariaDB",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'MEM=$(cat /sys/fs/cgroup/memory.max 2>/dev/null || echo max); case \"$MEM\" in \"\"|max|*[!0-9]*) MEM=2147483648;; esac; BP=$((MEM/2/1048576)); [ \"$BP\" -lt 128 ] && BP=128; echo \"railway: container memory $((MEM/1048576))M, innodb_buffer_pool_size=${BP}M\"; exec docker-entrypoint.sh mariadbd --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --skip-character-set-client-handshake --innodb-buffer-pool-size=${BP}M --max-allowed-packet=256M'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mariadb:11.8"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Server timezone",
                      "defaultValue": "UTC"
                    },
                    "MARIADB_AUTO_UPGRADE": {
                      "isOptional": false,
                      "description": "Upgrade data dir after image bumps",
                      "defaultValue": "1"
                    },
                    "MARIADB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "MariaDB superuser password",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "df21bd9a-0904-4a48-8c5d-be02c7f0d501": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "f3ed61c2-d7e8-4bd2-8edf-6b483432c3ed": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis-Queue",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Standard Redis port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default ACL user created on first boot",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Convenience alias of the generated password",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the default user",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "f3ed61c2-d7e8-4bd2-8edf-6b483432c3ed": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "ERPNext",
      "method": "GET",
      "path": "/railway/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-03T23:07:37.076Z",
  "generator_version": "0.1.0"
}
