{
  "manifest_version": "1.0.0",
  "template": {
    "id": "05c8d1e2-ad2a-4073-ab8a-78c78c8047cb",
    "slug": "self-host-strapi",
    "name": "Strapi | Open-source Headless CMS with DB and Meilisearch",
    "description": "Self Host Strapi: REST & GraphQL APIs, full-text search, admin panel",
    "url": "https://railway.com/deploy/self-host-strapi",
    "upstream": {
      "image": "getmeili/meilisearch:v1.9.0"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Meilisearch",
      "source": {
        "image": "getmeili/meilisearch:v1.9.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/meili_data",
      "http": true
    },
    {
      "name": "Strapi",
      "source": {
        "repo": "https://github.com/railwayapp-templates/strapi"
      },
      "needs_volume": true,
      "volume_mount_path": "/public/uploads",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Directory storing Postgres data",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Internal hostname for Postgres",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Default Postgres server port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Username for Postgres login",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Default database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Password for Postgres authentication",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created during initialization",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Internal Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Default Postgres administrator user",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate validity duration",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated password for Postgres user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "External Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Graceful shutdown draining time",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "Meilisearch",
      "description": "HTTP API port for Meilisearch",
      "secret": false,
      "strategy": "default",
      "default": "3331"
    },
    {
      "key": "MEILI_ENV",
      "service": "Meilisearch",
      "description": "Run Meilisearch in production mode",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "MEILI_DB_PATH",
      "service": "Meilisearch",
      "description": "Path storing Meilisearch index data",
      "secret": false,
      "strategy": "default",
      "default": "/meili_data/data.ms"
    },
    {
      "key": "MEILI_HTTP_ADDR",
      "service": "Meilisearch",
      "description": "Network address Meilisearch binds to",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEILI_MASTER_KEY",
      "service": "Meilisearch",
      "description": "Master API key for Meilisearch",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "URL",
      "service": "Strapi",
      "description": "Public base URL of Strapi app",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HOST",
      "service": "Strapi",
      "description": "Listen on all IPv6 interfaces",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "PORT",
      "service": "Strapi",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "1337"
    },
    {
      "key": "BROWSER",
      "service": "Strapi",
      "description": "Disable automatic browser launch",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "APP_KEYS",
      "service": "Strapi",
      "description": "Keys used for session security",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "JWT_SECRET",
      "service": "Strapi",
      "description": "Secret for authentication tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "Strapi",
      "description": "Internal Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "API_TOKEN_SALT",
      "service": "Strapi",
      "description": "Salt used for API token generation",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "Strapi",
      "description": "Key for encrypting sensitive data",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ADMIN_JWT_SECRET",
      "service": "Strapi",
      "description": "JWT secret for admin authentication",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MEILISEARCH_HOST",
      "service": "Strapi",
      "description": "Internal Meilisearch endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Strapi",
      "description": "External Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TRANSFER_TOKEN_SALT",
      "service": "Strapi",
      "description": "Salt used for transfer tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MEILISEARCH_ADMIN_API_KEY",
      "service": "Strapi",
      "description": "Admin API key for Meilisearch",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STRAPI_TELEMETRY_DISABLED",
      "service": "Strapi",
      "description": "Disable Strapi telemetry reporting",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "STRAPI_DISABLE_UPDATE_NOTIFICATION",
      "service": "Strapi",
      "description": "Disable update notification checks",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "self-host-strapi"
      }
    },
    "cli": "railway deploy --template self-host-strapi",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "05c8d1e2-ad2a-4073-ab8a-78c78c8047cb",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "09e14185-4d5f-4e3b-a75c-2dddfc93c8df": {
                  "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:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Directory storing Postgres data",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal hostname for Postgres",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Default Postgres server port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Username for Postgres login",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Default database name",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password for Postgres authentication",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created during initialization",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal Postgres connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Default Postgres administrator user",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate validity duration",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for Postgres user",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "External Postgres connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Graceful shutdown draining time",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "09e14185-4d5f-4e3b-a75c-2dddfc93c8df": {
                      "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."
                  }
                },
                "191382ae-e8dd-4794-9686-27e493fb32ff": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/meilisearch.svg",
                  "name": "Meilisearch",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "getmeili/meilisearch:v1.9.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP API port for Meilisearch",
                      "defaultValue": "3331"
                    },
                    "MEILI_ENV": {
                      "isOptional": false,
                      "description": "Run Meilisearch in production mode",
                      "defaultValue": "production"
                    },
                    "MEILI_DB_PATH": {
                      "isOptional": false,
                      "description": "Path storing Meilisearch index data",
                      "defaultValue": "/meili_data/data.ms"
                    },
                    "MEILI_HTTP_ADDR": {
                      "isOptional": false,
                      "description": "Network address Meilisearch binds to",
                      "defaultValue": ":::${{PORT}}"
                    },
                    "MEILI_MASTER_KEY": {
                      "isOptional": false,
                      "description": "Master API key for Meilisearch",
                      "defaultValue": "{{MEILI_MASTER_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "191382ae-e8dd-4794-9686-27e493fb32ff": {
                      "mountPath": "/meili_data"
                    }
                  }
                },
                "e009046e-ef92-48ec-8554-783bd5cd30a7": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/strapi.svg",
                  "name": "Strapi",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/admin",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/railwayapp-templates/strapi",
                    "rootDirectory": null
                  },
                  "variables": {
                    "URL": {
                      "isOptional": false,
                      "description": "Public base URL of Strapi app",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "HOST": {
                      "isOptional": false,
                      "description": "Listen on all IPv6 interfaces",
                      "defaultValue": "::"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "1337"
                    },
                    "BROWSER": {
                      "isOptional": false,
                      "description": "Disable automatic browser launch",
                      "defaultValue": "false"
                    },
                    "APP_KEYS": {
                      "isOptional": false,
                      "description": "Keys used for session security",
                      "defaultValue": "{{APP_KEYS}}"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Secret for authentication tokens",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "API_TOKEN_SALT": {
                      "isOptional": false,
                      "description": "Salt used for API token generation",
                      "defaultValue": "{{API_TOKEN_SALT}}"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Key for encrypting sensitive data",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "ADMIN_JWT_SECRET": {
                      "isOptional": false,
                      "description": "JWT secret for admin authentication",
                      "defaultValue": "{{ADMIN_JWT_SECRET}}"
                    },
                    "MEILISEARCH_HOST": {
                      "isOptional": false,
                      "description": "Internal Meilisearch endpoint",
                      "defaultValue": "http://${{Meilisearch.RAILWAY_PRIVATE_DOMAIN}}:7700"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "External Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_PUBLIC_URL}}"
                    },
                    "TRANSFER_TOKEN_SALT": {
                      "isOptional": false,
                      "description": "Salt used for transfer tokens",
                      "defaultValue": "{{TRANSFER_TOKEN_SALT}}"
                    },
                    "MEILISEARCH_ADMIN_API_KEY": {
                      "isOptional": false,
                      "description": "Admin API key for Meilisearch",
                      "defaultValue": "${{Meilisearch.MEILI_MASTER_KEY}}"
                    },
                    "STRAPI_TELEMETRY_DISABLED": {
                      "isOptional": false,
                      "description": "Disable Strapi telemetry reporting",
                      "defaultValue": "true"
                    },
                    "STRAPI_DISABLE_UPDATE_NOTIFICATION": {
                      "isOptional": false,
                      "description": "Disable update notification checks",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "e009046e-ef92-48ec-8554-783bd5cd30a7": {
                      "mountPath": "/public/uploads"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Strapi",
      "method": "GET",
      "path": "/admin",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T18:07:06.978Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e73f298bd6bd4e6db75c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 224,
    "typical_build_seconds": 145,
    "typical_start_seconds": 20,
    "slowest_service": "Strapi"
  }
}
