{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fdc96d7d-03ed-4573-b827-29b672ec9255",
    "slug": "deploy-haben-german-bookkeeping",
    "name": "Haben",
    "description": "Self-hosted German bookkeeping with ELSTER, e-invoices and GoBD",
    "url": "https://railway.com/deploy/deploy-haben-german-bookkeeping",
    "upstream": {
      "image": "ghcr.io/onepush-dev/haben:0.6.5"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "haben",
      "source": {
        "image": "ghcr.io/onepush-dev/haben:0.6.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/haben",
      "http": true
    },
    {
      "name": "haben-db",
      "source": {
        "image": "ghcr.io/onepush-dev/haben-db:0.6.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "DATABASE_URL",
      "service": "haben",
      "description": "Postgres connection string for the app, built from the haben-db service's private address and generated password.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BETTER_AUTH_URL",
      "service": "haben",
      "description": "Public HTTPS address of this app (Railway domain). Passkeys are bound to this address; update it if you add a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HABEN_SETUP_CODE",
      "service": "haben",
      "description": "Generated one-time code you enter on /setup to create the owner account. Unused after the first account exists.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "haben",
      "description": "Generated secret that signs login sessions. Keep it stable.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HABEN_ENCRYPTION_KEY",
      "service": "haben",
      "description": "Generated 32-byte base64 key that encrypts the ELSTER certificate, bank and API credentials. Back it up separately; without it stored credentials cannot be decrypted.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "haben-db",
      "description": "Generated password for the haben database user. The app reads it through DATABASE_URL.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "deploy-haben-german-bookkeeping"
      }
    },
    "cli": "railway deploy --template deploy-haben-german-bookkeeping",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fdc96d7d-03ed-4573-b827-29b672ec9255",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "005be0d0-bfd6-42e3-974c-8c618cd7b506": {
                  "icon": "https://api.iconify.design/mdi/calculator-variant-outline.svg",
                  "name": "haben",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/auth/ok",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/onepush-dev/haben:0.6.5"
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string for the app, built from the haben-db service's private address and generated password.",
                      "defaultValue": "postgres://haben:${{haben-db.POSTGRES_PASSWORD}}@${{haben-db.RAILWAY_PRIVATE_DOMAIN}}:5432/haben"
                    },
                    "BETTER_AUTH_URL": {
                      "isOptional": false,
                      "description": "Public HTTPS address of this app (Railway domain). Passkeys are bound to this address; update it if you add a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "HABEN_SETUP_CODE": {
                      "isOptional": false,
                      "description": "Generated one-time code you enter on /setup to create the owner account. Unused after the first account exists.",
                      "defaultValue": "{{HABEN_SETUP_CODE}}"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Generated secret that signs login sessions. Keep it stable.",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "HABEN_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Generated 32-byte base64 key that encrypts the ELSTER certificate, bank and API credentials. Back it up separately; without it stored credentials cannot be decrypted.",
                      "defaultValue": "{{HABEN_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "005be0d0-bfd6-42e3-974c-8c618cd7b506": {
                      "mountPath": "/var/lib/haben"
                    }
                  }
                },
                "1ac6afec-e505-4cfe-8f66-767dd9ecb2aa": {
                  "icon": "https://devicons.railway.app/postgres",
                  "name": "haben-db",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/onepush-dev/haben-db:0.6.5"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the haben database user. The app reads it through DATABASE_URL.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "1ac6afec-e505-4cfe-8f66-767dd9ecb2aa": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "haben",
      "method": "GET",
      "path": "/api/auth/ok",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-11-10T10:15:11.018Z",
  "generator_version": "0.1.0"
}
