{
  "manifest_version": "1.0.0",
  "template": {
    "id": "88d672f2-c482-4446-9579-469da782b602",
    "slug": "flowise-5",
    "name": "Flowise",
    "description": "Flowise AI agent builder, owner account set at deploy, Postgres",
    "url": "https://railway.com/deploy/flowise-5",
    "upstream": {
      "image": "flowiseai/flowise:3.1.4"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "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": "flowise",
      "source": {
        "image": "flowiseai/flowise:3.1.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private host name (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Same as POSTGRES_USER",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Same as POSTGRES_DB",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Same as POSTGRES_PASSWORD",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity of the generated SSL certificate, in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Postgres password (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds to let Postgres shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "flowise",
      "description": "Port Flowise listens on",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "APP_URL",
      "service": "flowise",
      "description": "Public URL of this service (auto-configured). Also turns on secure login cookies",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LOG_PATH",
      "service": "flowise",
      "description": "Log files, on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/logs"
    },
    {
      "key": "LOG_LEVEL",
      "service": "flowise",
      "description": "Log level",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "flowise",
      "description": "Email for the owner account, created on first start. You log in with it",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_HOST",
      "service": "flowise",
      "description": "Postgres over the private network (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_NAME",
      "service": "flowise",
      "description": "Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PORT",
      "service": "flowise",
      "description": "Postgres port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_TYPE",
      "service": "flowise",
      "description": "Store flows, users and credentials in Postgres",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "DATABASE_USER",
      "service": "flowise",
      "description": "Postgres user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "flowise",
      "description": "Owner password (generated). Read it here after deploy",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SECRETKEY_PATH",
      "service": "flowise",
      "description": "Key files, on the volume",
      "secret": true,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "flowise",
      "description": "Run as root so Flowise can write to the Railway volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "BLOB_STORAGE_PATH",
      "service": "flowise",
      "description": "Uploaded files, on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/storage"
    },
    {
      "key": "DATABASE_PASSWORD",
      "service": "flowise",
      "description": "Postgres password (auto-configured)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TOKEN_HASH_SECRET",
      "service": "flowise",
      "description": "Hashes invite and reset tokens (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "FLOWISE_SETUP_BODY",
      "service": "flowise",
      "description": "Creates the owner account on first start so nobody else can claim the instance. Do not change",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "JWT_AUTH_TOKEN_SECRET",
      "service": "flowise",
      "description": "Signs login tokens (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "EXPRESS_SESSION_SECRET",
      "service": "flowise",
      "description": "Signs sessions (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "JWT_REFRESH_TOKEN_SECRET",
      "service": "flowise",
      "description": "Signs refresh tokens (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DISABLE_FLOWISE_TELEMETRY",
      "service": "flowise",
      "description": "Turn off Flowise's usage telemetry",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "FLOWISE_SECRETKEY_OVERWRITE",
      "service": "flowise",
      "description": "Encrypts saved credentials (generated). Never change after first deploy, or saved credentials can't be decrypted",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "flowise-5"
      }
    },
    "cli": "railway deploy --template flowise-5",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "88d672f2-c482-4446-9579-469da782b602",
            "serializedConfig": {
              "services": {
                "713589ab-33eb-4b86-836b-c923aaaf520f": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Data directory on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "description": "Private host name (auto-configured)",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "description": "Same as POSTGRES_USER",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "description": "Same as POSTGRES_DB",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "description": "Same as POSTGRES_PASSWORD",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "description": "Database name",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "description": "Private connection URL",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "description": "Database user",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "description": "Validity of the generated SSL certificate, in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Postgres password (generated)",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "description": "Seconds to let Postgres shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "847c9231-9597-4f85-8a5d-ca341aeedb29": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "d939c226-8814-42f6-b998-c5542c3ef311": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/flowise.svg",
                  "name": "flowise",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"(until curl -sf http://127.0.0.1:$PORT/api/v1/ping >/dev/null; do sleep 2; done; echo owner-setup HTTP $(curl -s -o /dev/null -w %{http_code} -X POST -H Content-Type:application/json --data-raw $FLOWISE_SETUP_BODY http://127.0.0.1:$PORT/api/v1/account/register)) & exec flowise start\"",
                    "healthcheckPath": "/api/v1/ping",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "flowiseai/flowise:3.1.4"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port Flowise listens on",
                      "defaultValue": "3000"
                    },
                    "APP_URL": {
                      "description": "Public URL of this service (auto-configured). Also turns on secure login cookies",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "LOG_PATH": {
                      "description": "Log files, on the volume",
                      "defaultValue": "/data/logs"
                    },
                    "LOG_LEVEL": {
                      "description": "Log level",
                      "defaultValue": "info"
                    },
                    "ADMIN_EMAIL": {
                      "description": "Email for the owner account, created on first start. You log in with it",
                      "defaultValue": "{{ADMIN_EMAIL}}"
                    },
                    "DATABASE_HOST": {
                      "description": "Postgres over the private network (auto-configured)",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DATABASE_NAME": {
                      "description": "Postgres database",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DATABASE_PORT": {
                      "description": "Postgres port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DATABASE_TYPE": {
                      "description": "Store flows, users and credentials in Postgres",
                      "defaultValue": "postgres"
                    },
                    "DATABASE_USER": {
                      "description": "Postgres user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "ADMIN_PASSWORD": {
                      "description": "Owner password (generated). Read it here after deploy",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "SECRETKEY_PATH": {
                      "description": "Key files, on the volume",
                      "defaultValue": "/data"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root so Flowise can write to the Railway volume",
                      "defaultValue": "0"
                    },
                    "BLOB_STORAGE_PATH": {
                      "description": "Uploaded files, on the volume",
                      "defaultValue": "/data/storage"
                    },
                    "DATABASE_PASSWORD": {
                      "description": "Postgres password (auto-configured)",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "TOKEN_HASH_SECRET": {
                      "description": "Hashes invite and reset tokens (generated)",
                      "defaultValue": "{{TOKEN_HASH_SECRET}}"
                    },
                    "FLOWISE_SETUP_BODY": {
                      "description": "Creates the owner account on first start so nobody else can claim the instance. Do not change",
                      "defaultValue": "{\"user\":{\"name\":\"Admin\",\"email\":\"${{ADMIN_EMAIL}}\",\"credential\":\"${{ADMIN_PASSWORD}}\"}}"
                    },
                    "JWT_AUTH_TOKEN_SECRET": {
                      "description": "Signs login tokens (generated)",
                      "defaultValue": "{{JWT_AUTH_TOKEN_SECRET}}"
                    },
                    "EXPRESS_SESSION_SECRET": {
                      "description": "Signs sessions (generated)",
                      "defaultValue": "{{EXPRESS_SESSION_SECRET}}"
                    },
                    "JWT_REFRESH_TOKEN_SECRET": {
                      "description": "Signs refresh tokens (generated)",
                      "defaultValue": "{{JWT_REFRESH_TOKEN_SECRET}}"
                    },
                    "DISABLE_FLOWISE_TELEMETRY": {
                      "description": "Turn off Flowise's usage telemetry",
                      "defaultValue": "true"
                    },
                    "FLOWISE_SECRETKEY_OVERWRITE": {
                      "description": "Encrypts saved credentials (generated). Never change after first deploy, or saved credentials can't be decrypted",
                      "defaultValue": "{{FLOWISE_SECRETKEY_OVERWRITE}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "3c953e5a-d61e-4ef1-b7aa-900646519690": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "flowise",
      "method": "GET",
      "path": "/api/v1/ping",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-11-04T22:15:11.317Z",
  "generator_version": "0.1.0"
}
