{
  "manifest_version": "1.0.0",
  "template": {
    "id": "76f17991-aadc-4620-84f4-1a2d814778de",
    "slug": "wikijs-1",
    "name": "Wiki.js",
    "description": "Wiki.js — self-hosted wiki platform, Confluence alternative with Git sync",
    "url": "https://railway.com/deploy/wikijs-1",
    "upstream": {
      "image": "requarks/wiki:2.5.314"
    }
  },
  "services": [
    {
      "name": "wikijs-app",
      "source": {
        "image": "requarks/wiki:2.5.314"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "postgres:16-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "wikijs-app",
      "description": "Port Wiki.js listens on (default: 3000).",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "DB_HOST",
      "service": "wikijs-app",
      "description": "PostgreSQL host. Points at the sibling 'postgres' Railway service in this template.",
      "secret": false,
      "strategy": "default",
      "default": "postgres.railway.internal"
    },
    {
      "key": "DB_NAME",
      "service": "wikijs-app",
      "description": "Database name for Wiki.js data. Must match the postgres service's POSTGRES_DB (/wikijs).",
      "secret": false,
      "strategy": "default",
      "default": "wikijs"
    },
    {
      "key": "DB_PASS",
      "service": "wikijs-app",
      "description": "Database password. Must match the postgres service's POSTGRES_PASSWORD. Rotate both before production.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "DB_PORT",
      "service": "wikijs-app",
      "description": "PostgreSQL port (default: 5432).",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "DB_TYPE",
      "service": "wikijs-app",
      "description": "Database engine: postgres, mysql, mssql, or sqlite (default: postgres).",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "DB_USER",
      "service": "wikijs-app",
      "description": "Database user. Must match the postgres service's POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "APP_NAME",
      "service": "wikijs-app",
      "description": "Display name for your wiki.",
      "secret": false,
      "strategy": "default",
      "default": "Wiki.js"
    },
    {
      "key": "TIMEZONE",
      "service": "wikijs-app",
      "description": "Server timezone (e.g., America/New_York, Europe/London).",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "URL_BASE",
      "service": "wikijs-app",
      "description": "Public URL of your wiki. Auto-populated from Railway's public domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_FILEPATH",
      "service": "wikijs-app",
      "description": "Path for SQLite database file when using DB_TYPE=sqlite.",
      "secret": false,
      "strategy": "default",
      "default": "/wiki/data/wikijs.db"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Postgres data directory inside the mounted volume. Must be a subpath of the volume mount path /var/lib/postgresql.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Initial database created on first boot. Must match the DB_NAME Wiki.js uses (/wikijs path component).",
      "secret": false,
      "strategy": "default",
      "default": "wikijs"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Postgres superuser name. Wiki.js connects with these credentials.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Postgres password. Default literal 'postgres' so a fresh marketplace deploy authenticates out of the box. Rotate this in the dashboard AND update the wiki's DB_PASS to match before production.",
      "secret": true,
      "strategy": "default",
      "default": "postgres"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "wikijs-1"
      }
    },
    "cli": "railway deploy --template wikijs-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "76f17991-aadc-4620-84f4-1a2d814778de",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5872b837-6c9a-404c-8437-256aea993108": {
                  "icon": null,
                  "name": "wikijs-app",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "requarks/wiki:2.5.314"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Wiki.js listens on (default: 3000).",
                      "defaultValue": "3000"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "PostgreSQL host. Points at the sibling 'postgres' Railway service in this template.",
                      "defaultValue": "postgres.railway.internal"
                    },
                    "DB_NAME": {
                      "isOptional": false,
                      "description": "Database name for Wiki.js data. Must match the postgres service's POSTGRES_DB (/wikijs).",
                      "defaultValue": "wikijs"
                    },
                    "DB_PASS": {
                      "isOptional": false,
                      "description": "Database password. Must match the postgres service's POSTGRES_PASSWORD. Rotate both before production.",
                      "defaultValue": "postgres"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "PostgreSQL port (default: 5432).",
                      "defaultValue": "5432"
                    },
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "Database engine: postgres, mysql, mssql, or sqlite (default: postgres).",
                      "defaultValue": "postgres"
                    },
                    "DB_USER": {
                      "isOptional": false,
                      "description": "Database user. Must match the postgres service's POSTGRES_USER.",
                      "defaultValue": "postgres"
                    },
                    "APP_NAME": {
                      "isOptional": false,
                      "description": "Display name for your wiki.",
                      "defaultValue": "Wiki.js"
                    },
                    "TIMEZONE": {
                      "isOptional": false,
                      "description": "Server timezone (e.g., America/New_York, Europe/London).",
                      "defaultValue": "UTC"
                    },
                    "URL_BASE": {
                      "isOptional": false,
                      "description": "Public URL of your wiki. Auto-populated from Railway's public domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_FILEPATH": {
                      "isOptional": false,
                      "description": "Path for SQLite database file when using DB_TYPE=sqlite.",
                      "defaultValue": "/wiki/data/wikijs.db"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "cbdfc8d4-ff75-47c3-a1f8-248286e997b9": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:16-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data directory inside the mounted volume. Must be a subpath of the volume mount path /var/lib/postgresql.",
                      "defaultValue": "/var/lib/postgresql/data"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Initial database created on first boot. Must match the DB_NAME Wiki.js uses (/wikijs path component).",
                      "defaultValue": "wikijs"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres superuser name. Wiki.js connects with these credentials.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password. Default literal 'postgres' so a fresh marketplace deploy authenticates out of the box. Rotate this in the dashboard AND update the wiki's DB_PASS to match before production.",
                      "defaultValue": "postgres"
                    }
                  },
                  "volumeMounts": {
                    "cbdfc8d4-ff75-47c3-a1f8-248286e997b9": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-22T15:04:31.208Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_24c14a47c4a04ebda89a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 27,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "wikijs-app"
  }
}
