{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d7e41a87-9e24-4f4c-8e3c-62155b53081e",
    "slug": "g9cM6x",
    "name": "Astuto",
    "description": "A free, open source, self-hosted customer feedback tool",
    "url": "https://railway.com/deploy/g9cM6x",
    "upstream": {
      "image": "riggraz/astuto:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:14.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "Astuto",
      "source": {
        "image": "riggraz/astuto:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/astuto/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "PG_PRIVATE_HOST",
      "service": "Postgres",
      "description": "Provide a value for PG_PRIVATE_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PG_PRIVATE_PORT",
      "service": "Postgres",
      "description": "Provide a value for PG_PRIVATE_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PRIVATE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "Astuto",
      "description": "The port that Astuto runs on internally",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "BASE_URL",
      "service": "Astuto",
      "description": "The public service or customer domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_ENV",
      "service": "Astuto",
      "description": "Set environment to production",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILS_ENV",
      "service": "Astuto",
      "description": "Set environment to production",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENVIRONMENT",
      "service": "Astuto",
      "description": "Set environment to production",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "Astuto",
      "description": "Postgres private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PORT",
      "service": "Astuto",
      "description": "Postgres private port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Astuto",
      "description": "Postgres username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EMAIL_MAIL_FROM",
      "service": "Astuto",
      "description": "Email from address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EMAIL_SMTP_HOST",
      "service": "Astuto",
      "description": "SMTP host",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "EMAIL_SMTP_PASS",
      "service": "Astuto",
      "description": "SMTP password",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "EMAIL_SMTP_PORT",
      "service": "Astuto",
      "description": "SMTP port",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "EMAIL_SMTP_USER",
      "service": "Astuto",
      "description": "SMTP username",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "Astuto",
      "description": "Secret key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Astuto",
      "description": "Postgres password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILS_LOG_TO_STDOUT",
      "service": "Astuto",
      "description": "Enable logging to stdout",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "EMAIL_DELIVERY_METHOD",
      "service": "Astuto",
      "description": "enable SMTP email",
      "secret": false,
      "strategy": "default",
      "default": "smtp"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "g9cM6x"
      }
    },
    "cli": "railway deploy --template g9cM6x",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d7e41a87-9e24-4f4c-8e3c-62155b53081e",
            "serializedConfig": {
              "services": {
                "917ee809-1e16-4dcb-a150-61373d3782a9": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "image": "postgres:14.5"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "postgres"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "PG_PRIVATE_HOST": {
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PG_PRIVATE_PORT": {
                      "defaultValue": "5432"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PRIVATE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:${{PG_PRIVATE_PORT}}/${{POSTGRES_DB}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "917ee809-1e16-4dcb-a150-61373d3782a9": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "927d9b2b-a24e-4a49-bb44-a9b99ca25b3a": {
                  "icon": "https://res.cloudinary.com/h5kvzw/image/upload/v1710975641/logo_sh4bfr.png",
                  "name": "Astuto",
                  "deploy": {
                    "healthcheckPath": "/users/sign_in"
                  },
                  "source": {
                    "image": "riggraz/astuto:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "The port that Astuto runs on internally",
                      "defaultValue": "3000"
                    },
                    "BASE_URL": {
                      "description": "The public service or customer domain",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_ENV": {
                      "description": "Set environment to production",
                      "defaultValue": "${{ENVIRONMENT}}"
                    },
                    "RAILS_ENV": {
                      "description": "Set environment to production",
                      "defaultValue": "${{ENVIRONMENT}}"
                    },
                    "ENVIRONMENT": {
                      "description": "Set environment to production",
                      "defaultValue": "production"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "description": "Postgres private hostname",
                      "defaultValue": "${{Postgres.PG_PRIVATE_HOST}}"
                    },
                    "POSTGRES_PORT": {
                      "isOptional": false,
                      "description": "Postgres private port",
                      "defaultValue": "${{Postgres.PG_PRIVATE_PORT}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres username",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "EMAIL_MAIL_FROM": {
                      "isOptional": false,
                      "description": "Email from address",
                      "defaultValue": "Astuto <${{EMAIL_SMTP_USER}}>"
                    },
                    "EMAIL_SMTP_HOST": {
                      "isOptional": false,
                      "description": "SMTP host",
                      "defaultValue": "{{EMAIL_SMTP_HOST}}"
                    },
                    "EMAIL_SMTP_PASS": {
                      "isOptional": false,
                      "description": "SMTP password",
                      "defaultValue": "{{EMAIL_SMTP_PASS}}"
                    },
                    "EMAIL_SMTP_PORT": {
                      "isOptional": false,
                      "description": "SMTP port",
                      "defaultValue": "{{EMAIL_SMTP_PORT}}"
                    },
                    "EMAIL_SMTP_USER": {
                      "isOptional": false,
                      "description": "SMTP username",
                      "defaultValue": "{{EMAIL_SMTP_USER}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Secret key",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "RAILS_LOG_TO_STDOUT": {
                      "isOptional": false,
                      "description": "Enable logging to stdout",
                      "defaultValue": "1"
                    },
                    "EMAIL_DELIVERY_METHOD": {
                      "isOptional": false,
                      "description": "enable SMTP email",
                      "defaultValue": "smtp"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "927d9b2b-a24e-4a49-bb44-a9b99ca25b3a": {
                      "mountPath": "/astuto/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Astuto",
      "method": "GET",
      "path": "/users/sign_in",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0"
}
