{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9e7c66ff-f67e-44f7-b1dc-c73b38f5edf4",
    "slug": "0fAMTr",
    "name": "Saltcorn",
    "description": "No-code/low-code platform | Alternative to AppSmith, Retool, Budibase",
    "url": "https://railway.com/deploy/0fAMTr",
    "upstream": {
      "image": "saltcorn/saltcorn:latest"
    }
  },
  "services": [
    {
      "name": "saltcorn/saltcorn:latest",
      "source": {
        "image": "saltcorn/saltcorn:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "sailtcorn-railway",
      "source": {
        "repo": "https://github.com/ju-li/sailtcorn-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "saltcorn/saltcorn:latest",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "PGHOST",
      "service": "saltcorn/saltcorn:latest",
      "description": "Provide a value for PGHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGUSER",
      "service": "saltcorn/saltcorn:latest",
      "description": "Provide a value for PGUSER.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "saltcorn/saltcorn:latest",
      "description": "Provide a value for PGDATABASE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "saltcorn/saltcorn:latest",
      "description": "Provide a value for PGPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SALTCORN_SESSION_SECRET",
      "service": "saltcorn/saltcorn:latest",
      "description": "Provide a value for SALTCORN_SESSION_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PGDATA",
      "service": "sailtcorn-railway",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "sailtcorn-railway",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "sailtcorn-railway",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "sailtcorn-railway",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "sailtcorn-railway",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "sailtcorn-railway",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "sailtcorn-railway",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "sailtcorn-railway",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "sailtcorn-railway",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "sailtcorn-railway",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "sailtcorn-railway",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "sailtcorn-railway",
      "description": "Public URL to connect to Postgres database, used by the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "sailtcorn-railway",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "0fAMTr"
      }
    },
    "cli": "railway deploy --template 0fAMTr",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9e7c66ff-f67e-44f7-b1dc-c73b38f5edf4",
            "serializedConfig": {
              "services": {
                "86b34500-0542-4abc-9093-9bd13572002c": {
                  "name": "saltcorn/saltcorn:latest",
                  "deploy": {
                    "startCommand": "saltcorn serve"
                  },
                  "source": {
                    "image": "saltcorn/saltcorn:latest"
                  },
                  "variables": {
                    "PORT": {
                      "description": "",
                      "defaultValue": "3000"
                    },
                    "PGHOST": {
                      "defaultValue": "${{sailtcorn-railway.PGHOST}}"
                    },
                    "PGUSER": {
                      "defaultValue": "${{sailtcorn-railway.PGUSER}}"
                    },
                    "PGDATABASE": {
                      "defaultValue": "${{sailtcorn-railway.PGDATABASE}}"
                    },
                    "PGPASSWORD": {
                      "defaultValue": "${{sailtcorn-railway.PGPASSWORD}}"
                    },
                    "SALTCORN_SESSION_SECRET": {
                      "description": "",
                      "defaultValue": "{{SALTCORN_SESSION_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "c17cc4de-e2c1-4428-b345-42b4d81cdd5e": {
                  "name": "sailtcorn-railway",
                  "source": {
                    "repo": "ju-li/sailtcorn-railway",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public URL to connect to Postgres database, used by the Data panel.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "c17cc4de-e2c1-4428-b345-42b4d81cdd5e": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T04:14:39.446Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-12T05:49:53.560Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b02986f89782471c93e2",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 133,
    "typical_build_seconds": 0,
    "typical_start_seconds": 15,
    "slowest_service": "saltcorn/saltcorn:latest"
  }
}
