{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e1c9fd5a-21fb-4886-b9cb-093576fdcbfc",
    "slug": "ezbookkeeping",
    "name": "ezBookkeeping",
    "description": "Personal finance app for tracking accounts, spending and budgets",
    "url": "https://railway.com/deploy/ezbookkeeping",
    "upstream": {
      "image": "axllent/mailpit:latest"
    }
  },
  "services": [
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "ezbookkeeping",
      "source": {
        "repo": "https://github.com/gridalpha/ezbookkeeping-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Inbox UI port Railway probes",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Basic auth guarding 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 inbox",
      "secret": false,
      "strategy": "default",
      "default": "[::]:8025"
    },
    {
      "key": "MP_SMTP_BIND_ADDR",
      "service": "mailpit",
      "description": "Dual-stack bind for SMTP",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1025"
    },
    {
      "key": "PORT",
      "service": "ezbookkeeping",
      "description": "HTTP port Railway probes",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "EBK_STORAGE_TYPE",
      "service": "ezbookkeeping",
      "description": "Store uploads in object storage",
      "secret": false,
      "strategy": "default",
      "default": "minio"
    },
    {
      "key": "EZBK_ADMIN_EMAIL",
      "service": "ezbookkeeping",
      "description": "Email on that account",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "EBK_DATABASE_HOST",
      "service": "ezbookkeeping",
      "description": "Database host and port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EBK_DATABASE_NAME",
      "service": "ezbookkeeping",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EBK_DATABASE_TYPE",
      "service": "ezbookkeeping",
      "description": "Database driver",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "EBK_DATABASE_USER",
      "service": "ezbookkeeping",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EBK_MAIL_SMTP_HOST",
      "service": "ezbookkeeping",
      "description": "SMTP server host and port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "EBK_DATABASE_PASSWD",
      "service": "ezbookkeeping",
      "description": "Database password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EZBK_ADMIN_NICKNAME",
      "service": "ezbookkeeping",
      "description": "Display name for that account",
      "secret": false,
      "strategy": "default",
      "default": "Administrator"
    },
    {
      "key": "EZBK_ADMIN_PASSWORD",
      "service": "ezbookkeeping",
      "description": "Password for that account",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "EZBK_ADMIN_USERNAME",
      "service": "ezbookkeeping",
      "description": "First account created at startup",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "EBK_MAIL_ENABLE_SMTP",
      "service": "ezbookkeeping",
      "description": "Enable outbound mail",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "EBK_DATABASE_SSL_MODE",
      "service": "ezbookkeeping",
      "description": "Encrypted, no certificate validation",
      "secret": false,
      "strategy": "default",
      "default": "require"
    },
    {
      "key": "EBK_MAIL_FROM_ADDRESS",
      "service": "ezbookkeeping",
      "description": "Sender address on outgoing mail",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "EBK_SECURITY_SECRET_KEY",
      "service": "ezbookkeeping",
      "description": "Signs sessions, encrypts 2FA secrets",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "EBK_STORAGE_MINIO_BUCKET",
      "service": "ezbookkeeping",
      "description": "Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EBK_USER_ENABLE_REGISTER",
      "service": "ezbookkeeping",
      "description": "Self-registration; true opens signup",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "EBK_STORAGE_MINIO_ENDPOINT",
      "service": "ezbookkeeping",
      "description": "Bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EBK_STORAGE_MINIO_LOCATION",
      "service": "ezbookkeeping",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EZBK_ADMIN_DEFAULT_CURRENCY",
      "service": "ezbookkeeping",
      "description": "ISO 4217 default currency",
      "secret": false,
      "strategy": "default",
      "default": "USD"
    },
    {
      "key": "EBK_SECURITY_TRUSTED_PROXY_IPS",
      "service": "ezbookkeeping",
      "description": "Real client IP behind the edge",
      "secret": false,
      "strategy": "default",
      "default": "100.64.0.0/10,152.233.0.0/17,fd00::/8,10.0.0.0/8,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.168.0.0/16"
    },
    {
      "key": "EBK_STORAGE_MINIO_ACCESS_KEY_ID",
      "service": "ezbookkeeping",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EBK_STORAGE_MINIO_SECRET_ACCESS_KEY",
      "service": "ezbookkeeping",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ezbookkeeping"
      }
    },
    "cli": "railway deploy --template ezbookkeeping",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e1c9fd5a-21fb-4886-b9cb-093576fdcbfc",
            "serializedConfig": {
              "buckets": {
                "3f4bdb8d-1a6a-46c1-82c4-78cf9a9bb89f": {
                  "name": "ezbookkeeping-storage"
                }
              },
              "services": {
                "2cd4203d-537e-4859-99bf-9135310e1ced": {
                  "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": "Inbox UI port Railway probes",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Basic auth guarding the inbox",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": true,
                      "description": "Messages retained before rotation",
                      "defaultValue": "5000"
                    },
                    "MP_UI_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Dual-stack bind for the inbox",
                      "defaultValue": "[::]:8025"
                    },
                    "MP_SMTP_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Dual-stack bind for SMTP",
                      "defaultValue": "[::]:1025"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "2cd4203d-537e-4859-99bf-9135310e1ced": {
                      "mountPath": "/data"
                    }
                  }
                },
                "ba4694a7-1cd3-4fe4-90fa-fa9b0de8218f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/ezbookkeeping.png",
                  "name": "ezbookkeeping",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/ezbookkeeping-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway probes",
                      "defaultValue": "8080"
                    },
                    "EBK_STORAGE_TYPE": {
                      "isOptional": false,
                      "description": "Store uploads in object storage",
                      "defaultValue": "minio"
                    },
                    "EZBK_ADMIN_EMAIL": {
                      "isOptional": true,
                      "description": "Email on that account",
                      "defaultValue": "admin@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "EBK_DATABASE_HOST": {
                      "isOptional": false,
                      "description": "Database host and port",
                      "defaultValue": "${{Postgres.PGHOST}}:${{Postgres.PGPORT}}"
                    },
                    "EBK_DATABASE_NAME": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "EBK_DATABASE_TYPE": {
                      "isOptional": false,
                      "description": "Database driver",
                      "defaultValue": "postgres"
                    },
                    "EBK_DATABASE_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "EBK_MAIL_SMTP_HOST": {
                      "isOptional": false,
                      "description": "SMTP server host and port",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}:1025"
                    },
                    "EBK_DATABASE_PASSWD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "EZBK_ADMIN_NICKNAME": {
                      "isOptional": true,
                      "description": "Display name for that account",
                      "defaultValue": "Administrator"
                    },
                    "EZBK_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for that account",
                      "defaultValue": "{{EZBK_ADMIN_PASSWORD}}"
                    },
                    "EZBK_ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "First account created at startup",
                      "defaultValue": "admin"
                    },
                    "EBK_MAIL_ENABLE_SMTP": {
                      "isOptional": false,
                      "description": "Enable outbound mail",
                      "defaultValue": "true"
                    },
                    "EBK_DATABASE_SSL_MODE": {
                      "isOptional": false,
                      "description": "Encrypted, no certificate validation",
                      "defaultValue": "require"
                    },
                    "EBK_MAIL_FROM_ADDRESS": {
                      "isOptional": false,
                      "description": "Sender address on outgoing mail",
                      "defaultValue": "ezbookkeeping@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "EBK_SECURITY_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Signs sessions, encrypts 2FA secrets",
                      "defaultValue": "{{EBK_SECURITY_SECRET_KEY}}"
                    },
                    "EBK_STORAGE_MINIO_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket name",
                      "defaultValue": "${{ezbookkeeping-storage.BUCKET}}"
                    },
                    "EBK_USER_ENABLE_REGISTER": {
                      "isOptional": false,
                      "description": "Self-registration; true opens signup",
                      "defaultValue": "false"
                    },
                    "EBK_STORAGE_MINIO_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket endpoint",
                      "defaultValue": "${{ezbookkeeping-storage.ENDPOINT}}"
                    },
                    "EBK_STORAGE_MINIO_LOCATION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{ezbookkeeping-storage.REGION}}"
                    },
                    "EZBK_ADMIN_DEFAULT_CURRENCY": {
                      "isOptional": true,
                      "description": "ISO 4217 default currency",
                      "defaultValue": "USD"
                    },
                    "EBK_SECURITY_TRUSTED_PROXY_IPS": {
                      "isOptional": true,
                      "description": "Real client IP behind the edge",
                      "defaultValue": "100.64.0.0/10,152.233.0.0/17,fd00::/8,10.0.0.0/8,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.168.0.0/16"
                    },
                    "EBK_STORAGE_MINIO_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{ezbookkeeping-storage.ACCESS_KEY_ID}}"
                    },
                    "EBK_STORAGE_MINIO_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{ezbookkeeping-storage.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "ec34a2bf-ecc4-4cf9-8d8a-b3dcae1f73b0": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgres.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": {
                    "ec34a2bf-ecc4-4cf9-8d8a-b3dcae1f73b0": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "mailpit",
      "method": "GET",
      "path": "/livez",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-15T22:14:40.394Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-15T19:21:51.560Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_7f28663649fd45babfbc",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
