{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3835a1bf-0d20-4d96-97fb-12c1b1de9b5c",
    "slug": "killbill",
    "name": "Kill Bill",
    "description": "Subscription billing and invoicing platform with an admin console",
    "url": "https://railway.com/deploy/killbill",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/killbill-railway"
    }
  },
  "services": [
    {
      "name": "mariadb",
      "source": {
        "image": "killbill/mariadb:0.24"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "killbill",
      "source": {
        "repo": "https://github.com/gridalpha/killbill-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/killbill/plugins",
      "http": true
    },
    {
      "name": "kaui",
      "source": {
        "repo": "https://github.com/gridalpha/killbill-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PRIVATE_URL",
      "service": "mariadb",
      "description": "Private address the apps dial",
      "secret": false,
      "strategy": "default",
      "default": "mariadb.railway.internal:3306"
    },
    {
      "key": "MARIADB_AUTO_UPGRADE",
      "service": "mariadb",
      "description": "Runs mariadb-upgrade after a server bump",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "mariadb",
      "description": "Superuser password, read by the entrypoint",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "killbill",
      "description": "Port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PRIVATE_URL",
      "service": "killbill",
      "description": "Private address Kaui dials",
      "secret": false,
      "strategy": "default",
      "default": "killbill.railway.internal:8080"
    },
    {
      "key": "TOMCAT_PORT",
      "service": "killbill",
      "description": "Tomcat connector port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "KILLBILL_API_KEY",
      "service": "killbill",
      "description": "First tenant's API key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "KILLBILL_DAO_URL",
      "service": "killbill",
      "description": "Kill Bill schema",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "KB_ADMIN_PASSWORD",
      "service": "killbill",
      "description": "Password for the admin account",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "KILLBILL_DAO_USER",
      "service": "killbill",
      "description": "MariaDB user",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "KILLBILL_API_SECRET",
      "service": "killbill",
      "description": "First tenant's API secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "KILLBILL_DAO_PASSWORD",
      "service": "killbill",
      "description": "MariaDB password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "KILLBILL_CACHE_CONFIG_REDIS",
      "service": "killbill",
      "description": "Use Redis for the shared cache",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "KB_org_killbill_cache_disabled",
      "service": "killbill",
      "description": "Caches Redis cannot serialize",
      "secret": false,
      "strategy": "default",
      "default": "tenant-catalog,overridden-plan"
    },
    {
      "key": "KB_org_killbill_server_baseUrl",
      "service": "killbill",
      "description": "Public API base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "KILLBILL_CACHE_CONFIG_REDIS_URL",
      "service": "killbill",
      "description": "Redis address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "killbill",
      "description": "Window for the slow first boot",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "killbill",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "KILLBILL_CACHE_CONFIG_REDIS_PASSWORD",
      "service": "killbill",
      "description": "Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "kaui",
      "description": "Port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "JAVA_OPTS",
      "service": "kaui",
      "description": "Keeps JMX on loopback",
      "secret": false,
      "strategy": "default",
      "default": "-Dcom.sun.management.jmxremote.host=127.0.0.1 -Djava.rmi.server.hostname=127.0.0.1"
    },
    {
      "key": "TOMCAT_PORT",
      "service": "kaui",
      "description": "Tomcat connector port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "JVM_JDWP_PORT",
      "service": "kaui",
      "description": "Keeps the debugger on loopback",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1:12345"
    },
    {
      "key": "KAUI_KILLBILL_URL",
      "service": "kaui",
      "description": "Kill Bill API over private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "KAUI_ROOT_USERNAME",
      "service": "kaui",
      "description": "Kill Bill account Kaui treats as root",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "KAUI_CONFIG_DAO_URL",
      "service": "kaui",
      "description": "Kaui schema",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "KAUI_CONFIG_DAO_USER",
      "service": "kaui",
      "description": "MariaDB user",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "KAUI_SECRET_KEY_BASE",
      "service": "kaui",
      "description": "Rails session signing key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "KAUI_KILLBILL_API_KEY",
      "service": "kaui",
      "description": "Default tenant API key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "kaui",
      "description": "Dockerfile for this service",
      "secret": false,
      "strategy": "default",
      "default": "kaui/Dockerfile"
    },
    {
      "key": "KAUI_CONFIG_DAO_PASSWORD",
      "service": "kaui",
      "description": "MariaDB password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "KAUI_KILLBILL_API_SECRET",
      "service": "kaui",
      "description": "Default tenant API secret",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "KAUI_DISABLE_SIGN_UP_LINK",
      "service": "kaui",
      "description": "Refuses self-registration",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "kaui",
      "description": "Window for the slow first boot",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "kaui",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "killbill"
      }
    },
    "cli": "railway deploy --template killbill",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3835a1bf-0d20-4d96-97fb-12c1b1de9b5c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2b099392-723c-4314-bf23-1860d80d1453": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mariadb.svg",
                  "name": "mariadb",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'M=$(cat /sys/fs/cgroup/memory.max 2>/dev/null); case \"$M\" in \"\"|max) P=1024;; *) P=$((M/1048576/2));; esac; echo \"innodb_buffer_pool_size=${P}M\"; exec docker-entrypoint.sh mariadbd --secure-file-priv=/tmp --datadir=/var/lib/mysql/data --innodb-buffer-pool-size=${P}M'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "killbill/mariadb:0.24"
                  },
                  "variables": {
                    "PRIVATE_URL": {
                      "isOptional": false,
                      "description": "Private address the apps dial",
                      "defaultValue": "mariadb.railway.internal:3306"
                    },
                    "MARIADB_AUTO_UPGRADE": {
                      "isOptional": true,
                      "description": "Runs mariadb-upgrade after a server bump",
                      "defaultValue": "1"
                    },
                    "MARIADB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, read by the entrypoint",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "2b099392-723c-4314-bf23-1860d80d1453": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "5973cfed-341b-4a8e-b883-0cb36da7be46": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "5973cfed-341b-4a8e-b883-0cb36da7be46": {
                      "mountPath": "/data"
                    }
                  }
                },
                "5c88bfaf-0ca7-4dac-9f68-55beeff55d16": {
                  "icon": "https://killbill.io/images/webclip.png",
                  "name": "killbill",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/killbill-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health-checks",
                      "defaultValue": "8080"
                    },
                    "PRIVATE_URL": {
                      "isOptional": false,
                      "description": "Private address Kaui dials",
                      "defaultValue": "killbill.railway.internal:8080"
                    },
                    "TOMCAT_PORT": {
                      "isOptional": false,
                      "description": "Tomcat connector port",
                      "defaultValue": "8080"
                    },
                    "KILLBILL_API_KEY": {
                      "isOptional": false,
                      "description": "First tenant's API key",
                      "defaultValue": "{{KILLBILL_API_KEY}}"
                    },
                    "KILLBILL_DAO_URL": {
                      "isOptional": false,
                      "description": "Kill Bill schema",
                      "defaultValue": "jdbc:mysql://${{mariadb.PRIVATE_URL}}/killbill"
                    },
                    "KB_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the admin account",
                      "defaultValue": "{{KB_ADMIN_PASSWORD}}"
                    },
                    "KILLBILL_DAO_USER": {
                      "isOptional": false,
                      "description": "MariaDB user",
                      "defaultValue": "root"
                    },
                    "KILLBILL_API_SECRET": {
                      "isOptional": false,
                      "description": "First tenant's API secret",
                      "defaultValue": "{{KILLBILL_API_SECRET}}"
                    },
                    "KILLBILL_DAO_PASSWORD": {
                      "isOptional": false,
                      "description": "MariaDB password",
                      "defaultValue": "${{mariadb.MARIADB_ROOT_PASSWORD}}"
                    },
                    "KILLBILL_CACHE_CONFIG_REDIS": {
                      "isOptional": false,
                      "description": "Use Redis for the shared cache",
                      "defaultValue": "true"
                    },
                    "KB_org_killbill_cache_disabled": {
                      "isOptional": true,
                      "description": "Caches Redis cannot serialize",
                      "defaultValue": "tenant-catalog,overridden-plan"
                    },
                    "KB_org_killbill_server_baseUrl": {
                      "isOptional": false,
                      "description": "Public API base URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "KILLBILL_CACHE_CONFIG_REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis address",
                      "defaultValue": "redis://${{Redis.REDISHOST}}:${{Redis.REDISPORT}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Window for the slow first boot",
                      "defaultValue": "600"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    },
                    "KILLBILL_CACHE_CONFIG_REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "5c88bfaf-0ca7-4dac-9f68-55beeff55d16": {
                      "mountPath": "/var/lib/killbill/plugins"
                    }
                  }
                },
                "c4f6ae5a-7096-44d6-b5af-b68a3c55b56a": {
                  "icon": "https://raw.githubusercontent.com/killbill/killbill-admin-ui/master/app/assets/images/kaui/logo.svg",
                  "name": "kaui",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/killbill-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health-checks",
                      "defaultValue": "8080"
                    },
                    "JAVA_OPTS": {
                      "isOptional": true,
                      "description": "Keeps JMX on loopback",
                      "defaultValue": "-Dcom.sun.management.jmxremote.host=127.0.0.1 -Djava.rmi.server.hostname=127.0.0.1"
                    },
                    "TOMCAT_PORT": {
                      "isOptional": false,
                      "description": "Tomcat connector port",
                      "defaultValue": "8080"
                    },
                    "JVM_JDWP_PORT": {
                      "isOptional": true,
                      "description": "Keeps the debugger on loopback",
                      "defaultValue": "127.0.0.1:12345"
                    },
                    "KAUI_KILLBILL_URL": {
                      "isOptional": false,
                      "description": "Kill Bill API over private network",
                      "defaultValue": "http://${{killbill.PRIVATE_URL}}"
                    },
                    "KAUI_ROOT_USERNAME": {
                      "isOptional": true,
                      "description": "Kill Bill account Kaui treats as root",
                      "defaultValue": "admin"
                    },
                    "KAUI_CONFIG_DAO_URL": {
                      "isOptional": false,
                      "description": "Kaui schema",
                      "defaultValue": "jdbc:mysql://${{mariadb.PRIVATE_URL}}/kaui"
                    },
                    "KAUI_CONFIG_DAO_USER": {
                      "isOptional": false,
                      "description": "MariaDB user",
                      "defaultValue": "root"
                    },
                    "KAUI_SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Rails session signing key",
                      "defaultValue": "{{KAUI_SECRET_KEY_BASE}}"
                    },
                    "KAUI_KILLBILL_API_KEY": {
                      "isOptional": false,
                      "description": "Default tenant API key",
                      "defaultValue": "${{killbill.KILLBILL_API_KEY}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile for this service",
                      "defaultValue": "kaui/Dockerfile"
                    },
                    "KAUI_CONFIG_DAO_PASSWORD": {
                      "isOptional": false,
                      "description": "MariaDB password",
                      "defaultValue": "${{mariadb.MARIADB_ROOT_PASSWORD}}"
                    },
                    "KAUI_KILLBILL_API_SECRET": {
                      "isOptional": false,
                      "description": "Default tenant API secret",
                      "defaultValue": "${{killbill.KILLBILL_API_SECRET}}"
                    },
                    "KAUI_DISABLE_SIGN_UP_LINK": {
                      "isOptional": true,
                      "description": "Refuses self-registration",
                      "defaultValue": "true"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Window for the slow first boot",
                      "defaultValue": "600"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "killbill",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-23T10:14:44.639Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T19:40:40.950Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_56f6bfd56f644a4b9f1d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 162,
    "typical_build_seconds": 52,
    "typical_start_seconds": 35,
    "slowest_service": "kaui"
  }
}
