{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e73d41fc-7bb2-44f2-aa49-470ece78d45d",
    "slug": "open-archiver-2",
    "name": "Open Archiver",
    "description": "Self-hosted email archiving with full-text search (unofficial)",
    "url": "https://railway.com/deploy/open-archiver-2",
    "upstream": {
      "image": "logiclabshq/open-archiver:v0.6.0"
    }
  },
  "services": [
    {
      "name": "open-archiver-meilisearch",
      "source": {
        "image": "getmeili/meilisearch:v1.38"
      },
      "needs_volume": true,
      "volume_mount_path": "/meili_data",
      "http": false
    },
    {
      "name": "open-archiver-valkey",
      "source": {
        "image": "valkey/valkey:8-alpine"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "open-archiver-db",
      "source": {
        "image": "postgres:17-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "open-archiver",
      "source": {
        "image": "logiclabshq/open-archiver:v0.6.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/data/open-archiver",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MEILI_HTTP_ADDR",
      "service": "open-archiver-meilisearch",
      "description": "Address Meilisearch listens on. [::]:7700 accepts both IPv4 and IPv6 connections on the private network. Do not change it.",
      "secret": false,
      "strategy": "default",
      "default": "[::]:7700"
    },
    {
      "key": "MEILI_MASTER_KEY",
      "service": "open-archiver-meilisearch",
      "description": "Auto-generated password for the bundled service.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "open-archiver-valkey",
      "description": "Auto-generated password for the bundled service.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LC_ALL",
      "service": "open-archiver-db",
      "description": "Keeps Postgres collation deterministic (C).",
      "secret": false,
      "strategy": "default",
      "default": "C"
    },
    {
      "key": "PGDATA",
      "service": "open-archiver-db",
      "description": "Postgres data subdirectory on the volume (avoids initdb failing on lost+found).",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "open-archiver-db",
      "description": "Name of the Postgres database Open Archiver uses.",
      "secret": false,
      "strategy": "default",
      "default": "open_archive"
    },
    {
      "key": "POSTGRES_USER",
      "service": "open-archiver-db",
      "description": "Postgres user for the bundled open-archiver-db service.",
      "secret": false,
      "strategy": "default",
      "default": "archiver"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "open-archiver-db",
      "description": "Auto-generated password for the bundled service.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "open-archiver",
      "description": "Port the web UI listens on (3000).",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "ORIGIN",
      "service": "open-archiver",
      "description": "Public https URL of this instance; must match your domain (Railway domain by default).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "APP_URL",
      "service": "open-archiver",
      "description": "Public https URL of this instance; must match your domain (Railway domain by default).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_ENV",
      "service": "open-archiver",
      "description": "Runtime mode. production for real deployments.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "JWT_SECRET",
      "service": "open-archiver",
      "description": "Auto-generated secret that signs login tokens.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MEILI_HOST",
      "service": "open-archiver",
      "description": "Internal connection to the bundled Meilisearch service; do not change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_HOST",
      "service": "open-archiver",
      "description": "Internal connection to the bundled Valkey service; do not change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PORT",
      "service": "open-archiver",
      "description": "Port of the bundled Valkey service (6379).",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DATABASE_URL",
      "service": "open-archiver",
      "description": "Internal connection to the bundled Postgres service; do not change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT_BACKEND",
      "service": "open-archiver",
      "description": "Internal port of the API backend (4000). The web UI proxies to it.",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "STORAGE_TYPE",
      "service": "open-archiver",
      "description": "local (volume) or s3. Hobby volumes max 5 GB; use s3 for larger archives.",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "PORT_FRONTEND",
      "service": "open-archiver",
      "description": "Web UI port (3000).",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "open-archiver",
      "description": "Auto-generated 32-byte hex key protecting stored mailbox credentials. Back it up; do not change it.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "JWT_EXPIRES_IN",
      "service": "open-archiver",
      "description": "How long a sign-in session (JWT) stays valid, for example 7d. Required: the backend will not start without it.",
      "secret": false,
      "strategy": "default",
      "default": "7d"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "open-archiver",
      "description": "Password of the bundled Valkey service, referenced from that service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SYNC_FREQUENCY",
      "service": "open-archiver",
      "description": "Cron expression for mailbox sync. Default every minute.",
      "secret": false,
      "strategy": "default",
      "default": "* * * * *"
    },
    {
      "key": "BODY_SIZE_LIMIT",
      "service": "open-archiver",
      "description": "Max upload size for PST/mbox/eml imports, e.g. 100M or 1G.",
      "secret": false,
      "strategy": "default",
      "default": "100M"
    },
    {
      "key": "ENABLE_DELETION",
      "service": "open-archiver",
      "description": "Allow deleting archived emails. Leave false to protect archive integrity.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "MEILI_MASTER_KEY",
      "service": "open-archiver",
      "description": "Master key of the bundled Meilisearch service, referenced from that service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_TLS_ENABLED",
      "service": "open-archiver",
      "description": "Whether to use TLS to Valkey. false for the bundled service on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "STORAGE_ENCRYPTION_KEY",
      "service": "open-archiver",
      "description": "Auto-generated 32-byte hex key encrypting archived mail on disk. Back it up; do not change it.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "STORAGE_LOCAL_ROOT_PATH",
      "service": "open-archiver",
      "description": "Where archived mail is stored on the attached volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/data/open-archiver"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "open-archiver-2"
      }
    },
    "cli": "railway deploy --template open-archiver-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e73d41fc-7bb2-44f2-aa49-470ece78d45d",
            "serializedConfig": {
              "services": {
                "1c676ebe-473a-4bca-86a0-820a0090e264": {
                  "name": "open-archiver-meilisearch",
                  "source": {
                    "image": "getmeili/meilisearch:v1.38"
                  },
                  "variables": {
                    "MEILI_HTTP_ADDR": {
                      "isOptional": false,
                      "description": "Address Meilisearch listens on. [::]:7700 accepts both IPv4 and IPv6 connections on the private network. Do not change it.",
                      "defaultValue": "[::]:7700"
                    },
                    "MEILI_MASTER_KEY": {
                      "description": "Auto-generated password for the bundled service.",
                      "defaultValue": "{{MEILI_MASTER_KEY}}"
                    }
                  },
                  "volumeMounts": {
                    "1c676ebe-473a-4bca-86a0-820a0090e264": {
                      "mountPath": "/meili_data"
                    }
                  }
                },
                "64f1d029-6f58-48ff-98e1-3af1c96ac1f8": {
                  "name": "open-archiver-valkey",
                  "deploy": {
                    "startCommand": "valkey-server --requirepass $REDIS_PASSWORD"
                  },
                  "source": {
                    "image": "valkey/valkey:8-alpine"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "description": "Auto-generated password for the bundled service.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {}
                },
                "73185270-0b28-4b94-aff3-9e98117a92f2": {
                  "name": "open-archiver-db",
                  "source": {
                    "image": "postgres:17-alpine"
                  },
                  "variables": {
                    "LC_ALL": {
                      "description": "Keeps Postgres collation deterministic (C).",
                      "defaultValue": "C"
                    },
                    "PGDATA": {
                      "description": "Postgres data subdirectory on the volume (avoids initdb failing on lost+found).",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "description": "Name of the Postgres database Open Archiver uses.",
                      "defaultValue": "open_archive"
                    },
                    "POSTGRES_USER": {
                      "description": "Postgres user for the bundled open-archiver-db service.",
                      "defaultValue": "archiver"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Auto-generated password for the bundled service.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "73185270-0b28-4b94-aff3-9e98117a92f2": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "ee455878-82e7-495d-826d-e0a479eb4208": {
                  "name": "open-archiver",
                  "deploy": {
                    "healthcheckPath": "/api/v1/auth/status"
                  },
                  "source": {
                    "image": "logiclabshq/open-archiver:v0.6.0"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port the web UI listens on (3000).",
                      "defaultValue": "3000"
                    },
                    "ORIGIN": {
                      "description": "Public https URL of this instance; must match your domain (Railway domain by default).",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "APP_URL": {
                      "description": "Public https URL of this instance; must match your domain (Railway domain by default).",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_ENV": {
                      "description": "Runtime mode. production for real deployments.",
                      "defaultValue": "production"
                    },
                    "JWT_SECRET": {
                      "description": "Auto-generated secret that signs login tokens.",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "MEILI_HOST": {
                      "description": "Internal connection to the bundled Meilisearch service; do not change.",
                      "defaultValue": "http://${{open-archiver-meilisearch.RAILWAY_PRIVATE_DOMAIN}}:7700"
                    },
                    "REDIS_HOST": {
                      "description": "Internal connection to the bundled Valkey service; do not change.",
                      "defaultValue": "${{open-archiver-valkey.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PORT": {
                      "description": "Port of the bundled Valkey service (6379).",
                      "defaultValue": "6379"
                    },
                    "DATABASE_URL": {
                      "description": "Internal connection to the bundled Postgres service; do not change.",
                      "defaultValue": "postgresql://archiver:${{open-archiver-db.POSTGRES_PASSWORD}}@${{open-archiver-db.RAILWAY_PRIVATE_DOMAIN}}:5432/open_archive"
                    },
                    "PORT_BACKEND": {
                      "description": "Internal port of the API backend (4000). The web UI proxies to it.",
                      "defaultValue": "4000"
                    },
                    "STORAGE_TYPE": {
                      "description": "local (volume) or s3. Hobby volumes max 5 GB; use s3 for larger archives.",
                      "defaultValue": "local"
                    },
                    "PORT_FRONTEND": {
                      "description": "Web UI port (3000).",
                      "defaultValue": "3000"
                    },
                    "ENCRYPTION_KEY": {
                      "description": "Auto-generated 32-byte hex key protecting stored mailbox credentials. Back it up; do not change it.",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "JWT_EXPIRES_IN": {
                      "isOptional": false,
                      "description": "How long a sign-in session (JWT) stays valid, for example 7d. Required: the backend will not start without it.",
                      "defaultValue": "7d"
                    },
                    "REDIS_PASSWORD": {
                      "description": "Password of the bundled Valkey service, referenced from that service.",
                      "defaultValue": "${{open-archiver-valkey.REDIS_PASSWORD}}"
                    },
                    "SYNC_FREQUENCY": {
                      "description": "Cron expression for mailbox sync. Default every minute.",
                      "defaultValue": "* * * * *"
                    },
                    "BODY_SIZE_LIMIT": {
                      "description": "Max upload size for PST/mbox/eml imports, e.g. 100M or 1G.",
                      "defaultValue": "100M"
                    },
                    "ENABLE_DELETION": {
                      "description": "Allow deleting archived emails. Leave false to protect archive integrity.",
                      "defaultValue": "false"
                    },
                    "MEILI_MASTER_KEY": {
                      "description": "Master key of the bundled Meilisearch service, referenced from that service.",
                      "defaultValue": "${{open-archiver-meilisearch.MEILI_MASTER_KEY}}"
                    },
                    "REDIS_TLS_ENABLED": {
                      "description": "Whether to use TLS to Valkey. false for the bundled service on the private network.",
                      "defaultValue": "false"
                    },
                    "STORAGE_ENCRYPTION_KEY": {
                      "description": "Auto-generated 32-byte hex key encrypting archived mail on disk. Back it up; do not change it.",
                      "defaultValue": "{{STORAGE_ENCRYPTION_KEY}}"
                    },
                    "STORAGE_LOCAL_ROOT_PATH": {
                      "description": "Where archived mail is stored on the attached volume.",
                      "defaultValue": "/var/data/open-archiver"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "ee455878-82e7-495d-826d-e0a479eb4208": {
                      "mountPath": "/var/data/open-archiver"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "open-archiver",
      "method": "GET",
      "path": "/api/v1/auth/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-30T04:14:48.142Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-30T01:21:20.172Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_8bfd5c827d9a4beda16c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,SUCCESS,SUCCESS,SUCCESS"
      }
    ]
  }
}
