{
  "manifest_version": "1.0.0",
  "template": {
    "id": "06713620-d07f-4c23-a98d-e992b13ef3ab",
    "slug": "frappe-hr",
    "name": "Frappe HR",
    "description": "Open source HR and payroll software for small and mid-size teams",
    "url": "https://railway.com/deploy/frappe-hr",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/frappe-hr-railway"
    }
  },
  "services": [
    {
      "name": "Websocket",
      "source": {
        "repo": "https://github.com/gridalpha/frappe-hr-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis-Cache",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Frappe-HR",
      "source": {
        "repo": "https://github.com/gridalpha/frappe-hr-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/frappe/frappe-bench/sites",
      "http": true
    },
    {
      "name": "Redis-Queue",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "MariaDB",
      "source": {
        "image": "mariadb:11.8"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "ROLE",
      "service": "Websocket",
      "description": "Runs the Frappe realtime server only",
      "secret": false,
      "strategy": "default",
      "default": "websocket"
    },
    {
      "key": "SOCKETIO_PORT",
      "service": "Websocket",
      "description": "Realtime server port",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "REDIS_CACHE_URL",
      "service": "Websocket",
      "description": "Frappe cache connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_QUEUE_URL",
      "service": "Websocket",
      "description": "Frappe queue connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISHOST",
      "service": "Redis-Cache",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis-Cache",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis-Cache",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis-Cache",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis-Cache",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis-Cache",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Frappe-HR",
      "description": "nginx listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ROLE",
      "service": "Frappe-HR",
      "description": "Runs nginx, gunicorn, workers, scheduler",
      "secret": false,
      "strategy": "default",
      "default": "app"
    },
    {
      "key": "DB_HOST",
      "service": "Frappe-HR",
      "description": "Private MariaDB hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PORT",
      "service": "Frappe-HR",
      "description": "MariaDB port",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "SITE_NAME",
      "service": "Frappe-HR",
      "description": "Internal Frappe site name",
      "secret": false,
      "strategy": "default",
      "default": "hr.local"
    },
    {
      "key": "DB_ROOT_USER",
      "service": "Frappe-HR",
      "description": "MariaDB superuser",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "SITE_DB_NAME",
      "service": "Frappe-HR",
      "description": "Database created for the site",
      "secret": false,
      "strategy": "default",
      "default": "frappe_hr"
    },
    {
      "key": "FRAPPE_SECRET",
      "service": "Frappe-HR",
      "description": "Root secret the site keys derive from",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SOCKETIO_HOST",
      "service": "Frappe-HR",
      "description": "Private realtime server hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SOCKETIO_PORT",
      "service": "Frappe-HR",
      "description": "Realtime server port",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "Frappe-HR",
      "description": "First Administrator password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DISABLE_SIGNUP",
      "service": "Frappe-HR",
      "description": "Closes public sign-up on first boot",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "REDIS_CACHE_URL",
      "service": "Frappe-HR",
      "description": "Frappe cache connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_QUEUE_URL",
      "service": "Frappe-HR",
      "description": "Frappe queue connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_ROOT_PASSWORD",
      "service": "Frappe-HR",
      "description": "MariaDB superuser password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GUNICORN_THREADS",
      "service": "Frappe-HR",
      "description": "Threads per web worker",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "GUNICORN_TIMEOUT",
      "service": "Frappe-HR",
      "description": "Web request timeout in seconds",
      "secret": false,
      "strategy": "default",
      "default": "120"
    },
    {
      "key": "GUNICORN_WORKERS",
      "service": "Frappe-HR",
      "description": "Web worker processes",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "PROXY_READ_TIMEOUT",
      "service": "Frappe-HR",
      "description": "nginx upstream read timeout",
      "secret": false,
      "strategy": "default",
      "default": "120"
    },
    {
      "key": "CLIENT_MAX_BODY_SIZE",
      "service": "Frappe-HR",
      "description": "Maximum upload size",
      "secret": false,
      "strategy": "default",
      "default": "50m"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "Frappe-HR",
      "description": "Window covering first-boot site install",
      "secret": false,
      "strategy": "default",
      "default": "900"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Frappe-HR",
      "description": "Graceful shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "REDISHOST",
      "service": "Redis-Queue",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis-Queue",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis-Queue",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis-Queue",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis-Queue",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis-Queue",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TZ",
      "service": "MariaDB",
      "description": "Server time zone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "MARIADB_AUTO_UPGRADE",
      "service": "MariaDB",
      "description": "Runs mariadb-upgrade after a version bump",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "MariaDB",
      "description": "Superuser password, read by the entrypoint",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "frappe-hr"
      }
    },
    "cli": "railway deploy --template frappe-hr",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "06713620-d07f-4c23-a98d-e992b13ef3ab",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "27d0155e-2961-4e32-964f-51758880110f": {
                  "icon": "https://raw.githubusercontent.com/frappe/frappe/version-16/frappe/public/images/frappe-framework-logo.png",
                  "name": "Websocket",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/frappe-hr-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "ROLE": {
                      "isOptional": false,
                      "description": "Runs the Frappe realtime server only",
                      "defaultValue": "websocket"
                    },
                    "SOCKETIO_PORT": {
                      "isOptional": false,
                      "description": "Realtime server port",
                      "defaultValue": "9000"
                    },
                    "REDIS_CACHE_URL": {
                      "isOptional": false,
                      "description": "Frappe cache connection string",
                      "defaultValue": "${{Redis-Cache.REDIS_URL}}"
                    },
                    "REDIS_QUEUE_URL": {
                      "isOptional": false,
                      "description": "Frappe queue connection string",
                      "defaultValue": "${{Redis-Queue.REDIS_URL}}"
                    }
                  }
                },
                "867cdea7-53e3-4bcd-9cbe-cf435f7ca101": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.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": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "867cdea7-53e3-4bcd-9cbe-cf435f7ca101": {
                      "mountPath": "/data"
                    }
                  }
                },
                "9733bdc4-de16-48ed-a4d1-073104818eaa": {
                  "icon": "https://raw.githubusercontent.com/frappe/hrms/version-16/hrms/public/images/frappe-hr-logo.svg",
                  "name": "Frappe-HR",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/railway/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/frappe-hr-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "nginx listening port",
                      "defaultValue": "8080"
                    },
                    "ROLE": {
                      "isOptional": false,
                      "description": "Runs nginx, gunicorn, workers, scheduler",
                      "defaultValue": "app"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Private MariaDB hostname",
                      "defaultValue": "${{MariaDB.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "MariaDB port",
                      "defaultValue": "3306"
                    },
                    "SITE_NAME": {
                      "isOptional": true,
                      "description": "Internal Frappe site name",
                      "defaultValue": "hr.local"
                    },
                    "DB_ROOT_USER": {
                      "isOptional": false,
                      "description": "MariaDB superuser",
                      "defaultValue": "root"
                    },
                    "SITE_DB_NAME": {
                      "isOptional": true,
                      "description": "Database created for the site",
                      "defaultValue": "frappe_hr"
                    },
                    "FRAPPE_SECRET": {
                      "isOptional": false,
                      "description": "Root secret the site keys derive from",
                      "defaultValue": "{{FRAPPE_SECRET}}"
                    },
                    "SOCKETIO_HOST": {
                      "isOptional": false,
                      "description": "Private realtime server hostname",
                      "defaultValue": "${{Websocket.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SOCKETIO_PORT": {
                      "isOptional": false,
                      "description": "Realtime server port",
                      "defaultValue": "9000"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First Administrator password",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "DISABLE_SIGNUP": {
                      "isOptional": true,
                      "description": "Closes public sign-up on first boot",
                      "defaultValue": "1"
                    },
                    "REDIS_CACHE_URL": {
                      "isOptional": false,
                      "description": "Frappe cache connection string",
                      "defaultValue": "${{Redis-Cache.REDIS_URL}}"
                    },
                    "REDIS_QUEUE_URL": {
                      "isOptional": false,
                      "description": "Frappe queue connection string",
                      "defaultValue": "${{Redis-Queue.REDIS_URL}}"
                    },
                    "DB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "MariaDB superuser password",
                      "defaultValue": "${{MariaDB.MARIADB_ROOT_PASSWORD}}"
                    },
                    "GUNICORN_THREADS": {
                      "isOptional": true,
                      "description": "Threads per web worker",
                      "defaultValue": "4"
                    },
                    "GUNICORN_TIMEOUT": {
                      "isOptional": true,
                      "description": "Web request timeout in seconds",
                      "defaultValue": "120"
                    },
                    "GUNICORN_WORKERS": {
                      "isOptional": true,
                      "description": "Web worker processes",
                      "defaultValue": "2"
                    },
                    "PROXY_READ_TIMEOUT": {
                      "isOptional": true,
                      "description": "nginx upstream read timeout",
                      "defaultValue": "120"
                    },
                    "CLIENT_MAX_BODY_SIZE": {
                      "isOptional": true,
                      "description": "Maximum upload size",
                      "defaultValue": "50m"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Window covering first-boot site install",
                      "defaultValue": "900"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Graceful shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "9733bdc4-de16-48ed-a4d1-073104818eaa": {
                      "mountPath": "/home/frappe/frappe-bench/sites"
                    }
                  }
                },
                "c6dfb788-1549-4087-b177-02db1708721e": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.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": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "c6dfb788-1549-4087-b177-02db1708721e": {
                      "mountPath": "/data"
                    }
                  }
                },
                "df1bab03-8a92-4ac1-9509-827975e6da8c": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mariadb.svg",
                  "name": "MariaDB",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'M=$(cat /sys/fs/cgroup/memory.max 2>/dev/null || echo max); case \"$M\" in \"\"|max|*[!0-9]*) P=1024;; *) P=$((M/1048576/2));; esac; if [ \"$P\" -lt 256 ]; then P=256; fi; echo \"mariadb: cgroup_mem=${M} innodb_buffer_pool_size=${P}M\"; exec docker-entrypoint.sh mariadbd --datadir=/var/lib/mysql/data --bind-address=:: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --skip-character-set-client-handshake --innodb-buffer-pool-size=${P}M --max-connections=300'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mariadb:11.8"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": true,
                      "description": "Server time zone",
                      "defaultValue": "UTC"
                    },
                    "MARIADB_AUTO_UPGRADE": {
                      "isOptional": true,
                      "description": "Runs mariadb-upgrade after a version bump",
                      "defaultValue": "1"
                    },
                    "MARIADB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, read by the entrypoint",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "df1bab03-8a92-4ac1-9509-827975e6da8c": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Frappe-HR",
      "method": "GET",
      "path": "/railway/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-23T04:14:45.320Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T19:54:23.662Z",
  "success_rate_30d": 0.4286,
  "validation": {
    "last_run_id": "run_8dfccdf98d5540848e26",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "DEPLOYING,SUCCESS,SUCCESS,SUCCESS,SUCCESS"
      }
    ],
    "typical_ready_seconds": 399,
    "typical_build_seconds": 145,
    "typical_start_seconds": 182,
    "slowest_service": "Frappe-HR"
  }
}
