{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a9a3d17e-fe4a-467b-95dd-53ef5098800d",
    "slug": "privatebin-or-self-hosted-encrypted-past",
    "name": "PrivateBin | Self-Hosted Encrypted Pastebin, Zero Knowledge",
    "description": "Self-host PrivateBin on Railway — encrypted pastes with burn-after-reading.",
    "url": "https://railway.com/deploy/privatebin-or-self-hosted-encrypted-past",
    "upstream": {
      "image": "privatebin/nginx-fpm-alpine:2.0.6"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "PrivateBin",
      "source": {
        "image": "privatebin/nginx-fpm-alpine:2.0.6"
      },
      "needs_volume": true,
      "volume_mount_path": "/srv/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "RAILWAY_RUN_UID",
      "service": "PrivateBin",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "privatebin-or-self-hosted-encrypted-past"
      }
    },
    "cli": "railway deploy --template privatebin-or-self-hosted-encrypted-past",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a9a3d17e-fe4a-467b-95dd-53ef5098800d",
            "serializedConfig": {
              "services": {
                "32daf1af-6b6d-4a70-b932-83305816ba68": {
                  "name": "PrivateBin",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"sed -i 's|php-fpm85$|php-fpm85 -R|' /etc/s6/services/php-fpm85/run; echo 'listen.mode = 0666' >> /etc/php/php-fpm.d/zz-docker.conf; exec /etc/init.d/rc.local\""
                  },
                  "source": {
                    "image": "privatebin/nginx-fpm-alpine:2.0.6"
                  },
                  "variables": {
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "32daf1af-6b6d-4a70-b932-83305816ba68": {
                      "mountPath": "/srv/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T05:44:27.711Z",
  "generator_version": "0.1.0"
}
