{
  "manifest_version": "1.0.0",
  "template": {
    "id": "68633d5a-c08b-40ef-b252-8506b83e43e4",
    "slug": "presenton",
    "name": "Presenton | Open Source AI Presentation Generator",
    "description": "Self-hosted AI presentation & slide generator with persistent storage",
    "url": "https://railway.com/deploy/presenton",
    "upstream": {
      "image": "ghcr.io/presenton/presenton:v0.9.10-beta"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:18.6-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Presenton",
      "source": {
        "image": "ghcr.io/presenton/presenton:v0.9.10-beta"
      },
      "needs_volume": true,
      "volume_mount_path": "/app_data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "PostgreSQL data directory (subdirectory of the mount so the volume's lost+found does not block init).",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name.",
      "secret": false,
      "strategy": "default",
      "default": "presenton"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user.",
      "secret": false,
      "strategy": "default",
      "default": "presenton"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Presenton",
      "description": "Internal nginx port. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "DATABASE_URL",
      "service": "Presenton",
      "description": "Postgres connection string (wired to the Postgres service).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_WAIT_HOST",
      "service": "Presenton",
      "description": "Postgres host the startup waits on.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_WAIT_PORT",
      "service": "Presenton",
      "description": "Postgres port the startup waits on. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "CAN_CHANGE_KEYS",
      "service": "Presenton",
      "description": "Allow editing LLM / API keys from the in-app settings after login.",
      "secret": true,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "APP_DATA_DIRECTORY",
      "service": "Presenton",
      "description": "Where presentations, exports, uploads and fonts are stored on the volume.",
      "secret": false,
      "strategy": "default",
      "default": "/app_data"
    },
    {
      "key": "MIGRATE_DATABASE_ON_STARTUP",
      "service": "Presenton",
      "description": "Run database migrations automatically on boot.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "presenton"
      }
    },
    "cli": "railway deploy --template presenton",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "68633d5a-c08b-40ef-b252-8506b83e43e4",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "388e6a39-0420-418f-9e43-89ada661e0bc": {
                  "icon": null,
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 2
                  },
                  "source": {
                    "image": "postgres:18.6-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory (subdirectory of the mount so the volume's lost+found does not block init).",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name.",
                      "defaultValue": "presenton"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user.",
                      "defaultValue": "presenton"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "388e6a39-0420-418f-9e43-89ada661e0bc": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "45d21874-b4d9-4e1b-a9b0-6bd8fa0f3d73": {
                  "icon": "https://cdn.jsdelivr.net/gh/presenton/presenton@v0.9.10-beta/electron/build/icon-1024.png",
                  "name": "Presenton",
                  "deploy": {
                    "startCommand": "bash -c 'for i in $(seq 1 90); do (echo > /dev/tcp/$DB_WAIT_HOST/$DB_WAIT_PORT) 2>/dev/null && break; echo \"waiting for postgres ($i/90)\"; sleep 2; done; exec node /app/start.js'",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "image": "ghcr.io/presenton/presenton:v0.9.10-beta"
                  },
                  "variables": {
                    "LLM": {
                      "isOptional": true,
                      "description": "LLM provider: openai | google | anthropic. Leave empty and configure providers in-app after login.",
                      "defaultValue": ""
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Internal nginx port. Do not change.",
                      "defaultValue": "80"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string (wired to the Postgres service).",
                      "defaultValue": "postgresql://presenton:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/presenton"
                    },
                    "DB_WAIT_HOST": {
                      "isOptional": false,
                      "description": "Postgres host the startup waits on.",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_WAIT_PORT": {
                      "isOptional": false,
                      "description": "Postgres port the startup waits on. Do not change.",
                      "defaultValue": "5432"
                    },
                    "GOOGLE_MODEL": {
                      "isOptional": true,
                      "description": "Gemini model, e.g. gemini-2.0-flash.",
                      "defaultValue": ""
                    },
                    "OPENAI_MODEL": {
                      "isOptional": true,
                      "description": "OpenAI model, e.g. gpt-4o.",
                      "defaultValue": ""
                    },
                    "GOOGLE_API_KEY": {
                      "isOptional": true,
                      "description": "Google Gemini API key (used when LLM=google).",
                      "defaultValue": ""
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "OpenAI API key (used when LLM=openai).",
                      "defaultValue": ""
                    },
                    "PEXELS_API_KEY": {
                      "isOptional": true,
                      "description": "Optional Pexels API key for stock images in slides.",
                      "defaultValue": ""
                    },
                    "ANTHROPIC_MODEL": {
                      "isOptional": true,
                      "description": "Anthropic model, e.g. claude-3-5-sonnet-latest.",
                      "defaultValue": ""
                    },
                    "CAN_CHANGE_KEYS": {
                      "isOptional": false,
                      "description": "Allow editing LLM / API keys from the in-app settings after login.",
                      "defaultValue": "true"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Anthropic API key (used when LLM=anthropic).",
                      "defaultValue": ""
                    },
                    "APP_DATA_DIRECTORY": {
                      "isOptional": false,
                      "description": "Where presentations, exports, uploads and fonts are stored on the volume.",
                      "defaultValue": "/app_data"
                    },
                    "MIGRATE_DATABASE_ON_STARTUP": {
                      "isOptional": false,
                      "description": "Run database migrations automatically on boot.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "45d21874-b4d9-4e1b-a9b0-6bd8fa0f3d73": {
                      "mountPath": "/app_data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Presenton",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T10:14:42.516Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T18:49:51.931Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b35392f4f21146b582ab",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 133,
    "typical_build_seconds": 0,
    "typical_start_seconds": 51,
    "slowest_service": "Presenton"
  }
}
