{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f06e3efd-e13c-4486-b818-79486aa7da09",
    "slug": "n8n-deployment",
    "name": "n8n deployment",
    "description": "Environment for self hosting n8n.",
    "url": "https://railway.com/deploy/n8n-deployment",
    "upstream": {
      "repo_url": "https://github.com/Alig1493/n8n-docker"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "striking-inspiration",
      "source": {
        "repo": "https://github.com/Alig1493/n8n-docker"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/node/.n8n",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DB_TYPE",
      "service": "striking-inspiration",
      "description": "the type of database.",
      "secret": false,
      "strategy": "default",
      "default": "postgresdb"
    },
    {
      "key": "N8N_HOST",
      "service": "striking-inspiration",
      "description": "Domain of the host. Find this in the settings of this instance.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "N8N_PORT",
      "service": "striking-inspiration",
      "description": "The n8n service application is exposed at 5678. Look in the docker docs for more details",
      "secret": false,
      "strategy": "default",
      "default": "5678"
    },
    {
      "key": "NODE_ENV",
      "service": "striking-inspiration",
      "description": "Environment tag for node. No idea/forgot the requirement/origin of this var.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "N8N_USER_ID",
      "service": "striking-inspiration",
      "description": "The user id of the application. Since it runs as root in docker we need to set it to 1000.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "striking-inspiration",
      "description": "Full url of the app at root. I set the variable value as an example change it if your domain + project name changes.",
      "secret": false,
      "strategy": "default",
      "default": "https://striking-inspiration-production.up.railway.app"
    },
    {
      "key": "N8N_GROUP_ID",
      "service": "striking-inspiration",
      "description": "Same as user ID the n8n app runs as root user in docker so 1000 again.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "N8N_PROTOCOL",
      "service": "striking-inspiration",
      "description": "Web application so it serves on https.",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "N8N_USER_FOLDER",
      "service": "striking-inspiration",
      "description": "Node application on docker lives under /hoome/node",
      "secret": false,
      "strategy": "default",
      "default": "/home/node"
    },
    {
      "key": "DB_POSTGRESDB_HOST",
      "service": "striking-inspiration",
      "description": "comes from connected postgres instance.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PORT",
      "service": "striking-inspiration",
      "description": "comes from connected postgres instance.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_USER",
      "service": "striking-inspiration",
      "description": "comes from connected postgres instance.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_BASIC_AUTH_USER",
      "service": "striking-inspiration",
      "description": "Value required for logging in on startup. Change it before deployment.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "N8N_RUNNERS_ENABLED",
      "service": "striking-inspiration",
      "description": "for parallel processing/concurrency so true.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DB_POSTGRESDB_SCHEMA",
      "service": "striking-inspiration",
      "description": "We use public schema.",
      "secret": false,
      "strategy": "default",
      "default": "public"
    },
    {
      "key": "N8N_BASIC_AUTH_ACTIVE",
      "service": "striking-inspiration",
      "description": "Required for login.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DB_POSTGRESDB_DATABASE",
      "service": "striking-inspiration",
      "description": "comes from connected postgres instance.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_POSTGRESDB_PASSWORD",
      "service": "striking-inspiration",
      "description": "comes from connected postgres instance.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "N8N_BASIC_AUTH_PASSWORD",
      "service": "striking-inspiration",
      "description": "Password required for admin login. Change it before deployment.",
      "secret": true,
      "strategy": "default",
      "default": "adminpassword"
    },
    {
      "key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS",
      "service": "striking-inspiration",
      "description": "No idea probably some admin level settings so set to true",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "n8n-deployment"
      }
    },
    "cli": "railway deploy --template n8n-deployment",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f06e3efd-e13c-4486-b818-79486aa7da09",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3a75ce56-e75a-4ef9-aca7-1a80de9afbfb": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
                      "defaultValue": "{{PGDATA}}"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
                      "defaultValue": "{{PGPORT}}"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
                      "defaultValue": "{{POSTGRES_DB}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
                      "defaultValue": "{{POSTGRES_USER}}"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
                      "defaultValue": "{{SSL_CERT_DAYS}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "automatically generated inside the database service when you provision a PostgreSQL instance",
                      "defaultValue": "{{RAILWAY_DEPLOYMENT_DRAINING_SECONDS}}"
                    }
                  },
                  "volumeMounts": {
                    "3a75ce56-e75a-4ef9-aca7-1a80de9afbfb": {
                      "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."
                  }
                },
                "6cd2c1a0-bda4-4aa8-9c26-4fe96b967c1d": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/n8n.svg",
                  "name": "striking-inspiration",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "repo": "https://github.com/Alig1493/n8n-docker",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "the type of database.",
                      "defaultValue": "postgresdb"
                    },
                    "N8N_HOST": {
                      "isOptional": false,
                      "description": "Domain of the host. Find this in the settings of this instance.",
                      "defaultValue": "{{N8N_HOST}}"
                    },
                    "N8N_PORT": {
                      "isOptional": false,
                      "description": "The n8n service application is exposed at 5678. Look in the docker docs for more details",
                      "defaultValue": "5678"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Environment tag for node. No idea/forgot the requirement/origin of this var.",
                      "defaultValue": "production"
                    },
                    "N8N_USER_ID": {
                      "isOptional": false,
                      "description": "The user id of the application. Since it runs as root in docker we need to set it to 1000.",
                      "defaultValue": "1000"
                    },
                    "WEBHOOK_URL": {
                      "isOptional": false,
                      "description": "Full url of the app at root. I set the variable value as an example change it if your domain + project name changes.",
                      "defaultValue": "https://striking-inspiration-production.up.railway.app"
                    },
                    "N8N_GROUP_ID": {
                      "isOptional": false,
                      "description": "Same as user ID the n8n app runs as root user in docker so 1000 again.",
                      "defaultValue": "1000"
                    },
                    "N8N_PROTOCOL": {
                      "isOptional": false,
                      "description": "Web application so it serves on https.",
                      "defaultValue": "https"
                    },
                    "N8N_USER_FOLDER": {
                      "isOptional": false,
                      "description": "Node application on docker lives under /hoome/node",
                      "defaultValue": "/home/node"
                    },
                    "DB_POSTGRESDB_HOST": {
                      "isOptional": false,
                      "description": "comes from connected postgres instance.",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_POSTGRESDB_PORT": {
                      "isOptional": false,
                      "description": "comes from connected postgres instance.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DB_POSTGRESDB_USER": {
                      "isOptional": false,
                      "description": "comes from connected postgres instance.",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "N8N_BASIC_AUTH_USER": {
                      "isOptional": false,
                      "description": "Value required for logging in on startup. Change it before deployment.",
                      "defaultValue": "admin"
                    },
                    "N8N_RUNNERS_ENABLED": {
                      "isOptional": false,
                      "description": "for parallel processing/concurrency so true.",
                      "defaultValue": "true"
                    },
                    "DB_POSTGRESDB_SCHEMA": {
                      "isOptional": false,
                      "description": "We use public schema.",
                      "defaultValue": "public"
                    },
                    "N8N_BASIC_AUTH_ACTIVE": {
                      "isOptional": false,
                      "description": "Required for login.",
                      "defaultValue": "true"
                    },
                    "DB_POSTGRESDB_DATABASE": {
                      "isOptional": false,
                      "description": "comes from connected postgres instance.",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "DB_POSTGRESDB_PASSWORD": {
                      "isOptional": false,
                      "description": "comes from connected postgres instance.",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "N8N_BASIC_AUTH_PASSWORD": {
                      "isOptional": false,
                      "description": "Password required for admin login. Change it before deployment.",
                      "defaultValue": "adminpassword"
                    },
                    "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS": {
                      "isOptional": false,
                      "description": "No idea probably some admin level settings so set to true",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "6cd2c1a0-bda4-4aa8-9c26-4fe96b967c1d": {
                      "mountPath": "/home/node/.n8n"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0"
}
