{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a9c13926-2e53-446c-bcfc-26564f51a515",
    "slug": "growi",
    "name": "Growi",
    "description": "Confluence Alternative. Markdown wiki, real-time editing, full-text search",
    "url": "https://railway.com/deploy/growi",
    "upstream": {
      "image": "growilabs/growi:latest"
    }
  },
  "services": [
    {
      "name": "growi",
      "source": {
        "image": "growilabs/growi:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "mongodb",
      "source": {
        "repo": "https://github.com/gridalpha/growi-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "http": false
    },
    {
      "name": "elasticsearch",
      "source": {
        "repo": "https://github.com/gridalpha/growi-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/share/elasticsearch/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "growi",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "MONGO_URI",
      "service": "growi",
      "description": "MongoDB replica set connection",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_URI",
      "service": "growi",
      "description": "Session store connection",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FILE_UPLOAD",
      "service": "growi",
      "description": "Attachments written to the volume",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "APP_SITE_URL",
      "service": "growi",
      "description": "Public-facing wiki URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SECRET_TOKEN",
      "service": "growi",
      "description": "Session cookie signing key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PASSWORD_SEED",
      "service": "growi",
      "description": "Salt for stored password hashes",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "AUDIT_LOG_ENABLED",
      "service": "growi",
      "description": "Record admin actions to audit log",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ELASTICSEARCH_URI",
      "service": "growi",
      "description": "Search endpoint and index name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ELASTICSEARCH_VERSION",
      "service": "growi",
      "description": "Search backend major version",
      "secret": false,
      "strategy": "default",
      "default": "9"
    },
    {
      "key": "AUTO_INSTALL_ADMIN_NAME",
      "service": "growi",
      "description": "First administrator display name",
      "secret": false,
      "strategy": "default",
      "default": "Admin"
    },
    {
      "key": "AUTO_INSTALL_ADMIN_EMAIL",
      "service": "growi",
      "description": "First administrator email address",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.dev"
    },
    {
      "key": "AUTO_INSTALL_GLOBAL_LANG",
      "service": "growi",
      "description": "Default interface language",
      "secret": false,
      "strategy": "default",
      "default": "en_US"
    },
    {
      "key": "AUTO_INSTALL_ADMIN_PASSWORD",
      "service": "growi",
      "description": "First administrator password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "AUTO_INSTALL_ADMIN_USERNAME",
      "service": "growi",
      "description": "First administrator username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Standard Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default ACL user created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Convenience alias of the generated password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Generated password for the default user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGODB_DATABASE",
      "service": "mongodb",
      "description": "Database name for the wiki",
      "secret": false,
      "strategy": "default",
      "default": "growi"
    },
    {
      "key": "MONGODB_PORT_NUMBER",
      "service": "mongodb",
      "description": "MongoDB listening port",
      "secret": false,
      "strategy": "default",
      "default": "27017"
    },
    {
      "key": "MONGODB_APP_PASSWORD",
      "service": "mongodb",
      "description": "Application user password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGODB_APP_USERNAME",
      "service": "mongodb",
      "description": "Least-privilege application user",
      "secret": false,
      "strategy": "default",
      "default": "growi"
    },
    {
      "key": "MONGODB_ROOT_PASSWORD",
      "service": "mongodb",
      "description": "Root user password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "mongodb",
      "description": "Dockerfile used for this service",
      "secret": false,
      "strategy": "default",
      "default": "mongodb/Dockerfile"
    },
    {
      "key": "MONGODB_REPLICA_SET_NAME",
      "service": "mongodb",
      "description": "Single-node replica set name",
      "secret": false,
      "strategy": "default",
      "default": "rs0"
    },
    {
      "key": "PORT",
      "service": "elasticsearch",
      "description": "HTTP port used for health checks",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "ES_JAVA_OPTS",
      "service": "elasticsearch",
      "description": "JVM heap size for search node",
      "secret": false,
      "strategy": "default",
      "default": "-Xms1g -Xmx1g"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "elasticsearch",
      "description": "Dockerfile used for this service",
      "secret": false,
      "strategy": "default",
      "default": "elasticsearch/Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "growi"
      }
    },
    "cli": "railway deploy --template growi",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a9c13926-2e53-446c-bcfc-26564f51a515",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1a823e9c-f351-412d-80c2-8c29a71cbd6c": {
                  "icon": "https://raw.githubusercontent.com/growilabs/growi/master/apps/app/public/favicon.svg",
                  "name": "growi",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/login",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "growilabs/growi:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "3000"
                    },
                    "MONGO_URI": {
                      "isOptional": false,
                      "description": "MongoDB replica set connection",
                      "defaultValue": "mongodb://${{mongodb.MONGODB_APP_USERNAME}}:${{mongodb.MONGODB_APP_PASSWORD}}@${{mongodb.RAILWAY_PRIVATE_DOMAIN}}:${{mongodb.MONGODB_PORT_NUMBER}}/${{mongodb.MONGODB_DATABASE}}?authSource=admin&directConnection=true"
                    },
                    "REDIS_URI": {
                      "isOptional": false,
                      "description": "Session store connection",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "FILE_UPLOAD": {
                      "isOptional": false,
                      "description": "Attachments written to the volume",
                      "defaultValue": "local"
                    },
                    "APP_SITE_URL": {
                      "isOptional": false,
                      "description": "Public-facing wiki URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SECRET_TOKEN": {
                      "isOptional": false,
                      "description": "Session cookie signing key",
                      "defaultValue": "{{SECRET_TOKEN}}"
                    },
                    "PASSWORD_SEED": {
                      "isOptional": false,
                      "description": "Salt for stored password hashes",
                      "defaultValue": "{{PASSWORD_SEED}}"
                    },
                    "AUDIT_LOG_ENABLED": {
                      "isOptional": false,
                      "description": "Record admin actions to audit log",
                      "defaultValue": "true"
                    },
                    "ELASTICSEARCH_URI": {
                      "isOptional": false,
                      "description": "Search endpoint and index name",
                      "defaultValue": "http://${{elasticsearch.RAILWAY_PRIVATE_DOMAIN}}:9200/growi"
                    },
                    "ELASTICSEARCH_VERSION": {
                      "isOptional": false,
                      "description": "Search backend major version",
                      "defaultValue": "9"
                    },
                    "AUTO_INSTALL_ADMIN_NAME": {
                      "isOptional": false,
                      "description": "First administrator display name",
                      "defaultValue": "Admin"
                    },
                    "AUTO_INSTALL_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "First administrator email address",
                      "defaultValue": "admin@example.dev"
                    },
                    "AUTO_INSTALL_GLOBAL_LANG": {
                      "isOptional": false,
                      "description": "Default interface language",
                      "defaultValue": "en_US"
                    },
                    "AUTO_INSTALL_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First administrator password",
                      "defaultValue": "{{AUTO_INSTALL_ADMIN_PASSWORD}}"
                    },
                    "AUTO_INSTALL_ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "First administrator username",
                      "defaultValue": "admin"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "1a823e9c-f351-412d-80c2-8c29a71cbd6c": {
                      "mountPath": "/data"
                    }
                  }
                },
                "4877ede1-4df0-497c-992c-41920a002c98": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "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": {
                    "4877ede1-4df0-497c-992c-41920a002c98": {
                      "mountPath": "/data"
                    }
                  }
                },
                "8b6ad3b9-fc92-49d7-b953-e255f9265caf": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mongodb.svg",
                  "name": "mongodb",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/growi-railway",
                    "rootDirectory": "mongodb"
                  },
                  "variables": {
                    "MONGODB_DATABASE": {
                      "isOptional": false,
                      "description": "Database name for the wiki",
                      "defaultValue": "growi"
                    },
                    "MONGODB_PORT_NUMBER": {
                      "isOptional": false,
                      "description": "MongoDB listening port",
                      "defaultValue": "27017"
                    },
                    "MONGODB_APP_PASSWORD": {
                      "isOptional": false,
                      "description": "Application user password",
                      "defaultValue": "{{MONGODB_APP_PASSWORD}}"
                    },
                    "MONGODB_APP_USERNAME": {
                      "isOptional": false,
                      "description": "Least-privilege application user",
                      "defaultValue": "growi"
                    },
                    "MONGODB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root user password",
                      "defaultValue": "{{MONGODB_ROOT_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "description": "Dockerfile used for this service",
                      "defaultValue": "mongodb/Dockerfile"
                    },
                    "MONGODB_REPLICA_SET_NAME": {
                      "isOptional": false,
                      "description": "Single-node replica set name",
                      "defaultValue": "rs0"
                    }
                  },
                  "volumeMounts": {
                    "8b6ad3b9-fc92-49d7-b953-e255f9265caf": {
                      "mountPath": "/data/db"
                    }
                  }
                },
                "dd8588ba-0d8d-4a83-86fd-f95f879e743f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/elasticsearch.svg",
                  "name": "elasticsearch",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/growi-railway",
                    "rootDirectory": "elasticsearch"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port used for health checks",
                      "defaultValue": "9200"
                    },
                    "ES_JAVA_OPTS": {
                      "isOptional": false,
                      "description": "JVM heap size for search node",
                      "defaultValue": "-Xms1g -Xmx1g"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "description": "Dockerfile used for this service",
                      "defaultValue": "elasticsearch/Dockerfile"
                    }
                  },
                  "volumeMounts": {
                    "dd8588ba-0d8d-4a83-86fd-f95f879e743f": {
                      "mountPath": "/usr/share/elasticsearch/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "growi",
      "method": "GET",
      "path": "/login",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T13:45:24.307Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_507f88ad834f4215818d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 166,
    "typical_build_seconds": 0,
    "typical_start_seconds": 41,
    "slowest_service": "growi"
  }
}
