{
  "manifest_version": "1.0.0",
  "template": {
    "id": "531c9bd9-44e2-4a18-963e-ed8c0f4833ab",
    "slug": "linkwarden-railway",
    "name": "Linkwarden",
    "description": "Self-hosted collaborative bookmark manager with full page preservation",
    "url": "https://railway.com/deploy/linkwarden-railway",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/linkwarden-railway"
    }
  },
  "services": [
    {
      "name": "meilisearch",
      "source": {
        "image": "getmeili/meilisearch:v1.12.8"
      },
      "needs_volume": true,
      "volume_mount_path": "/meili_data",
      "http": false
    },
    {
      "name": "linkwarden",
      "source": {
        "repo": "https://github.com/gridalpha/linkwarden-railway"
      },
      "needs_volume": false,
      "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
    },
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "linkwarden-worker",
      "source": {
        "repo": "https://github.com/gridalpha/linkwarden-railway"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "meilisearch",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "7700"
    },
    {
      "key": "MEILI_ENV",
      "service": "meilisearch",
      "description": "Disables the unauthenticated dev dashboard",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "MEILI_DB_PATH",
      "service": "meilisearch",
      "description": "Index location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/meili_data/data.ms"
    },
    {
      "key": "MEILI_DUMP_DIR",
      "service": "meilisearch",
      "description": "Dump output directory",
      "secret": false,
      "strategy": "default",
      "default": "/meili_data/dumps"
    },
    {
      "key": "MEILI_HTTP_ADDR",
      "service": "meilisearch",
      "description": "Bind address for the HTTP API",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:7700"
    },
    {
      "key": "MEILI_MASTER_KEY",
      "service": "meilisearch",
      "description": "API key required in production mode",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MEILI_NO_ANALYTICS",
      "service": "meilisearch",
      "description": "Disables anonymous telemetry",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MEILI_SNAPSHOT_DIR",
      "service": "meilisearch",
      "description": "Snapshot output directory",
      "secret": false,
      "strategy": "default",
      "default": "/meili_data/snapshots"
    },
    {
      "key": "MEILI_MAX_INDEXING_MEMORY",
      "service": "meilisearch",
      "description": "Caps indexing memory to container size",
      "secret": false,
      "strategy": "default",
      "default": "512 MiB"
    },
    {
      "key": "MEILI_MAX_INDEXING_THREADS",
      "service": "meilisearch",
      "description": "Caps indexing threads to CPU quota",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "PORT",
      "service": "linkwarden",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "ROLE",
      "service": "linkwarden",
      "description": "Runs the Next.js web application",
      "secret": false,
      "strategy": "default",
      "default": "web"
    },
    {
      "key": "BASE_URL",
      "service": "linkwarden",
      "description": "Public app URL used in email",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ADMIN_NAME",
      "service": "linkwarden",
      "description": "First administrator display name",
      "secret": false,
      "strategy": "default",
      "default": "Administrator"
    },
    {
      "key": "EMAIL_FROM",
      "service": "linkwarden",
      "description": "Sender address for outgoing mail",
      "secret": false,
      "strategy": "default",
      "default": "linkwarden@example.com"
    },
    {
      "key": "MEILI_HOST",
      "service": "linkwarden",
      "description": "Private search service URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SPACES_KEY",
      "service": "linkwarden",
      "description": "Object storage access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "linkwarden",
      "description": "First administrator email address",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "DATABASE_URL",
      "service": "linkwarden",
      "description": "PostgreSQL connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EMAIL_SERVER",
      "service": "linkwarden",
      "description": "SMTP connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "linkwarden",
      "description": "Auth base URL, suffix required",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "linkwarden",
      "description": "Caps Node heap to container size",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=1024"
    },
    {
      "key": "SPACES_REGION",
      "service": "linkwarden",
      "description": "Object storage region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SPACES_SECRET",
      "service": "linkwarden",
      "description": "Object storage secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "linkwarden",
      "description": "First administrator password, change after login",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ADMIN_USERNAME",
      "service": "linkwarden",
      "description": "First administrator login name",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "linkwarden",
      "description": "Signs sessions and preserved-file links",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SPACES_ENDPOINT",
      "service": "linkwarden",
      "description": "Object storage endpoint URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEILI_MASTER_KEY",
      "service": "linkwarden",
      "description": "Search service API key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PUBLIC_ADMIN",
      "service": "linkwarden",
      "description": "User id treated as administrator",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "SPACES_BUCKET_NAME",
      "service": "linkwarden",
      "description": "Bucket holding preserved files",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "linkwarden",
      "description": "Dockerfile location in the repo",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile"
    },
    {
      "key": "NEXT_PUBLIC_EMAIL_PROVIDER",
      "service": "linkwarden",
      "description": "Shows password reset in the UI",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NEXT_PUBLIC_CREDENTIALS_ENABLED",
      "service": "linkwarden",
      "description": "Enables username and password sign-in",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NEXT_PUBLIC_DISABLE_REGISTRATION",
      "service": "linkwarden",
      "description": "Disables public self-service signup",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Basic auth for the web inbox",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MP_DATABASE",
      "service": "mailpit",
      "description": "Message store on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/mailpit.db"
    },
    {
      "key": "MP_MAX_MESSAGES",
      "service": "mailpit",
      "description": "Messages retained before rotation",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "MP_UI_BIND_ADDR",
      "service": "mailpit",
      "description": "Web inbox bind address",
      "secret": false,
      "strategy": "default",
      "default": "[::]:8025"
    },
    {
      "key": "MP_SMTP_BIND_ADDR",
      "service": "mailpit",
      "description": "SMTP listener bind address",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1025"
    },
    {
      "key": "PORT",
      "service": "linkwarden-worker",
      "description": "Port for the worker health endpoint",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "ROLE",
      "service": "linkwarden-worker",
      "description": "Runs the archiver instead of the web app",
      "secret": false,
      "strategy": "default",
      "default": "worker"
    },
    {
      "key": "BASE_URL",
      "service": "linkwarden-worker",
      "description": "Public app URL used in email",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EMAIL_FROM",
      "service": "linkwarden-worker",
      "description": "Sender address for outgoing mail",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEILI_HOST",
      "service": "linkwarden-worker",
      "description": "Private search service URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SPACES_KEY",
      "service": "linkwarden-worker",
      "description": "Object storage access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "linkwarden-worker",
      "description": "PostgreSQL connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EMAIL_SERVER",
      "service": "linkwarden-worker",
      "description": "SMTP connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "linkwarden-worker",
      "description": "Caps Node heap to container size",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=1536"
    },
    {
      "key": "SPACES_REGION",
      "service": "linkwarden-worker",
      "description": "Object storage region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SPACES_SECRET",
      "service": "linkwarden-worker",
      "description": "Object storage secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BROWSER_TIMEOUT",
      "service": "linkwarden-worker",
      "description": "Minutes before abandoning a page load",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "SPACES_ENDPOINT",
      "service": "linkwarden-worker",
      "description": "Object storage endpoint URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEILI_MASTER_KEY",
      "service": "linkwarden-worker",
      "description": "Search service API key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ARCHIVE_TAKE_COUNT",
      "service": "linkwarden-worker",
      "description": "Links archived per worker pass",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "SPACES_BUCKET_NAME",
      "service": "linkwarden-worker",
      "description": "Bucket holding preserved files",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "linkwarden-worker",
      "description": "Dockerfile location in the repo",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "linkwarden-railway"
      }
    },
    "cli": "railway deploy --template linkwarden-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "531c9bd9-44e2-4a18-963e-ed8c0f4833ab",
            "serializedConfig": {
              "buckets": {
                "db669561-ea20-4a58-87dc-bd727da5035c": {
                  "name": "linkwarden-storage"
                }
              },
              "services": {
                "4a0b5ccd-47fd-4a58-87df-1db9fe374366": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/meilisearch.svg",
                  "name": "meilisearch",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "getmeili/meilisearch:v1.12.8"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "7700"
                    },
                    "MEILI_ENV": {
                      "isOptional": false,
                      "description": "Disables the unauthenticated dev dashboard",
                      "defaultValue": "production"
                    },
                    "MEILI_DB_PATH": {
                      "isOptional": false,
                      "description": "Index location on the volume",
                      "defaultValue": "/meili_data/data.ms"
                    },
                    "MEILI_DUMP_DIR": {
                      "isOptional": false,
                      "description": "Dump output directory",
                      "defaultValue": "/meili_data/dumps"
                    },
                    "MEILI_HTTP_ADDR": {
                      "isOptional": false,
                      "description": "Bind address for the HTTP API",
                      "defaultValue": "0.0.0.0:7700"
                    },
                    "MEILI_MASTER_KEY": {
                      "isOptional": false,
                      "description": "API key required in production mode",
                      "defaultValue": "{{MEILI_MASTER_KEY}}"
                    },
                    "MEILI_NO_ANALYTICS": {
                      "isOptional": false,
                      "description": "Disables anonymous telemetry",
                      "defaultValue": "true"
                    },
                    "MEILI_SNAPSHOT_DIR": {
                      "isOptional": false,
                      "description": "Snapshot output directory",
                      "defaultValue": "/meili_data/snapshots"
                    },
                    "MEILI_MAX_INDEXING_MEMORY": {
                      "isOptional": false,
                      "description": "Caps indexing memory to container size",
                      "defaultValue": "512 MiB"
                    },
                    "MEILI_MAX_INDEXING_THREADS": {
                      "isOptional": false,
                      "description": "Caps indexing threads to CPU quota",
                      "defaultValue": "2"
                    }
                  },
                  "volumeMounts": {
                    "4a0b5ccd-47fd-4a58-87df-1db9fe374366": {
                      "mountPath": "/meili_data"
                    }
                  }
                },
                "4f46512d-c010-46c0-969d-652a35650c43": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/linkwarden.png",
                  "name": "linkwarden",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/config",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/linkwarden-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "3000"
                    },
                    "ROLE": {
                      "isOptional": false,
                      "description": "Runs the Next.js web application",
                      "defaultValue": "web"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Public app URL used in email",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ADMIN_NAME": {
                      "isOptional": false,
                      "description": "First administrator display name",
                      "defaultValue": "Administrator"
                    },
                    "EMAIL_FROM": {
                      "isOptional": false,
                      "description": "Sender address for outgoing mail",
                      "defaultValue": "linkwarden@example.com"
                    },
                    "MEILI_HOST": {
                      "isOptional": false,
                      "description": "Private search service URL",
                      "defaultValue": "http://${{meilisearch.RAILWAY_PRIVATE_DOMAIN}}:7700"
                    },
                    "SPACES_KEY": {
                      "isOptional": false,
                      "description": "Object storage access key",
                      "defaultValue": "${{linkwarden-storage.ACCESS_KEY_ID}}"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "First administrator email address",
                      "defaultValue": "admin@example.com"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "EMAIL_SERVER": {
                      "isOptional": false,
                      "description": "SMTP connection URL",
                      "defaultValue": "smtp://${{mailpit.RAILWAY_PRIVATE_DOMAIN}}:1025"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Auth base URL, suffix required",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/api/v1/auth"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Caps Node heap to container size",
                      "defaultValue": "--max-old-space-size=1024"
                    },
                    "SPACES_REGION": {
                      "isOptional": false,
                      "description": "Object storage region",
                      "defaultValue": "${{linkwarden-storage.REGION}}"
                    },
                    "SPACES_SECRET": {
                      "isOptional": false,
                      "description": "Object storage secret key",
                      "defaultValue": "${{linkwarden-storage.SECRET_ACCESS_KEY}}"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First administrator password, change after login",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "First administrator login name",
                      "defaultValue": "admin"
                    },
                    "NEXTAUTH_SECRET": {
                      "isOptional": false,
                      "description": "Signs sessions and preserved-file links",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "SPACES_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint URL",
                      "defaultValue": "${{linkwarden-storage.ENDPOINT}}"
                    },
                    "MEILI_MASTER_KEY": {
                      "isOptional": false,
                      "description": "Search service API key",
                      "defaultValue": "${{meilisearch.MEILI_MASTER_KEY}}"
                    },
                    "NEXT_PUBLIC_ADMIN": {
                      "isOptional": false,
                      "description": "User id treated as administrator",
                      "defaultValue": "1"
                    },
                    "SPACES_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Bucket holding preserved files",
                      "defaultValue": "${{linkwarden-storage.BUCKET}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile location in the repo",
                      "defaultValue": "Dockerfile"
                    },
                    "NEXT_PUBLIC_EMAIL_PROVIDER": {
                      "isOptional": false,
                      "description": "Shows password reset in the UI",
                      "defaultValue": "true"
                    },
                    "NEXT_PUBLIC_CREDENTIALS_ENABLED": {
                      "isOptional": false,
                      "description": "Enables username and password sign-in",
                      "defaultValue": "true"
                    },
                    "NEXT_PUBLIC_DISABLE_REGISTRATION": {
                      "isOptional": false,
                      "description": "Disables public self-service signup",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "624f6142-3a60-4142-8430-0c356a963bbc": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "624f6142-3a60-4142-8430-0c356a963bbc": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "6f3dc6ab-ded8-4bc4-8821-791967449735": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Basic auth for the web inbox",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": false,
                      "description": "Messages retained before rotation",
                      "defaultValue": "5000"
                    },
                    "MP_UI_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Web inbox bind address",
                      "defaultValue": "[::]:8025"
                    },
                    "MP_SMTP_BIND_ADDR": {
                      "isOptional": false,
                      "description": "SMTP listener bind address",
                      "defaultValue": "[::]:1025"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "6f3dc6ab-ded8-4bc4-8821-791967449735": {
                      "mountPath": "/data"
                    }
                  }
                },
                "c3e2f459-dd68-4739-8471-550bbe0c1008": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/linkwarden.png",
                  "name": "linkwarden-worker",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/linkwarden-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port for the worker health endpoint",
                      "defaultValue": "3000"
                    },
                    "ROLE": {
                      "isOptional": false,
                      "description": "Runs the archiver instead of the web app",
                      "defaultValue": "worker"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Public app URL used in email",
                      "defaultValue": "${{linkwarden.BASE_URL}}"
                    },
                    "EMAIL_FROM": {
                      "isOptional": false,
                      "description": "Sender address for outgoing mail",
                      "defaultValue": "${{linkwarden.EMAIL_FROM}}"
                    },
                    "MEILI_HOST": {
                      "isOptional": false,
                      "description": "Private search service URL",
                      "defaultValue": "http://${{meilisearch.RAILWAY_PRIVATE_DOMAIN}}:7700"
                    },
                    "SPACES_KEY": {
                      "isOptional": false,
                      "description": "Object storage access key",
                      "defaultValue": "${{linkwarden-storage.ACCESS_KEY_ID}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "EMAIL_SERVER": {
                      "isOptional": false,
                      "description": "SMTP connection URL",
                      "defaultValue": "${{linkwarden.EMAIL_SERVER}}"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Caps Node heap to container size",
                      "defaultValue": "--max-old-space-size=1536"
                    },
                    "SPACES_REGION": {
                      "isOptional": false,
                      "description": "Object storage region",
                      "defaultValue": "${{linkwarden-storage.REGION}}"
                    },
                    "SPACES_SECRET": {
                      "isOptional": false,
                      "description": "Object storage secret key",
                      "defaultValue": "${{linkwarden-storage.SECRET_ACCESS_KEY}}"
                    },
                    "BROWSER_TIMEOUT": {
                      "isOptional": false,
                      "description": "Minutes before abandoning a page load",
                      "defaultValue": "5"
                    },
                    "SPACES_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint URL",
                      "defaultValue": "${{linkwarden-storage.ENDPOINT}}"
                    },
                    "MEILI_MASTER_KEY": {
                      "isOptional": false,
                      "description": "Search service API key",
                      "defaultValue": "${{meilisearch.MEILI_MASTER_KEY}}"
                    },
                    "ARCHIVE_TAKE_COUNT": {
                      "isOptional": false,
                      "description": "Links archived per worker pass",
                      "defaultValue": "5"
                    },
                    "SPACES_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Bucket holding preserved files",
                      "defaultValue": "${{linkwarden-storage.BUCKET}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile location in the repo",
                      "defaultValue": "Dockerfile"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "linkwarden",
      "method": "GET",
      "path": "/api/v1/config",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T17:13:14.172Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_3ed1c1dccbcb4a0bbb89",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 198,
    "typical_build_seconds": 71,
    "typical_start_seconds": 10,
    "slowest_service": "linkwarden-worker"
  }
}
