{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1518e739-cb25-4c84-b851-f3a5818c1123",
    "slug": "flagsmith-server",
    "name": "Flagsmith",
    "description": "Feature flag and remote config platform with SDKs for 20 languages",
    "url": "https://railway.com/deploy/flagsmith-server",
    "upstream": {
      "image": "flagsmith/flagsmith:latest"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "flagsmith",
      "source": {
        "image": "flagsmith/flagsmith:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "flagsmith-task-processor",
      "source": {
        "image": "flagsmith/flagsmith:latest"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "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, read by the server",
      "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": "flagsmith",
      "description": "Health-check port; app binds 8000",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "flagsmith",
      "description": "Login identity of the first superuser",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "ENVIRONMENT",
      "service": "flagsmith",
      "description": "Runtime environment label",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "DATABASE_URL",
      "service": "flagsmith",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EMAIL_BACKEND",
      "service": "flagsmith",
      "description": "Log mail until SMTP is configured",
      "secret": false,
      "strategy": "default",
      "default": "django.core.mail.backends.console.EmailBackend"
    },
    {
      "key": "TASK_RUN_METHOD",
      "service": "flagsmith",
      "description": "Send async work to the worker service",
      "secret": false,
      "strategy": "default",
      "default": "TASK_PROCESSOR"
    },
    {
      "key": "FLAGSMITH_DOMAIN",
      "service": "flagsmith",
      "description": "Host used in invite and reset links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "GUNICORN_TIMEOUT",
      "service": "flagsmith",
      "description": "Worker timeout in seconds",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "DJANGO_SECRET_KEY",
      "service": "flagsmith",
      "description": "Django signing key, must stay stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DJANGO_ALLOWED_HOSTS",
      "service": "flagsmith",
      "description": "Railway's edge routes strictly by Host",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "ENVIRONMENT_CACHE_BACKEND",
      "service": "flagsmith",
      "description": "Shared environment-object cache",
      "secret": false,
      "strategy": "default",
      "default": "django_redis.cache.RedisCache"
    },
    {
      "key": "ENVIRONMENT_CACHE_LOCATION",
      "service": "flagsmith",
      "description": "Redis database 0",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "USE_POSTGRES_FOR_ANALYTICS",
      "service": "flagsmith",
      "description": "Store analytics in Postgres, not InfluxDB",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DJANGO_CSRF_TRUSTED_ORIGINS",
      "service": "flagsmith",
      "description": "Trusted origin for dashboard POSTs",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "USER_THROTTLE_CACHE_BACKEND",
      "service": "flagsmith",
      "description": "Shared rate-limit buckets",
      "secret": false,
      "strategy": "default",
      "default": "django_redis.cache.RedisCache"
    },
    {
      "key": "USER_THROTTLE_CACHE_LOCATION",
      "service": "flagsmith",
      "description": "Redis database 2",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ALLOW_ADMIN_INITIATION_VIA_CLI",
      "service": "flagsmith",
      "description": "Seed superuser, organisation and project at boot",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ALLOW_ADMIN_INITIATION_VIA_URL",
      "service": "flagsmith",
      "description": "Close the anonymous admin-creation endpoint",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "flagsmith",
      "description": "Window for first-boot migrations",
      "secret": false,
      "strategy": "default",
      "default": "900"
    },
    {
      "key": "ALLOW_REGISTRATION_WITHOUT_INVITE",
      "service": "flagsmith",
      "description": "Close public sign-up",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CACHE_ENVIRONMENT_DOCUMENT_BACKEND",
      "service": "flagsmith",
      "description": "Shared environment-document cache",
      "secret": false,
      "strategy": "default",
      "default": "django_redis.cache.RedisCache"
    },
    {
      "key": "CACHE_ENVIRONMENT_DOCUMENT_SECONDS",
      "service": "flagsmith",
      "description": "Environment-document cache TTL",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "CACHE_ENVIRONMENT_DOCUMENT_LOCATION",
      "service": "flagsmith",
      "description": "Redis database 1",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "flagsmith-task-processor",
      "description": "Health-check port; app binds 8000",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "ENVIRONMENT",
      "service": "flagsmith-task-processor",
      "description": "Runtime environment label",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "DATABASE_URL",
      "service": "flagsmith-task-processor",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EMAIL_BACKEND",
      "service": "flagsmith-task-processor",
      "description": "Log mail until SMTP is configured",
      "secret": false,
      "strategy": "default",
      "default": "django.core.mail.backends.console.EmailBackend"
    },
    {
      "key": "TASK_RUN_METHOD",
      "service": "flagsmith-task-processor",
      "description": "Marks this process as the worker tier",
      "secret": false,
      "strategy": "default",
      "default": "TASK_PROCESSOR"
    },
    {
      "key": "FLAGSMITH_DOMAIN",
      "service": "flagsmith-task-processor",
      "description": "Host used in mailed links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DJANGO_SECRET_KEY",
      "service": "flagsmith-task-processor",
      "description": "Same signing key as the API",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DJANGO_ALLOWED_HOSTS",
      "service": "flagsmith-task-processor",
      "description": "Health prober sends its own Host",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "ENVIRONMENT_CACHE_BACKEND",
      "service": "flagsmith-task-processor",
      "description": "Shared environment-object cache",
      "secret": false,
      "strategy": "default",
      "default": "django_redis.cache.RedisCache"
    },
    {
      "key": "ENVIRONMENT_CACHE_LOCATION",
      "service": "flagsmith-task-processor",
      "description": "Redis database 0",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "USE_POSTGRES_FOR_ANALYTICS",
      "service": "flagsmith-task-processor",
      "description": "Store analytics in Postgres, not InfluxDB",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "flagsmith-task-processor",
      "description": "Window for waiting on migrations",
      "secret": false,
      "strategy": "default",
      "default": "900"
    },
    {
      "key": "CACHE_ENVIRONMENT_DOCUMENT_BACKEND",
      "service": "flagsmith-task-processor",
      "description": "Shared environment-document cache",
      "secret": false,
      "strategy": "default",
      "default": "django_redis.cache.RedisCache"
    },
    {
      "key": "CACHE_ENVIRONMENT_DOCUMENT_SECONDS",
      "service": "flagsmith-task-processor",
      "description": "Environment-document cache TTL",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "CACHE_ENVIRONMENT_DOCUMENT_LOCATION",
      "service": "flagsmith-task-processor",
      "description": "Redis database 1",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "flagsmith-server"
      }
    },
    "cli": "railway deploy --template flagsmith-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1518e739-cb25-4c84-b851-f3a5818c1123",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "26c2b50d-f1f0-46ed-bed6-ae26f0874391": {
                  "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: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, read by the server",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "26c2b50d-f1f0-46ed-bed6-ae26f0874391": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "44d914e2-7175-4bae-b967-f4cd15bc8bd4": {
                  "icon": "https://raw.githubusercontent.com/Flagsmith/flagsmith/v2.271.1/docs/static/img/logo.svg",
                  "name": "flagsmith",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health/readiness/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "flagsmith/flagsmith:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Health-check port; app binds 8000",
                      "defaultValue": "8000"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Login identity of the first superuser",
                      "defaultValue": "admin@example.com"
                    },
                    "ENVIRONMENT": {
                      "isOptional": false,
                      "description": "Runtime environment label",
                      "defaultValue": "production"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "EMAIL_BACKEND": {
                      "isOptional": true,
                      "description": "Log mail until SMTP is configured",
                      "defaultValue": "django.core.mail.backends.console.EmailBackend"
                    },
                    "TASK_RUN_METHOD": {
                      "isOptional": false,
                      "description": "Send async work to the worker service",
                      "defaultValue": "TASK_PROCESSOR"
                    },
                    "FLAGSMITH_DOMAIN": {
                      "isOptional": false,
                      "description": "Host used in invite and reset links",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "GUNICORN_TIMEOUT": {
                      "isOptional": true,
                      "description": "Worker timeout in seconds",
                      "defaultValue": "300"
                    },
                    "DJANGO_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Django signing key, must stay stable",
                      "defaultValue": "{{DJANGO_SECRET_KEY}}"
                    },
                    "DJANGO_ALLOWED_HOSTS": {
                      "isOptional": false,
                      "description": "Railway's edge routes strictly by Host",
                      "defaultValue": "*"
                    },
                    "ENVIRONMENT_CACHE_BACKEND": {
                      "isOptional": false,
                      "description": "Shared environment-object cache",
                      "defaultValue": "django_redis.cache.RedisCache"
                    },
                    "ENVIRONMENT_CACHE_LOCATION": {
                      "isOptional": false,
                      "description": "Redis database 0",
                      "defaultValue": "${{Redis.REDIS_URL}}/0"
                    },
                    "USE_POSTGRES_FOR_ANALYTICS": {
                      "isOptional": false,
                      "description": "Store analytics in Postgres, not InfluxDB",
                      "defaultValue": "true"
                    },
                    "DJANGO_CSRF_TRUSTED_ORIGINS": {
                      "isOptional": true,
                      "description": "Trusted origin for dashboard POSTs",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "USER_THROTTLE_CACHE_BACKEND": {
                      "isOptional": false,
                      "description": "Shared rate-limit buckets",
                      "defaultValue": "django_redis.cache.RedisCache"
                    },
                    "USER_THROTTLE_CACHE_LOCATION": {
                      "isOptional": false,
                      "description": "Redis database 2",
                      "defaultValue": "${{Redis.REDIS_URL}}/2"
                    },
                    "ALLOW_ADMIN_INITIATION_VIA_CLI": {
                      "isOptional": false,
                      "description": "Seed superuser, organisation and project at boot",
                      "defaultValue": "true"
                    },
                    "ALLOW_ADMIN_INITIATION_VIA_URL": {
                      "isOptional": false,
                      "description": "Close the anonymous admin-creation endpoint",
                      "defaultValue": "false"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": true,
                      "description": "Window for first-boot migrations",
                      "defaultValue": "900"
                    },
                    "ALLOW_REGISTRATION_WITHOUT_INVITE": {
                      "isOptional": true,
                      "description": "Close public sign-up",
                      "defaultValue": "false"
                    },
                    "CACHE_ENVIRONMENT_DOCUMENT_BACKEND": {
                      "isOptional": false,
                      "description": "Shared environment-document cache",
                      "defaultValue": "django_redis.cache.RedisCache"
                    },
                    "CACHE_ENVIRONMENT_DOCUMENT_SECONDS": {
                      "isOptional": true,
                      "description": "Environment-document cache TTL",
                      "defaultValue": "60"
                    },
                    "CACHE_ENVIRONMENT_DOCUMENT_LOCATION": {
                      "isOptional": false,
                      "description": "Redis database 1",
                      "defaultValue": "${{Redis.REDIS_URL}}/1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  }
                },
                "cbb1f5f2-bbfb-44b9-b3c6-13f7104e12d2": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "cbb1f5f2-bbfb-44b9-b3c6-13f7104e12d2": {
                      "mountPath": "/data"
                    }
                  }
                },
                "fb13469a-5b5c-46f4-a874-f90f82e12786": {
                  "icon": "https://raw.githubusercontent.com/Flagsmith/flagsmith/v2.271.1/docs/static/img/logo.svg",
                  "name": "flagsmith-task-processor",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'flagsmith waitfordb --migrations --waitfor 900 && exec flagsmith start task-processor'",
                    "healthcheckPath": "/health/readiness/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "flagsmith/flagsmith:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Health-check port; app binds 8000",
                      "defaultValue": "8000"
                    },
                    "ENVIRONMENT": {
                      "isOptional": false,
                      "description": "Runtime environment label",
                      "defaultValue": "production"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "EMAIL_BACKEND": {
                      "isOptional": true,
                      "description": "Log mail until SMTP is configured",
                      "defaultValue": "django.core.mail.backends.console.EmailBackend"
                    },
                    "TASK_RUN_METHOD": {
                      "isOptional": false,
                      "description": "Marks this process as the worker tier",
                      "defaultValue": "TASK_PROCESSOR"
                    },
                    "FLAGSMITH_DOMAIN": {
                      "isOptional": false,
                      "description": "Host used in mailed links",
                      "defaultValue": "${{flagsmith.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DJANGO_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Same signing key as the API",
                      "defaultValue": "${{flagsmith.DJANGO_SECRET_KEY}}"
                    },
                    "DJANGO_ALLOWED_HOSTS": {
                      "isOptional": false,
                      "description": "Health prober sends its own Host",
                      "defaultValue": "*"
                    },
                    "ENVIRONMENT_CACHE_BACKEND": {
                      "isOptional": false,
                      "description": "Shared environment-object cache",
                      "defaultValue": "django_redis.cache.RedisCache"
                    },
                    "ENVIRONMENT_CACHE_LOCATION": {
                      "isOptional": false,
                      "description": "Redis database 0",
                      "defaultValue": "${{Redis.REDIS_URL}}/0"
                    },
                    "USE_POSTGRES_FOR_ANALYTICS": {
                      "isOptional": false,
                      "description": "Store analytics in Postgres, not InfluxDB",
                      "defaultValue": "true"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": true,
                      "description": "Window for waiting on migrations",
                      "defaultValue": "900"
                    },
                    "CACHE_ENVIRONMENT_DOCUMENT_BACKEND": {
                      "isOptional": false,
                      "description": "Shared environment-document cache",
                      "defaultValue": "django_redis.cache.RedisCache"
                    },
                    "CACHE_ENVIRONMENT_DOCUMENT_SECONDS": {
                      "isOptional": true,
                      "description": "Environment-document cache TTL",
                      "defaultValue": "60"
                    },
                    "CACHE_ENVIRONMENT_DOCUMENT_LOCATION": {
                      "isOptional": false,
                      "description": "Redis database 1",
                      "defaultValue": "${{Redis.REDIS_URL}}/1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "flagsmith",
      "method": "GET",
      "path": "/health/readiness/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-15T10:14:39.124Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-15T06:56:03.175Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c1adc5c55d00497590d0",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 100,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "flagsmith-task-processor"
  }
}
