{
  "manifest_version": "1.0.0",
  "template": {
    "id": "170a2f39-33dc-42b9-892f-1207a2f67e0a",
    "slug": "modbot",
    "name": "Modbot",
    "description": "The open moderation & analytics engine for VRChat & Discord.",
    "url": "https://railway.com/deploy/modbot",
    "upstream": {
      "image": "datalust/seq:latest"
    }
  },
  "services": [
    {
      "name": "Seq",
      "source": {
        "image": "datalust/seq:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "modbot-database",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Modbot",
      "source": {
        "image": "ghcr.io/modbot/modbot:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Seq",
      "description": "Port that Seq listens on for web UI.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ACCEPT_EULA",
      "service": "Seq",
      "description": "Accept the Seq EULA to use Seq.",
      "secret": false,
      "strategy": "default",
      "default": "Y"
    },
    {
      "key": "SEQ_API_LISTENURIS",
      "service": "Seq",
      "description": "Listening URLs that Seq uses to accept incoming logs.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SEQ_API_CANONICALURI",
      "service": "Seq",
      "description": "Public URL that Seq serves on.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SEQ_API_INGESTIONPORTS",
      "service": "Seq",
      "description": "Log ingestion ports that Seq uses.",
      "secret": false,
      "strategy": "default",
      "default": "5341"
    },
    {
      "key": "SEQ_FIRSTRUN_ADMINPASSWORD",
      "service": "Seq",
      "description": "The admin user's password for logging in and accessing Seq.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SEQ_FIRSTRUN_ADMINUSERNAME",
      "service": "Seq",
      "description": "Username of the admin account for Seq",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "PGDATA",
      "service": "modbot-database",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "modbot-database",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "modbot-database",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "modbot-database",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "modbot-database",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "modbot-database",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "modbot-database",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "modbot-database",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "modbot-database",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "modbot-database",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "modbot-database",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "modbot-database",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "Modbot",
      "description": "Port Modbot listens on.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "BUCKET",
      "service": "Modbot",
      "description": "S3 Bucket Modbot sends files to for storage.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REGION",
      "service": "Modbot",
      "description": "S3 Bucket Region Modbot sends files to for storage.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SEQ_URL",
      "service": "Modbot",
      "description": "Seq URL used for storing rich structured logs.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENDPOINT",
      "service": "Modbot",
      "description": "S3 Bucket Endpoint Modbot sends files to for storage.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "Modbot",
      "description": "PostgreSQL Database URL Modbot connects to and stores data at.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACCESS_KEY_ID",
      "service": "Modbot",
      "description": "S3 Bucket Access Key ID Modbot sends files to for storage.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONSOLE_LOG_MODE",
      "service": "Modbot",
      "description": "Logging mode for compatibility with Railway-like hosting providers.",
      "secret": false,
      "strategy": "default",
      "default": "railway_json"
    },
    {
      "key": "CONSOLE_LOG_LEVEL",
      "service": "Modbot",
      "description": "Default console log level used by the app.",
      "secret": false,
      "strategy": "default",
      "default": "Information"
    },
    {
      "key": "SECRET_ACCESS_KEY",
      "service": "Modbot",
      "description": "S3 Bucket Secret Access Key Modbot sends files to for storage.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "modbot"
      }
    },
    "cli": "railway deploy --template modbot",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "170a2f39-33dc-42b9-892f-1207a2f67e0a",
            "serializedConfig": {
              "buckets": {
                "004a7e56-440a-4be9-b093-aae4b09cc860": {
                  "name": "modbot-files"
                }
              },
              "services": {
                "6267b041-4e4a-4c7f-a953-2cf308dfad44": {
                  "icon": "https://datalust.co/assets/favicon-1.png",
                  "name": "Seq",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "datalust/seq:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port that Seq listens on for web UI.",
                      "defaultValue": "8080"
                    },
                    "ACCEPT_EULA": {
                      "isOptional": false,
                      "description": "Accept the Seq EULA to use Seq.",
                      "defaultValue": "Y"
                    },
                    "SEQ_API_LISTENURIS": {
                      "isOptional": false,
                      "description": "Listening URLs that Seq uses to accept incoming logs.",
                      "defaultValue": "http://localhost:${{Seq.PORT}},http://[::]:5341"
                    },
                    "SEQ_API_CANONICALURI": {
                      "isOptional": false,
                      "description": "Public URL that Seq serves on.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SEQ_API_INGESTIONPORTS": {
                      "isOptional": false,
                      "description": "Log ingestion ports that Seq uses.",
                      "defaultValue": "5341"
                    },
                    "SEQ_FIRSTRUN_ADMINPASSWORD": {
                      "isOptional": false,
                      "description": "The admin user's password for logging in and accessing Seq.",
                      "defaultValue": "{{SEQ_FIRSTRUN_ADMINPASSWORD}}"
                    },
                    "SEQ_FIRSTRUN_ADMINUSERNAME": {
                      "isOptional": false,
                      "description": "Username of the admin account for Seq",
                      "defaultValue": "admin"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "6267b041-4e4a-4c7f-a953-2cf308dfad44": {
                      "mountPath": "/data"
                    }
                  }
                },
                "95009587-0b3f-41bc-9635-fd971c7f6426": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "modbot-database",
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "95009587-0b3f-41bc-9635-fd971c7f6426": {
                      "mountPath": "/var/lib/postgresql/data",
                      "backupSchedules": [
                        "DAILY",
                        "WEEKLY"
                      ]
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "f2f3d897-fa9d-49df-8fd9-9a80575d5c5e": {
                  "icon": "https://github.com/Modbot/Modbot/blob/master/src/Modbot.Landing/Web/public/icon-512.png?raw=true",
                  "name": "Modbot",
                  "deploy": {
                    "healthcheckPath": "/health/ready"
                  },
                  "source": {
                    "image": "ghcr.io/modbot/modbot:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Modbot listens on.",
                      "defaultValue": "8080"
                    },
                    "BUCKET": {
                      "isOptional": false,
                      "description": "S3 Bucket Modbot sends files to for storage.",
                      "defaultValue": "${{modbot-files.BUCKET}}"
                    },
                    "REGION": {
                      "isOptional": false,
                      "description": "S3 Bucket Region Modbot sends files to for storage.",
                      "defaultValue": "${{modbot-files.REGION}}"
                    },
                    "SEQ_URL": {
                      "isOptional": false,
                      "description": "Seq URL used for storing rich structured logs.",
                      "defaultValue": "http://${{Seq.RAILWAY_PRIVATE_DOMAIN}}:5341"
                    },
                    "ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 Bucket Endpoint Modbot sends files to for storage.",
                      "defaultValue": "${{modbot-files.ENDPOINT}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL Database URL Modbot connects to and stores data at.",
                      "defaultValue": "${{modbot-database.DATABASE_URL}}"
                    },
                    "ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "S3 Bucket Access Key ID Modbot sends files to for storage.",
                      "defaultValue": "${{modbot-files.ACCESS_KEY_ID}}"
                    },
                    "CONSOLE_LOG_MODE": {
                      "isOptional": false,
                      "description": "Logging mode for compatibility with Railway-like hosting providers.",
                      "defaultValue": "railway_json"
                    },
                    "CONSOLE_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Default console log level used by the app.",
                      "defaultValue": "Information"
                    },
                    "SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "S3 Bucket Secret Access Key Modbot sends files to for storage.",
                      "defaultValue": "${{modbot-files.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "f2f3d897-fa9d-49df-8fd9-9a80575d5c5e": {
                      "mountPath": "/app/data",
                      "backupSchedules": [
                        "MONTHLY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Seq",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T22:14:40.433Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T20:32:11.157Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_cdb45a7732884bf2b470",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
