{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d2d167f9-eda5-46dc-8b39-f036eee30667",
    "slug": "bugsink-error-tracking",
    "name": "Bugsink",
    "description": "Error tracking that shows you the stacktrace behind every crash",
    "url": "https://railway.com/deploy/bugsink-error-tracking",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/bugsink-railway"
    }
  },
  "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": "bugsink",
      "source": {
        "repo": "https://github.com/gridalpha/bugsink-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "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": "PORT",
      "service": "bugsink",
      "description": "HTTP port gunicorn binds",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "BASE_URL",
      "service": "bugsink",
      "description": "Public URL used in DSNs and mail",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TIME_ZONE",
      "service": "bugsink",
      "description": "Default display time zone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "EMAIL_HOST",
      "service": "bugsink",
      "description": "SMTP host for alert mail",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "EMAIL_PORT",
      "service": "bugsink",
      "description": "Mailpit plain SMTP port",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "SECRET_KEY",
      "service": "bugsink",
      "description": "Django signing key, 50+ chars required",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SITE_TITLE",
      "service": "bugsink",
      "description": "Name shown in the UI",
      "secret": false,
      "strategy": "default",
      "default": "Bugsink"
    },
    {
      "key": "DATABASE_URL",
      "service": "bugsink",
      "description": "PostgreSQL connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ALLOWED_HOSTS",
      "service": "bugsink",
      "description": "Accepted Host headers; edge already filters",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "EMAIL_USE_SSL",
      "service": "bugsink",
      "description": "No implicit TLS either",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "EMAIL_USE_TLS",
      "service": "bugsink",
      "description": "Mailpit 1025 offers no STARTTLS",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CREATE_SUPERUSER",
      "service": "bugsink",
      "description": "First admin, email:password",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BEHIND_HTTPS_PROXY",
      "service": "bugsink",
      "description": "Secure cookies, proxy scheme and client IP",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DEFAULT_FROM_EMAIL",
      "service": "bugsink",
      "description": "Alert sender address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "FILE_EVENT_STORAGE_PATH",
      "service": "bugsink",
      "description": "Event payload directory on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/events"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "bugsink",
      "description": "Dockerfile selected in the source repo",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile"
    },
    {
      "key": "FILE_OBJECT_STORAGE_PATH",
      "service": "bugsink",
      "description": "Uploaded artifact directory on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/files"
    },
    {
      "key": "FILE_EVENT_STORAGE_USE_FOR_WRITE",
      "service": "bugsink",
      "description": "Write new events to that directory",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "FILE_OBJECT_STORAGE_USE_FOR_WRITE",
      "service": "bugsink",
      "description": "Write new uploads to that directory",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "bugsink",
      "description": "Graceful shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Web inbox port probed by the health check",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Basic auth protecting the 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_UI_BIND_ADDR",
      "service": "mailpit",
      "description": "Dual-stack bind for the web inbox",
      "secret": false,
      "strategy": "default",
      "default": "[::]:8025"
    },
    {
      "key": "MP_SMTP_BIND_ADDR",
      "service": "mailpit",
      "description": "Dual-stack bind for private SMTP",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1025"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "bugsink-error-tracking"
      }
    },
    "cli": "railway deploy --template bugsink-error-tracking",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d2d167f9-eda5-46dc-8b39-f036eee30667",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "593c4479-e869-4211-8380-a8f8a72eb33f": {
                  "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": {
                    "593c4479-e869-4211-8380-a8f8a72eb33f": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "795b8bac-65d2-468d-a229-4bdf52c07243": {
                  "icon": "https://raw.githubusercontent.com/bugsink/bugsink/main/static/images/bugsink-logo-dark.png",
                  "name": "bugsink",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health/ready",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/bugsink-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port gunicorn binds",
                      "defaultValue": "8000"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL used in DSNs and mail",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TIME_ZONE": {
                      "isOptional": false,
                      "description": "Default display time zone",
                      "defaultValue": "UTC"
                    },
                    "EMAIL_HOST": {
                      "isOptional": false,
                      "description": "SMTP host for alert mail",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "EMAIL_PORT": {
                      "isOptional": false,
                      "description": "Mailpit plain SMTP port",
                      "defaultValue": "1025"
                    },
                    "SECRET_KEY": {
                      "isOptional": false,
                      "description": "Django signing key, 50+ chars required",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "SITE_TITLE": {
                      "isOptional": false,
                      "description": "Name shown in the UI",
                      "defaultValue": "Bugsink"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "ALLOWED_HOSTS": {
                      "isOptional": false,
                      "description": "Accepted Host headers; edge already filters",
                      "defaultValue": "*"
                    },
                    "EMAIL_USE_SSL": {
                      "isOptional": false,
                      "description": "No implicit TLS either",
                      "defaultValue": "false"
                    },
                    "EMAIL_USE_TLS": {
                      "isOptional": false,
                      "description": "Mailpit 1025 offers no STARTTLS",
                      "defaultValue": "false"
                    },
                    "CREATE_SUPERUSER": {
                      "isOptional": false,
                      "description": "First admin, email:password",
                      "defaultValue": "{{CREATE_SUPERUSER}}"
                    },
                    "BEHIND_HTTPS_PROXY": {
                      "isOptional": false,
                      "description": "Secure cookies, proxy scheme and client IP",
                      "defaultValue": "true"
                    },
                    "DEFAULT_FROM_EMAIL": {
                      "isOptional": false,
                      "description": "Alert sender address",
                      "defaultValue": "Bugsink <bugsink@${{RAILWAY_PUBLIC_DOMAIN}}>"
                    },
                    "FILE_EVENT_STORAGE_PATH": {
                      "isOptional": false,
                      "description": "Event payload directory on the volume",
                      "defaultValue": "/data/events"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile selected in the source repo",
                      "defaultValue": "Dockerfile"
                    },
                    "FILE_OBJECT_STORAGE_PATH": {
                      "isOptional": false,
                      "description": "Uploaded artifact directory on the volume",
                      "defaultValue": "/data/files"
                    },
                    "FILE_EVENT_STORAGE_USE_FOR_WRITE": {
                      "isOptional": false,
                      "description": "Write new events to that directory",
                      "defaultValue": "true"
                    },
                    "FILE_OBJECT_STORAGE_USE_FOR_WRITE": {
                      "isOptional": false,
                      "description": "Write new uploads to that directory",
                      "defaultValue": "true"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Graceful shutdown window",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  },
                  "volumeMounts": {
                    "795b8bac-65d2-468d-a229-4bdf52c07243": {
                      "mountPath": "/data"
                    }
                  }
                },
                "fc74764b-6ed8-4dee-a36e-bcdda300ddb4": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Web inbox port probed by the health check",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Basic auth protecting the 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_UI_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Dual-stack bind for the web inbox",
                      "defaultValue": "[::]:8025"
                    },
                    "MP_SMTP_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Dual-stack bind for private SMTP",
                      "defaultValue": "[::]:1025"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "fc74764b-6ed8-4dee-a36e-bcdda300ddb4": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "bugsink",
      "method": "GET",
      "path": "/health/ready",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T14:37:08.029Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_93624114d62342ba81c4",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,SUCCESS,SUCCESS"
      }
    ]
  }
}
