{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ef62afb6-6750-477f-b9fc-43a52e267141",
    "slug": "plausible-community-edition",
    "name": "Plausible",
    "description": "Google analytics alternative. Privacy-first web analytics, custom events",
    "url": "https://railway.com/deploy/plausible-community-edition",
    "upstream": {
      "image": "axllent/mailpit:latest"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "ClickHouse",
      "source": {
        "repo": "https://github.com/gridalpha/plausible-clickhouse-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "http": false
    },
    {
      "name": "plausible",
      "source": {
        "image": "ghcr.io/plausible/community-edition:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/plausible",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "TZ",
      "service": "mailpit",
      "description": "Timestamps shown in the inbox",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Web inbox port",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Basic auth for the web inbox",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MP_DATABASE",
      "service": "mailpit",
      "description": "Message store on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/mailpit.db"
    },
    {
      "key": "MP_MAX_MESSAGES",
      "service": "mailpit",
      "description": "Messages retained before rotation",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "MP_SMTP_MAX_RECIPIENTS",
      "service": "mailpit",
      "description": "Recipient cap per message",
      "secret": false,
      "strategy": "default",
      "default": "100"
    },
    {
      "key": "MP_SMTP_AUTH_ALLOW_INSECURE",
      "service": "mailpit",
      "description": "No plaintext auth on the SMTP listener",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PORT",
      "service": "ClickHouse",
      "description": "HTTP interface, health-checked on /ping",
      "secret": false,
      "strategy": "default",
      "default": "8123"
    },
    {
      "key": "CLICKHOUSE_DB",
      "service": "ClickHouse",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "plausible_events"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "ClickHouse",
      "description": "Replaces the stock default account",
      "secret": false,
      "strategy": "default",
      "default": "plausible"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "ClickHouse",
      "description": "Password for that account",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT",
      "service": "ClickHouse",
      "description": "No SQL-level user management",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "PORT",
      "service": "plausible",
      "description": "HTTP listen port, also health-checked",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "TMPDIR",
      "service": "plausible",
      "description": "Scratch directory on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/plausible/tmp"
    },
    {
      "key": "BASE_URL",
      "service": "plausible",
      "description": "Public URL used in generated links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MAILER_NAME",
      "service": "plausible",
      "description": "Sender display name",
      "secret": false,
      "strategy": "default",
      "default": "Plausible Analytics"
    },
    {
      "key": "DATABASE_URL",
      "service": "plausible",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAILER_EMAIL",
      "service": "plausible",
      "description": "From address on outgoing mail",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MAILER_ADAPTER",
      "service": "plausible",
      "description": "SMTP mailer with optional relay",
      "secret": false,
      "strategy": "default",
      "default": "Bamboo.Mua"
    },
    {
      "key": "SMTP_HOST_ADDR",
      "service": "plausible",
      "description": "SMTP relay host, private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SMTP_HOST_PORT",
      "service": "plausible",
      "description": "SMTP relay port",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "plausible",
      "description": "Lets the entrypoint chown the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "plausible",
      "description": "Session signing key, min 64 chars",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DISABLE_REGISTRATION",
      "service": "plausible",
      "description": "First account exempt, then invite-only",
      "secret": false,
      "strategy": "default",
      "default": "invite_only"
    },
    {
      "key": "SMTP_HOST_SSL_ENABLED",
      "service": "plausible",
      "description": "Relay listener is plaintext",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CLICKHOUSE_DATABASE_URL",
      "service": "plausible",
      "description": "ClickHouse connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "plausible-community-edition"
      }
    },
    "cli": "railway deploy --template plausible-community-edition",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ef62afb6-6750-477f-b9fc-43a52e267141",
            "serializedConfig": {
              "buckets": {
                "7427764d-0210-4220-a780-d085d1f737ec": {
                  "name": "plausible-storage"
                }
              },
              "services": {
                "3c5cadb9-ccc9-4768-a90b-6184782e150c": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "3c5cadb9-ccc9-4768-a90b-6184782e150c": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "4a9a8408-cd43-4768-981d-2b6392d3ea14": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timestamps shown in the inbox",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Web inbox port",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Basic auth for the web inbox",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": false,
                      "description": "Messages retained before rotation",
                      "defaultValue": "5000"
                    },
                    "MP_SMTP_MAX_RECIPIENTS": {
                      "isOptional": false,
                      "description": "Recipient cap per message",
                      "defaultValue": "100"
                    },
                    "MP_SMTP_AUTH_ALLOW_INSECURE": {
                      "isOptional": false,
                      "description": "No plaintext auth on the SMTP listener",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "4a9a8408-cd43-4768-981d-2b6392d3ea14": {
                      "mountPath": "/data"
                    }
                  }
                },
                "d3ee134d-6b0f-4d96-82c5-784f7ea64d9b": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/clickhouse.svg",
                  "name": "ClickHouse",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/plausible-clickhouse-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP interface, health-checked on /ping",
                      "defaultValue": "8123"
                    },
                    "CLICKHOUSE_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "plausible_events"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "Replaces the stock default account",
                      "defaultValue": "plausible"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for that account",
                      "defaultValue": "{{CLICKHOUSE_PASSWORD}}"
                    },
                    "CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT": {
                      "isOptional": false,
                      "description": "No SQL-level user management",
                      "defaultValue": "0"
                    }
                  },
                  "volumeMounts": {
                    "d3ee134d-6b0f-4d96-82c5-784f7ea64d9b": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                },
                "f555a682-5eff-4a97-a0b3-c3d3408ab3da": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/plausible.svg",
                  "name": "plausible",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'set -e; mkdir -p /var/lib/plausible/tmp; chown -R 999:nogroup /var/lib/plausible; exec su -s /bin/sh -p -c \"export HOME=/var/lib/plausible; id; /entrypoint.sh db createdb && /entrypoint.sh db migrate && exec /entrypoint.sh run\" plausible'",
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/plausible/community-edition:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listen port, also health-checked",
                      "defaultValue": "8000"
                    },
                    "TMPDIR": {
                      "isOptional": false,
                      "description": "Scratch directory on the volume",
                      "defaultValue": "/var/lib/plausible/tmp"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL used in generated links",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MAILER_NAME": {
                      "isOptional": false,
                      "description": "Sender display name",
                      "defaultValue": "Plausible Analytics"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "MAILER_EMAIL": {
                      "isOptional": false,
                      "description": "From address on outgoing mail",
                      "defaultValue": "plausible@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MAILER_ADAPTER": {
                      "isOptional": false,
                      "description": "SMTP mailer with optional relay",
                      "defaultValue": "Bamboo.Mua"
                    },
                    "SMTP_HOST_ADDR": {
                      "isOptional": false,
                      "description": "SMTP relay host, private network",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SMTP_HOST_PORT": {
                      "isOptional": false,
                      "description": "SMTP relay port",
                      "defaultValue": "1025"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Lets the entrypoint chown the volume",
                      "defaultValue": "0"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Session signing key, min 64 chars",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "DISABLE_REGISTRATION": {
                      "isOptional": false,
                      "description": "First account exempt, then invite-only",
                      "defaultValue": "invite_only"
                    },
                    "SMTP_HOST_SSL_ENABLED": {
                      "isOptional": false,
                      "description": "Relay listener is plaintext",
                      "defaultValue": "false"
                    },
                    "CLICKHOUSE_DATABASE_URL": {
                      "isOptional": false,
                      "description": "ClickHouse connection string",
                      "defaultValue": "http://plausible:${{ClickHouse.CLICKHOUSE_PASSWORD}}@${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123/plausible_events"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  },
                  "volumeMounts": {
                    "f555a682-5eff-4a97-a0b3-c3d3408ab3da": {
                      "mountPath": "/var/lib/plausible"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "mailpit",
      "method": "GET",
      "path": "/livez",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T17:14:16.750Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_081b3e004b21418988ef",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 108,
    "typical_build_seconds": 0,
    "typical_start_seconds": 31,
    "slowest_service": "plausible"
  }
}
