{
  "manifest_version": "1.0.0",
  "template": {
    "id": "aee51fee-70da-4085-a5a1-d8f155e92811",
    "slug": "bugsink-error-trac-1",
    "name": "Bugsink Error Tracking",
    "description": "Self-hosted error tracking with private MySQL and generated admin access.",
    "url": "https://railway.com/deploy/bugsink-error-trac-1",
    "upstream": {
      "image": "bugsink/bugsink:2.5.1@sha256:ecdd845877464d70d61244b8adba20d623e1860e88d8338f2808d9cc2925745c"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "mysql",
      "source": {
        "image": "mysql:8.4@sha256:85b9bf2e29cf836ecb8c2a15a935d4ba0c606631dff1dd79531a11983c638f2a"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "bugsink",
      "source": {
        "image": "bugsink/bugsink:2.5.1@sha256:ecdd845877464d70d61244b8adba20d623e1860e88d8338f2808d9cc2925745c"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQL_USER",
      "service": "mysql",
      "description": "Mysql user for mysql. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "bugsink"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "mysql",
      "description": "Mysql database for mysql. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "bugsink"
    },
    {
      "key": "MYSQL_PASSWORD",
      "service": "mysql",
      "description": "Generated mysql password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "mysql",
      "description": "Generated mysql root password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "bugsink",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "BASE_URL",
      "service": "bugsink",
      "description": "Base url resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PHONEHOME",
      "service": "bugsink",
      "description": "Phonehome for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SECRET_KEY",
      "service": "bugsink",
      "description": "Generated secret key. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "bugsink",
      "description": "Required administrator email for first startup.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "bugsink",
      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "USE_X_REAL_IP",
      "service": "bugsink",
      "description": "Use x real ip for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "bugsink",
      "description": "Generated admin password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CREATE_SUPERUSER",
      "service": "bugsink",
      "description": "Create superuser resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "USER_REGISTRATION",
      "service": "bugsink",
      "description": "User registration for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "CB_ADMINS"
    },
    {
      "key": "BEHIND_HTTPS_PROXY",
      "service": "bugsink",
      "description": "Behind https proxy for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MAX_EVENT_AGE_DAYS",
      "service": "bugsink",
      "description": "Max event age days for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "SNAPPEA_NUM_WORKERS",
      "service": "bugsink",
      "description": "Snappea num workers for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "MAX_RETENTION_EVENT_COUNT",
      "service": "bugsink",
      "description": "Max retention event count for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "100000"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "bugsink-error-trac-1"
      }
    },
    "cli": "railway deploy --template bugsink-error-trac-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "aee51fee-70da-4085-a5a1-d8f155e92811",
            "serializedConfig": {
              "services": {
                "9a9559ec-ced0-549f-b61f-8975d479e0d3": {
                  "name": "mysql",
                  "deploy": {
                    "requiredMountPath": "/var/lib/mysql",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:8.4@sha256:85b9bf2e29cf836ecb8c2a15a935d4ba0c606631dff1dd79531a11983c638f2a"
                  },
                  "variables": {
                    "MYSQL_USER": {
                      "isOptional": false,
                      "description": "Mysql user for mysql. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "bugsink"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Mysql database for mysql. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "bugsink"
                    },
                    "MYSQL_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated mysql password. Keep private and preserve with backups.",
                      "defaultValue": "{{MYSQL_PASSWORD}}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated mysql root password. Keep private and preserve with backups.",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "6caa3481-2c0f-5d50-9480-904c57280752": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "c4afb97d-39bf-5bc8-910b-96c473f62bbc": {
                  "name": "bugsink",
                  "deploy": {
                    "healthcheckPath": "/health/ready",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "bugsink/bugsink:2.5.1@sha256:ecdd845877464d70d61244b8adba20d623e1860e88d8338f2808d9cc2925745c"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8000"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Base url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "https://${{bugsink.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PHONEHOME": {
                      "isOptional": false,
                      "description": "Phonehome for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "false"
                    },
                    "EMAIL_HOST": {
                      "isOptional": true,
                      "description": "Optional SMTP server for invitations and alerts."
                    },
                    "SECRET_KEY": {
                      "isOptional": false,
                      "description": "Generated secret key. Keep private and preserve with backups.",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Required administrator email for first startup.",
                      "defaultValue": "{{ADMIN_EMAIL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
                      "defaultValue": "mysql://bugsink:${{mysql.MYSQL_PASSWORD}}@${{mysql.RAILWAY_PRIVATE_DOMAIN}}:3306/bugsink"
                    },
                    "USE_X_REAL_IP": {
                      "isOptional": false,
                      "description": "Use x real ip for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "false"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated admin password. Keep private and preserve with backups.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "EMAIL_HOST_USER": {
                      "isOptional": true,
                      "description": "SMTP username."
                    },
                    "CREATE_SUPERUSER": {
                      "isOptional": false,
                      "description": "Create superuser resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{bugsink.ADMIN_EMAIL}}:${{bugsink.ADMIN_PASSWORD}}"
                    },
                    "USER_REGISTRATION": {
                      "isOptional": false,
                      "description": "User registration for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "CB_ADMINS"
                    },
                    "BEHIND_HTTPS_PROXY": {
                      "isOptional": false,
                      "description": "Behind https proxy for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "true"
                    },
                    "DEFAULT_FROM_EMAIL": {
                      "isOptional": true,
                      "description": "Verified sender email."
                    },
                    "MAX_EVENT_AGE_DAYS": {
                      "isOptional": false,
                      "description": "Max event age days for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "30"
                    },
                    "EMAIL_HOST_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password."
                    },
                    "SNAPPEA_NUM_WORKERS": {
                      "isOptional": false,
                      "description": "Snappea num workers for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "2"
                    },
                    "MAX_RETENTION_EVENT_COUNT": {
                      "isOptional": false,
                      "description": "Max retention event count for bugsink. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "100000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "bugsink",
      "method": "GET",
      "path": "/health/ready",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T22:14:35.692Z",
  "generator_version": "0.1.0"
}
