{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8a5060fd-73ab-41ae-ae79-aa092c97bf30",
    "slug": "plausible-ce-1",
    "name": "Plausible Analytics CE",
    "description": "Plausible — cookie-free web analytics, Google Analytics alternative",
    "url": "https://railway.com/deploy/plausible-ce-1",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/railway-plausible"
    }
  },
  "services": [
    {
      "name": "plausible-ce",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-plausible"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "postgres:16-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "ClickHouse",
      "source": {
        "image": "clickhouse/clickhouse-server:24.12-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "BASE_URL",
      "service": "plausible-ce",
      "description": "Public URL of deployed Plausible instance. https:// prefix required.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "plausible-ce",
      "description": "PostgreSQL connection URL to sibling postgres service. Literal credentials match Postgres tile defaults.",
      "secret": false,
      "strategy": "default",
      "default": "postgresql://postgres:postgres@postgres.railway.internal:5432/plausible"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "plausible-ce",
      "description": "64-byte random string for cookie signing. Auto-generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DISABLE_REGISTRATION",
      "service": "plausible-ce",
      "description": "Set to true after creating admin user to prevent public signups.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CLICKHOUSE_DATABASE_URL",
      "service": "plausible-ce",
      "description": "ClickHouse connection URL. Literal credentials match ClickHouse tile defaults.",
      "secret": false,
      "strategy": "default",
      "default": "http://plausible:plausible2026@clickhouse.railway.internal:8123/plausible"
    },
    {
      "key": "ENABLE_EMAIL_VERIFICATION",
      "service": "plausible-ce",
      "description": "Set to true to require email verification on signup.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Postgres data dir inside volume. MUST remain subpath of /var/lib/postgresql volume mount for lost+found geometry.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Initial database. Must match Plausible CE DATABASE_URL path component.",
      "secret": false,
      "strategy": "default",
      "default": "plausible"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Postgres superuser name. Must match Plausible CE DATABASE_URL user portion.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Postgres password. Literal 'postgres' for marketplace-safe first-time deploy auth.",
      "secret": true,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "CLICKHOUSE_DB",
      "service": "ClickHouse",
      "description": "ClickHouse database name.",
      "secret": false,
      "strategy": "default",
      "default": "plausible"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "ClickHouse",
      "description": "ClickHouse user. Matches Plausible CE CLICKHOUSE_DATABASE_URL user portion.",
      "secret": false,
      "strategy": "default",
      "default": "plausible"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "ClickHouse",
      "description": "ClickHouse password. Literal 'plausible2026' for marketplace-safe deploys.",
      "secret": true,
      "strategy": "default",
      "default": "plausible2026"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "plausible-ce-1"
      }
    },
    "cli": "railway deploy --template plausible-ce-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8a5060fd-73ab-41ae-ae79-aa092c97bf30",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0e1a7c96-9f03-4626-ad24-ba79ef558f28": {
                  "icon": null,
                  "name": "plausible-ce",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/railway-plausible",
                    "rootDirectory": null
                  },
                  "variables": {
                    "BASE_URL": {
                      "description": "Public URL of deployed Plausible instance. https:// prefix required.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "description": "PostgreSQL connection URL to sibling postgres service. Literal credentials match Postgres tile defaults.",
                      "defaultValue": "postgresql://postgres:postgres@postgres.railway.internal:5432/plausible"
                    },
                    "SECRET_KEY_BASE": {
                      "description": "64-byte random string for cookie signing. Auto-generated per deploy.",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "DISABLE_REGISTRATION": {
                      "description": "Set to true after creating admin user to prevent public signups.",
                      "defaultValue": "false"
                    },
                    "CLICKHOUSE_DATABASE_URL": {
                      "description": "ClickHouse connection URL. Literal credentials match ClickHouse tile defaults.",
                      "defaultValue": "http://plausible:plausible2026@clickhouse.railway.internal:8123/plausible"
                    },
                    "ENABLE_EMAIL_VERIFICATION": {
                      "description": "Set to true to require email verification on signup.",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "850e09ad-6089-467c-a3d8-eedf94b0e088": {
                  "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 dir inside volume. MUST remain subpath of /var/lib/postgresql volume mount for lost+found geometry.",
                      "defaultValue": "/var/lib/postgresql/data"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Initial database. Must match Plausible CE DATABASE_URL path component.",
                      "defaultValue": "plausible"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres superuser name. Must match Plausible CE DATABASE_URL user portion.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password. Literal 'postgres' for marketplace-safe first-time deploy auth.",
                      "defaultValue": "postgres"
                    }
                  },
                  "volumeMounts": {
                    "850e09ad-6089-467c-a3d8-eedf94b0e088": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "faf29013-f704-4cad-8edf-d94ff9a3075f": {
                  "icon": null,
                  "name": "ClickHouse",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "clickhouse/clickhouse-server:24.12-alpine"
                  },
                  "variables": {
                    "CLICKHOUSE_DB": {
                      "description": "ClickHouse database name.",
                      "defaultValue": "plausible"
                    },
                    "CLICKHOUSE_USER": {
                      "description": "ClickHouse user. Matches Plausible CE CLICKHOUSE_DATABASE_URL user portion.",
                      "defaultValue": "plausible"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "description": "ClickHouse password. Literal 'plausible2026' for marketplace-safe deploys.",
                      "defaultValue": "plausible2026"
                    }
                  },
                  "volumeMounts": {
                    "faf29013-f704-4cad-8edf-d94ff9a3075f": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-12T10:14:41.946Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-11T06:13:42.473Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_5b6f547e16c14668bcbb",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 113,
    "typical_build_seconds": 20,
    "typical_start_seconds": 5,
    "slowest_service": "plausible-ce"
  }
}
