{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9fff76a0-1c78-432c-8b91-0ee500a661a2",
    "slug": "n8n-puppeteer",
    "name": "N8N-PUPPETEER",
    "description": "Deploy n8n with Puppeteer browser automation and PostgreSQL on Railway.",
    "url": "https://railway.com/deploy/n8n-puppeteer",
    "upstream": {
      "repo_url": "https://github.com/statin26/n8n-puppeteer"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "n8n-puppeteer",
      "source": {
        "repo": "https://github.com/statin26/n8n-puppeteer"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Directory where PostgreSQL stores database files.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Hostname used to connect to PostgreSQL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port used by PostgreSQL.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Default PostgreSQL user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Default PostgreSQL database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Password for the PostgreSQL user.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created during PostgreSQL initialization.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Internal PostgreSQL connection string.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "PostgreSQL admin username.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Number of days generated SSL certificates remain valid.",
      "secret": false,
      "strategy": "default",
      "default": "365"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "PostgreSQL admin password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public PostgreSQL connection string.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Grace period before shutting down old deployments.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "n8n-puppeteer",
      "description": "Port used by the n8n web server.",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "DB_TYPE",
      "service": "n8n-puppeteer",
      "description": "Database type used by n8n.",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "NODES_EXCLUDE",
      "service": "n8n-puppeteer",
      "description": "Comma-separated list of n8n nodes to disable.",
      "secret": false,
      "strategy": "default",
      "default": "[]"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "n8n-puppeteer",
      "description": "Hostname of the PostgreSQL database service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "n8n-puppeteer",
      "description": "Port of the PostgreSQL database service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "n8n-puppeteer",
      "description": "PostgreSQL username used by n8n.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_RUNNERS_ENABLED",
      "service": "n8n-puppeteer",
      "description": "Enable task runners for scalable workflow execution.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "n8n-puppeteer",
      "description": "PostgreSQL database name used by n8n.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "n8n-puppeteer",
      "description": "Password for the PostgreSQL database user.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_DIAGNOSTICS_ENABLED",
      "service": "n8n-puppeteer",
      "description": "Enable anonymous diagnostics and telemetry.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PUPPETEER_EXECUTABLE_PATH",
      "service": "n8n-puppeteer",
      "description": "Path to the Chromium or Chrome executable.",
      "secret": false,
      "strategy": "default",
      "default": "/usr/bin/chromium-browser"
    },
    {
      "key": "N8N_COMMUNITY_PACKAGES_ENABLED",
      "service": "n8n-puppeteer",
      "description": "Allow installation of community nodes.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD",
      "service": "n8n-puppeteer",
      "description": "Skip Chromium download during installation.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "N8N_VERSION_NOTIFICATIONS_ENABLED",
      "service": "n8n-puppeteer",
      "description": "Enable notifications for new n8n versions.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS",
      "service": "n8n-puppeteer",
      "description": "Enforce secure permissions for n8n settings files.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "n8n-puppeteer"
      }
    },
    "cli": "railway deploy --template n8n-puppeteer",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9fff76a0-1c78-432c-8b91-0ee500a661a2",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "923a1943-79e5-4e38-83b7-61162f4041b2": {
                  "icon": "https://cdn.jsdelivr.net/gh/devicons/devicon/icons/postgresql/postgresql-original.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"unset PGPORT; docker-entrypoint.sh postgres --port=5432\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:16"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Directory where PostgreSQL stores database files.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Hostname used to connect to PostgreSQL.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port used by PostgreSQL.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Default PostgreSQL user.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Default PostgreSQL database name.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password for the PostgreSQL user.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created during PostgreSQL initialization.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal PostgreSQL connection string.",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{PGHOST}}:${{PGPORT}}/${{\"{PSTGRES_DB\"}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL admin username.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Number of days generated SSL certificates remain valid.",
                      "defaultValue": "365"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL admin password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public PostgreSQL connection string.",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{POSTGRES_DB}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Grace period before shutting down old deployments.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "923a1943-79e5-4e38-83b7-61162f4041b2": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "e97476ae-b7a3-4b2b-8fc0-d7f8dfb9f309": {
                  "icon": "https://avatars.githubusercontent.com/u/45487711?s=200&v=4",
                  "name": "n8n-puppeteer",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/statin26/n8n-puppeteer",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port used by the n8n web server.",
                      "defaultValue": "5678"
                    },
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "Database type used by n8n.",
                      "defaultValue": "postgresdb"
                    },
                    "NODES_EXCLUDE": {
                      "isOptional": false,
                      "description": "Comma-separated list of n8n nodes to disable.",
                      "defaultValue": "[]"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "isOptional": false,
                      "description": "Hostname of the PostgreSQL database service.",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "isOptional": false,
                      "description": "Port of the PostgreSQL database service.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL username used by n8n.",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "N8N_RUNNERS_ENABLED": {
                      "isOptional": false,
                      "description": "Enable task runners for scalable workflow execution.",
                      "defaultValue": "true"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "isOptional": false,
                      "description": "PostgreSQL database name used by n8n.",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the PostgreSQL database user.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "N8N_DIAGNOSTICS_ENABLED": {
                      "isOptional": false,
                      "description": "Enable anonymous diagnostics and telemetry.",
                      "defaultValue": "false"
                    },
                    "PUPPETEER_EXECUTABLE_PATH": {
                      "isOptional": false,
                      "description": "Path to the Chromium or Chrome executable.",
                      "defaultValue": "/usr/bin/chromium-browser"
                    },
                    "N8N_COMMUNITY_PACKAGES_ENABLED": {
                      "isOptional": false,
                      "description": "Allow installation of community nodes.",
                      "defaultValue": "true"
                    },
                    "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD": {
                      "isOptional": false,
                      "description": "Skip Chromium download during installation.",
                      "defaultValue": "true"
                    },
                    "N8N_VERSION_NOTIFICATIONS_ENABLED": {
                      "isOptional": false,
                      "description": "Enable notifications for new n8n versions.",
                      "defaultValue": "false"
                    },
                    "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS": {
                      "isOptional": false,
                      "description": "Enforce secure permissions for n8n settings files.",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "n8n-puppeteer",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T11:33:26.077Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_12aabf0d044e445aabe0",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 188,
    "typical_build_seconds": 117,
    "typical_start_seconds": 21,
    "slowest_service": "n8n-puppeteer"
  }
}
