{
  "manifest_version": "1.0.0",
  "template": {
    "id": "985ba6e9-b158-45c1-ba69-1d3f31b89e5e",
    "slug": "RaK3xU",
    "name": "Memos",
    "description": "A privacy-first, lightweight note-taking service",
    "url": "https://railway.com/deploy/RaK3xU",
    "upstream": {
      "image": "neosmemo/memos:stable"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:15"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Memos",
      "source": {
        "image": "neosmemo/memos:stable"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/opt/memos",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location on disk for database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Public Database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database username",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "PGHOST_PRIVATE",
      "service": "Postgres",
      "description": "Private host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT_PRIVATE",
      "service": "Postgres",
      "description": "Private port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PRIVATE_URL",
      "service": "Postgres",
      "description": "Private database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "Memos",
      "description": "Let Railway know what port memos is running on",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEMOS_DSN",
      "service": "Memos",
      "description": "Database source name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEMOS_MODE",
      "service": "Memos",
      "description": "Mode of server, can be \"prod\" or \"dev\" or \"demo\"",
      "secret": false,
      "strategy": "default",
      "default": "prod"
    },
    {
      "key": "MEMOS_PORT",
      "service": "Memos",
      "description": "Port of the server",
      "secret": false,
      "strategy": "default",
      "default": "8081"
    },
    {
      "key": "MEMOS_DRIVER",
      "service": "Memos",
      "description": "Database driver",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "MEMOS_METRIC",
      "service": "Memos",
      "description": "Disallow metric collection",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PGHOST_PRIVATE",
      "service": "Memos",
      "description": "Private database host, used for database liveness check",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT_PRIVATE",
      "service": "Memos",
      "description": "Private database port, used for database liveness check",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "Memos",
      "description": "<a href=\"https://docs.railway.app/guides/private-networking#workaround-for-alpine-based-images\">Workaround for Alpine-based images</a>",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "RaK3xU"
      }
    },
    "cli": "railway deploy --template RaK3xU",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "985ba6e9-b158-45c1-ba69-1d3f31b89e5e",
            "serializedConfig": {
              "services": {
                "59ed15b8-5e74-4452-b1a0-8f764ffbabf7": {
                  "icon": "https://devicons.railway.app/PostgreSQL?variant=light",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "postgres:15"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location on disk for database",
                      "defaultValue": "${{RAILWAY_VOLUME_MOUNT_PATH}}/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Public Database URL",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database username",
                      "defaultValue": "postgres"
                    },
                    "PGHOST_PRIVATE": {
                      "isOptional": false,
                      "description": "Private host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT_PRIVATE": {
                      "isOptional": false,
                      "description": "Private port",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PRIVATE_URL": {
                      "isOptional": false,
                      "description": "Private database URL",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{PGHOST_PRIVATE}}:${{PGPORT_PRIVATE}}/${{POSTGRES_DB}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "59ed15b8-5e74-4452-b1a0-8f764ffbabf7": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "cb18b550-d5ac-4450-ba80-050a8e367c9b": {
                  "icon": "https://www.usememos.com/logo-rounded.png",
                  "name": "Memos",
                  "build": {},
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": "/healthz"
                  },
                  "source": {
                    "image": "neosmemo/memos:stable"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Let Railway know what port memos is running on",
                      "defaultValue": "${{MEMOS_PORT}}"
                    },
                    "MEMOS_DSN": {
                      "isOptional": false,
                      "description": "Database source name",
                      "defaultValue": "${{Postgres.DATABASE_PRIVATE_URL}}?sslmode=disable"
                    },
                    "MEMOS_MODE": {
                      "isOptional": false,
                      "description": "Mode of server, can be \"prod\" or \"dev\" or \"demo\"",
                      "defaultValue": "prod"
                    },
                    "MEMOS_PORT": {
                      "isOptional": false,
                      "description": "Port of the server",
                      "defaultValue": "8081"
                    },
                    "MEMOS_DRIVER": {
                      "isOptional": false,
                      "description": "Database driver",
                      "defaultValue": "postgres"
                    },
                    "MEMOS_METRIC": {
                      "isOptional": false,
                      "description": "Disallow metric collection",
                      "defaultValue": "false"
                    },
                    "PGHOST_PRIVATE": {
                      "isOptional": false,
                      "description": "Private database host, used for database liveness check",
                      "defaultValue": "${{Postgres.PGHOST_PRIVATE}}"
                    },
                    "PGPORT_PRIVATE": {
                      "isOptional": false,
                      "description": "Private database port, used for database liveness check",
                      "defaultValue": "${{Postgres.PGPORT_PRIVATE}}"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "isOptional": false,
                      "description": "<a href=\"https://docs.railway.app/guides/private-networking#workaround-for-alpine-based-images\">Workaround for Alpine-based images</a>",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "cb18b550-d5ac-4450-ba80-050a8e367c9b": {
                      "mountPath": "/var/opt/memos"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Memos",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T04:14:41.730Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T14:16:15.316Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c6416f71f71b4478bc5e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 76,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Memos"
  }
}
