{
  "manifest_version": "1.0.0",
  "template": {
    "id": "cb233d3a-cea8-49a4-be95-5720d566b05a",
    "slug": "btcpay",
    "name": "btcpay",
    "description": "Bitcoin payment processor for accepting payments in your own store",
    "url": "https://railway.com/deploy/btcpay",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/btcpay-server-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": "bitcoind",
      "source": {
        "repo": "https://github.com/gridalpha/btcpay-server-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "nbxplorer",
      "source": {
        "repo": "https://github.com/gridalpha/btcpay-server-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/datadir",
      "http": false
    },
    {
      "name": "btcpayserver",
      "source": {
        "repo": "https://github.com/gridalpha/btcpay-server-railway"
      },
      "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": "bitcoind",
      "description": "Serves the JSON health endpoint",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "BITCOIN_PRUNE",
      "service": "bitcoind",
      "description": "MB of blocks kept on the volume",
      "secret": false,
      "strategy": "default",
      "default": "550"
    },
    {
      "key": "BITCOIN_DBCACHE",
      "service": "bitcoind",
      "description": "UTXO cache in MB",
      "secret": false,
      "strategy": "default",
      "default": "512"
    },
    {
      "key": "BITCOIN_NETWORK",
      "service": "bitcoind",
      "description": "Private chain; mainnet needs a bigger volume",
      "secret": false,
      "strategy": "default",
      "default": "regtest"
    },
    {
      "key": "BITCOIN_RPC_URL",
      "service": "bitcoind",
      "description": "Read by nbxplorer",
      "secret": false,
      "strategy": "default",
      "default": "http://bitcoind.railway.internal:43782/"
    },
    {
      "key": "BITCOIN_P2P_PORT",
      "service": "bitcoind",
      "description": "Peer-to-peer port",
      "secret": false,
      "strategy": "default",
      "default": "39388"
    },
    {
      "key": "BITCOIN_RPC_PORT",
      "service": "bitcoind",
      "description": "JSON-RPC port",
      "secret": false,
      "strategy": "default",
      "default": "43782"
    },
    {
      "key": "BITCOIN_RPC_USER",
      "service": "bitcoind",
      "description": "RPC account NBXplorer uses",
      "secret": false,
      "strategy": "default",
      "default": "nbxplorer"
    },
    {
      "key": "BITCOIN_MAXMEMPOOL",
      "service": "bitcoind",
      "description": "Mempool ceiling in MB",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "BITCOIN_FALLBACKFEE",
      "service": "bitcoind",
      "description": "BTC/kvB where fee estimation has no data",
      "secret": false,
      "strategy": "default",
      "default": "0.0002"
    },
    {
      "key": "BITCOIN_P2P_ENDPOINT",
      "service": "bitcoind",
      "description": "Read by nbxplorer",
      "secret": false,
      "strategy": "default",
      "default": "bitcoind.railway.internal:39388"
    },
    {
      "key": "BITCOIN_RPC_PASSWORD",
      "service": "bitcoind",
      "description": "RPC password; rpcauth is derived at boot",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "bitcoind",
      "description": "First-boot chain load window",
      "secret": false,
      "strategy": "default",
      "default": "900"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "bitcoind",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "nbxplorer",
      "description": "HTTP listening port",
      "secret": false,
      "strategy": "default",
      "default": "32838"
    },
    {
      "key": "PGHOST",
      "service": "nbxplorer",
      "description": "Postgres host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "nbxplorer",
      "description": "Postgres port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGUSER",
      "service": "nbxplorer",
      "description": "Postgres user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "nbxplorer",
      "description": "Database used to create nbxplorer's",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "nbxplorer",
      "description": "Postgres password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NBXPLORER_DB",
      "service": "nbxplorer",
      "description": "NBXplorer's database, created at boot",
      "secret": false,
      "strategy": "default",
      "default": "nbxplorerregtest"
    },
    {
      "key": "NBXPLORER_URL",
      "service": "nbxplorer",
      "description": "Read by btcpayserver",
      "secret": false,
      "strategy": "default",
      "default": "http://nbxplorer.railway.internal:32838/"
    },
    {
      "key": "NBXPLORER_PORT",
      "service": "nbxplorer",
      "description": "Same port, read by NBXplorer itself",
      "secret": false,
      "strategy": "default",
      "default": "32838"
    },
    {
      "key": "BITCOIN_NETWORK",
      "service": "nbxplorer",
      "description": "Must match bitcoind",
      "secret": false,
      "strategy": "default",
      "default": "regtest"
    },
    {
      "key": "BITCOIN_RPC_USER",
      "service": "nbxplorer",
      "description": "Bitcoin Core RPC user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NBXPLORER_BTCRPCURL",
      "service": "nbxplorer",
      "description": "Bitcoin Core JSON-RPC endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BITCOIN_RPC_PASSWORD",
      "service": "nbxplorer",
      "description": "Bitcoin Core RPC password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NBXPLORER_BTCNODEENDPOINT",
      "service": "nbxplorer",
      "description": "Bitcoin Core P2P endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "nbxplorer",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "btcpayserver",
      "description": "HTTP listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PGHOST",
      "service": "btcpayserver",
      "description": "Postgres host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "btcpayserver",
      "description": "Postgres port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGUSER",
      "service": "btcpayserver",
      "description": "Postgres user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BTCPAY_DB",
      "service": "btcpayserver",
      "description": "BTCPay's own database, created at boot",
      "secret": false,
      "strategy": "default",
      "default": "btcpayserverregtest"
    },
    {
      "key": "PGDATABASE",
      "service": "btcpayserver",
      "description": "Database used to create the two others",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "btcpayserver",
      "description": "Postgres password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NBXPLORER_DB",
      "service": "btcpayserver",
      "description": "NBXplorer's database, for reporting",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BITCOIN_NETWORK",
      "service": "btcpayserver",
      "description": "Chain all three services run on",
      "secret": false,
      "strategy": "default",
      "default": "regtest"
    },
    {
      "key": "BTCPAY_CHEATMODE",
      "service": "btcpayserver",
      "description": "Mine/pay controls in the UI; ignored on mainnet",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "BTCPAY_ADMIN_EMAIL",
      "service": "btcpayserver",
      "description": "First server admin, created at boot",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.dev"
    },
    {
      "key": "BTCPAY_ADMIN_PASSWORD",
      "service": "btcpayserver",
      "description": "First server admin password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "BTCPAY_BTCEXPLORERURL",
      "service": "btcpayserver",
      "description": "Private NBXplorer endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "btcpayserver",
      "description": "First-boot migration window",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "btcpayserver",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "btcpay"
      }
    },
    "cli": "railway deploy --template btcpay",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "cb233d3a-cea8-49a4-be95-5720d566b05a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "70d15cc2-a93c-4d7f-8c40-3d08e126f8b6": {
                  "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": {
                    "70d15cc2-a93c-4d7f-8c40-3d08e126f8b6": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "76104798-83dc-4795-ab3d-1c3a1f7d55e6": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/bitcoin.svg",
                  "name": "bitcoind",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/btcpay-server-railway",
                    "rootDirectory": "bitcoind"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Serves the JSON health endpoint",
                      "defaultValue": "8000"
                    },
                    "BITCOIN_PRUNE": {
                      "isOptional": true,
                      "description": "MB of blocks kept on the volume",
                      "defaultValue": "550"
                    },
                    "BITCOIN_DBCACHE": {
                      "isOptional": true,
                      "description": "UTXO cache in MB",
                      "defaultValue": "512"
                    },
                    "BITCOIN_NETWORK": {
                      "isOptional": false,
                      "description": "Private chain; mainnet needs a bigger volume",
                      "defaultValue": "regtest"
                    },
                    "BITCOIN_RPC_URL": {
                      "isOptional": false,
                      "description": "Read by nbxplorer",
                      "defaultValue": "http://bitcoind.railway.internal:43782/"
                    },
                    "BITCOIN_P2P_PORT": {
                      "isOptional": false,
                      "description": "Peer-to-peer port",
                      "defaultValue": "39388"
                    },
                    "BITCOIN_RPC_PORT": {
                      "isOptional": false,
                      "description": "JSON-RPC port",
                      "defaultValue": "43782"
                    },
                    "BITCOIN_RPC_USER": {
                      "isOptional": true,
                      "description": "RPC account NBXplorer uses",
                      "defaultValue": "nbxplorer"
                    },
                    "BITCOIN_MAXMEMPOOL": {
                      "isOptional": true,
                      "description": "Mempool ceiling in MB",
                      "defaultValue": "300"
                    },
                    "BITCOIN_FALLBACKFEE": {
                      "isOptional": true,
                      "description": "BTC/kvB where fee estimation has no data",
                      "defaultValue": "0.0002"
                    },
                    "BITCOIN_P2P_ENDPOINT": {
                      "isOptional": false,
                      "description": "Read by nbxplorer",
                      "defaultValue": "bitcoind.railway.internal:39388"
                    },
                    "BITCOIN_RPC_PASSWORD": {
                      "isOptional": false,
                      "description": "RPC password; rpcauth is derived at boot",
                      "defaultValue": "{{BITCOIN_RPC_PASSWORD}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First-boot chain load window",
                      "defaultValue": "900"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "volumeMounts": {
                    "76104798-83dc-4795-ab3d-1c3a1f7d55e6": {
                      "mountPath": "/data"
                    }
                  }
                },
                "8619e48b-3b18-47fb-b6ad-fbdf50d3e6b7": {
                  "icon": "https://raw.githubusercontent.com/dgarage/NBXplorer/master/NBXplorer.Client/Bitcoin.png",
                  "name": "nbxplorer",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/v1/cryptos/btc/status",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/btcpay-server-railway",
                    "rootDirectory": "nbxplorer"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listening port",
                      "defaultValue": "32838"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Postgres host",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Postgres user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Database used to create nbxplorer's",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "NBXPLORER_DB": {
                      "isOptional": true,
                      "description": "NBXplorer's database, created at boot",
                      "defaultValue": "nbxplorerregtest"
                    },
                    "NBXPLORER_URL": {
                      "isOptional": false,
                      "description": "Read by btcpayserver",
                      "defaultValue": "http://nbxplorer.railway.internal:32838/"
                    },
                    "NBXPLORER_PORT": {
                      "isOptional": false,
                      "description": "Same port, read by NBXplorer itself",
                      "defaultValue": "32838"
                    },
                    "BITCOIN_NETWORK": {
                      "isOptional": false,
                      "description": "Must match bitcoind",
                      "defaultValue": "regtest"
                    },
                    "BITCOIN_RPC_USER": {
                      "isOptional": false,
                      "description": "Bitcoin Core RPC user",
                      "defaultValue": "${{bitcoind.BITCOIN_RPC_USER}}"
                    },
                    "NBXPLORER_BTCRPCURL": {
                      "isOptional": false,
                      "description": "Bitcoin Core JSON-RPC endpoint",
                      "defaultValue": "${{bitcoind.BITCOIN_RPC_URL}}"
                    },
                    "BITCOIN_RPC_PASSWORD": {
                      "isOptional": false,
                      "description": "Bitcoin Core RPC password",
                      "defaultValue": "${{bitcoind.BITCOIN_RPC_PASSWORD}}"
                    },
                    "NBXPLORER_BTCNODEENDPOINT": {
                      "isOptional": false,
                      "description": "Bitcoin Core P2P endpoint",
                      "defaultValue": "${{bitcoind.BITCOIN_P2P_ENDPOINT}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "volumeMounts": {
                    "8619e48b-3b18-47fb-b6ad-fbdf50d3e6b7": {
                      "mountPath": "/datadir"
                    }
                  }
                },
                "a63536ae-130a-4adc-89d4-008e6e0eda3b": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/btcpay-server.png",
                  "name": "btcpayserver",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/btcpay-server-railway",
                    "rootDirectory": "btcpayserver"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listening port",
                      "defaultValue": "8080"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Postgres host",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Postgres user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "BTCPAY_DB": {
                      "isOptional": true,
                      "description": "BTCPay's own database, created at boot",
                      "defaultValue": "btcpayserverregtest"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Database used to create the two others",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "NBXPLORER_DB": {
                      "isOptional": false,
                      "description": "NBXplorer's database, for reporting",
                      "defaultValue": "${{nbxplorer.NBXPLORER_DB}}"
                    },
                    "BITCOIN_NETWORK": {
                      "isOptional": false,
                      "description": "Chain all three services run on",
                      "defaultValue": "regtest"
                    },
                    "BTCPAY_CHEATMODE": {
                      "isOptional": true,
                      "description": "Mine/pay controls in the UI; ignored on mainnet",
                      "defaultValue": "true"
                    },
                    "BTCPAY_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "First server admin, created at boot",
                      "defaultValue": "admin@example.dev"
                    },
                    "BTCPAY_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First server admin password",
                      "defaultValue": "{{BTCPAY_ADMIN_PASSWORD}}"
                    },
                    "BTCPAY_BTCEXPLORERURL": {
                      "isOptional": false,
                      "description": "Private NBXplorer endpoint",
                      "defaultValue": "${{nbxplorer.NBXPLORER_URL}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First-boot migration window",
                      "defaultValue": "600"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "a63536ae-130a-4adc-89d4-008e6e0eda3b": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "btcpayserver",
      "method": "GET",
      "path": "/api/v1/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T05:44:27.711Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T05:49:34.682Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_32534b0280f24651a797",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 249,
    "typical_workflow_seconds": 6,
    "typical_queue_seconds": 50,
    "typical_init_seconds": 0,
    "typical_build_seconds": 51,
    "typical_deploy_seconds": 20,
    "typical_healthcheck_lag_seconds": 0,
    "slowest_service": "btcpayserver"
  }
}
