{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e2e67282-7f97-456b-99c7-23a127f7c043",
    "slug": "outline-2",
    "name": "outline",
    "description": "An open source workspace for docs, wikis, whiteboards, and knowledge",
    "url": "https://railway.com/deploy/outline-2",
    "upstream": {
      "image": "outlinewiki/outline:latest"
    }
  },
  "services": [
    {
      "name": "redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "outline",
      "source": {
        "image": "outlinewiki/outline:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/outline/data",
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "URL",
      "service": "outline",
      "description": "Public URL of your Outline instance. Uses the Railway-generated domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "outline",
      "description": "HTTP port for the Outline web server. Set automatically by Railway.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NODE_ENV",
      "service": "outline",
      "description": "Node.js runtime environment. Use production for deployed instances.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "outline",
      "description": "Redis connection URL. References the managed redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY",
      "service": "outline",
      "description": "Secret key for encrypting sessions and cookies. Auto-generated; do not change after first deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "FORCE_HTTPS",
      "service": "outline",
      "description": "Redirect HTTP requests to HTTPS. Should remain enabled in production.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_URL",
      "service": "outline",
      "description": "PostgreSQL connection URL. References the managed postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FILE_STORAGE",
      "service": "outline",
      "description": "File storage backend. Use local storage with the attached volume.",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "outline",
      "description": "Node.js runtime flags. Suppresses localStorage warnings on newer Node versions.",
      "secret": false,
      "strategy": "default",
      "default": "--no-experimental-webstorage"
    },
    {
      "key": "UTILS_SECRET",
      "service": "outline",
      "description": "Secret used for utility operations and background tasks. Auto-generated; do not change after first deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DEFAULT_LANGUAGE",
      "service": "outline",
      "description": "Default language for the Outline user interface.",
      "secret": false,
      "strategy": "default",
      "default": "en_US"
    },
    {
      "key": "FILE_STORAGE_LOCAL_ROOT_DIR",
      "service": "outline",
      "description": "Directory path for locally stored uploads and attachments.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/outline/data"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "outline-2"
      }
    },
    "cli": "railway deploy --template outline-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e2e67282-7f97-456b-99c7-23a127f7c043",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3a8f60fe-0e8e-4c97-8bb2-a0011b92458e": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "3a8f60fe-0e8e-4c97-8bb2-a0011b92458e": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "3e9189f7-bdb8-45e4-bee7-326d9dbcdd4f": {
                  "icon": "https://www.getoutline.com/images/logo.svg",
                  "name": "outline",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "_health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "outlinewiki/outline:latest"
                  },
                  "variables": {
                    "URL": {
                      "isOptional": true,
                      "description": "Public URL of your Outline instance. Uses the Railway-generated domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PORT": {
                      "isOptional": true,
                      "description": "HTTP port for the Outline web server. Set automatically by Railway.",
                      "defaultValue": "${{outline.PORT}}"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Node.js runtime environment. Use production for deployed instances.",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis connection URL. References the managed redis service.",
                      "defaultValue": "${{redis.REDIS_URL}}"
                    },
                    "SECRET_KEY": {
                      "isOptional": false,
                      "description": "Secret key for encrypting sessions and cookies. Auto-generated; do not change after first deploy.",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "FORCE_HTTPS": {
                      "isOptional": false,
                      "description": "Redirect HTTP requests to HTTPS. Should remain enabled in production.",
                      "defaultValue": "true"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection URL. References the managed postgres service.",
                      "defaultValue": "${{postgres.DATABASE_URL}}"
                    },
                    "FILE_STORAGE": {
                      "isOptional": false,
                      "description": "File storage backend. Use local storage with the attached volume.",
                      "defaultValue": "local"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node.js runtime flags. Suppresses localStorage warnings on newer Node versions.",
                      "defaultValue": "--no-experimental-webstorage"
                    },
                    "SMTP_SERVICE": {
                      "isOptional": true,
                      "description": "SMTP service for transactional emails (optional). See https://docs.getoutline.com/s/hosting/doc/smtp-cqCJyZGMIB",
                      "defaultValue": ""
                    },
                    "UTILS_SECRET": {
                      "isOptional": false,
                      "description": "Secret used for utility operations and background tasks. Auto-generated; do not change after first deploy.",
                      "defaultValue": "{{UTILS_SECRET}}"
                    },
                    "OIDC_AUTH_URI": {
                      "isOptional": true,
                      "description": "OpenID Connect authorization endpoint (optional).",
                      "defaultValue": ""
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password (optional).",
                      "defaultValue": ""
                    },
                    "SMTP_USERNAME": {
                      "isOptional": true,
                      "description": "SMTP username (optional).",
                      "defaultValue": ""
                    },
                    "OIDC_CLIENT_ID": {
                      "isOptional": true,
                      "description": "OpenID Connect client ID (optional alternative auth). See https://docs.getoutline.com/s/hosting/doc/oidc-8CPBm6uC0I",
                      "defaultValue": ""
                    },
                    "OIDC_TOKEN_URI": {
                      "isOptional": true,
                      "description": "OpenID Connect token endpoint (optional).",
                      "defaultValue": ""
                    },
                    "SLACK_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Slack OAuth client ID (optional alternative auth). See https://docs.getoutline.com/s/hosting/doc/slack-sgMujR8J9J",
                      "defaultValue": ""
                    },
                    "SMTP_FROM_EMAIL": {
                      "isOptional": true,
                      "description": "From address for outgoing emails (optional).",
                      "defaultValue": ""
                    },
                    "DEFAULT_LANGUAGE": {
                      "isOptional": true,
                      "description": "Default language for the Outline user interface.",
                      "defaultValue": "en_US"
                    },
                    "GOOGLE_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Google OAuth client ID. Required for sign-in. See https://docs.getoutline.com/s/hosting/doc/google-hOuvtCmTqQ",
                      "defaultValue": ""
                    },
                    "OIDC_USERINFO_URI": {
                      "isOptional": true,
                      "description": "OpenID Connect userinfo endpoint (optional).",
                      "defaultValue": ""
                    },
                    "OIDC_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "OpenID Connect client secret (optional).",
                      "defaultValue": ""
                    },
                    "SLACK_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Slack OAuth client secret (optional).",
                      "defaultValue": ""
                    },
                    "GOOGLE_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Google OAuth client secret. Required for sign-in.",
                      "defaultValue": ""
                    },
                    "FILE_STORAGE_LOCAL_ROOT_DIR": {
                      "isOptional": false,
                      "description": "Directory path for locally stored uploads and attachments.",
                      "defaultValue": "/var/lib/outline/data"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "3e9189f7-bdb8-45e4-bee7-326d9dbcdd4f": {
                      "mountPath": "/var/lib/outline/data"
                    }
                  }
                },
                "4d1a3eb7-d9a6-4572-9143-1fa3a135d8cd": {
                  "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:18"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "4d1a3eb7-d9a6-4572-9143-1fa3a135d8cd": {
                      "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."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "outline",
      "method": "GET",
      "path": "_health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T22:39:15.131Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_f2beb9a8f29a4bf3926a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "SUCCESS,CRASHED,DEPLOYING"
      }
    ]
  }
}
