{
  "manifest_version": "1.0.0",
  "template": {
    "id": "89b8b946-0a27-417f-b100-4131b3e6c2d0",
    "slug": "superset-apache",
    "name": "Superset [Updated Sep '26]",
    "description": "Superset [Sep '26] (Self-Hosted Tableau/Looker Alternative)",
    "url": "https://railway.com/deploy/superset-apache",
    "upstream": {
      "image": "apache/superset:latest"
    }
  },
  "services": [
    {
      "name": "superset-beat",
      "source": {
        "image": "apache/superset:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "superset",
      "source": {
        "image": "apache/superset:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "superset-worker",
      "source": {
        "image": "apache/superset:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "DEV_MODE",
      "service": "superset-beat",
      "description": "Disables the dev-mode editable install.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "REDIS_URL",
      "service": "superset-beat",
      "description": "Celery broker + result backend + cache URL, referenced inside the decoded config.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PYTHONPATH",
      "service": "superset-beat",
      "description": "Where the decoded superset_config.py gets placed and picked up.",
      "secret": false,
      "strategy": "default",
      "default": "/app/pythonpath"
    },
    {
      "key": "DATABASE_URL",
      "service": "superset-beat",
      "description": "Metadata DB connection string.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPERSET_ENV",
      "service": "superset-beat",
      "description": "Production mode flag.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "SUPERSET_PORT",
      "service": "superset-beat",
      "description": "Not used by the worker process — no HTTP server here — kept consistent with web/beat.",
      "secret": false,
      "strategy": "default",
      "default": "8088"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "superset-beat",
      "description": "Matches the web service's admin password — not independently generated.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "superset-beat",
      "description": "Runs the container as root — required for the runtime psycopg2-binary install in the start command to have write access.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "DATABASE_DIALECT",
      "service": "superset-beat",
      "description": "Triggers the psycopg2* install path — see §3 for why worker/beat needed an additional explicit fix beyond what this variable alone triggers.",
      "secret": false,
      "strategy": "default",
      "default": "postgresql"
    },
    {
      "key": "SUPERSET_CONFIG_B64",
      "service": "superset-beat",
      "description": "Same base64-encoded config as web — referenced, not duplicated, so one edit to the web service propagates everywhere.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPERSET_SECRET_KEY",
      "service": "superset-beat",
      "description": "Matches the web service's Flask session key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPERSET_LOAD_EXAMPLES",
      "service": "superset-beat",
      "description": "Skip loading example dashboards on init (not used by worker itself, kept consistent with web/beat).",
      "secret": false,
      "strategy": "default",
      "default": "no"
    },
    {
      "key": "REDISHOST",
      "service": "redis",
      "description": "Internal Redis service hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "redis",
      "description": "Redis server listening port.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "redis",
      "description": "Redis default authentication user (plain --requirepass, not ACLs).",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "redis",
      "description": "Internal Redis connection string — used as the Celery broker/result backend AND the Superset cache backend (4 separate logical DB indices, see §3's decoded config).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "redis",
      "description": "Same password under Railway's conventional Redis variable naming.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Auth password Redis is started with (--requirepass). Auto-generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DEV_MODE",
      "service": "superset",
      "description": "Metadata DB connection string.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "REDIS_URL",
      "service": "superset",
      "description": "Redis broker + cache URL, referenced inside the decoded config.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PYTHONPATH",
      "service": "superset",
      "description": "Where the decoded superset_config.py gets placed and picked up.",
      "secret": false,
      "strategy": "default",
      "default": "/app/pythonpath"
    },
    {
      "key": "DATABASE_URL",
      "service": "superset",
      "description": "Metadata DB connection string.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPERSET_ENV",
      "service": "superset",
      "description": "Production mode flag.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "SUPERSET_PORT",
      "service": "superset",
      "description": "Internal gunicorn port — also what the service's public domain should target.",
      "secret": false,
      "strategy": "default",
      "default": "8088"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "superset",
      "description": "Bootstrap admin password. Username is always admin. Save it — it's how you log in after deploying.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "superset",
      "description": "Runs the container as root — required for the runtime pip/uv pip install steps in the start commands to have write access.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "DATABASE_DIALECT",
      "service": "superset",
      "description": "Triggers psycopg2 install for the web process specifically (see §3 for why worker/beat needed a separate fix).",
      "secret": false,
      "strategy": "default",
      "default": "postgresql"
    },
    {
      "key": "SUPERSET_CONFIG_B64",
      "service": "superset",
      "description": "Base64-encoded superset_config.py — wires DATABASE_URL/REDIS_URL into Superset's actual config format, sets Celery, cache, feature flags, and cookie security settings.",
      "secret": false,
      "strategy": "default",
      "default": "superset"
    },
    {
      "key": "SUPERSET_SECRET_KEY",
      "service": "superset",
      "description": "Flask session signing key. Auto-generate — do not reuse across deployments.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SUPERSET_LOAD_EXAMPLES",
      "service": "superset",
      "description": "Skip loading example dashboards on init.",
      "secret": false,
      "strategy": "default",
      "default": "no"
    },
    {
      "key": "DEV_MODE",
      "service": "superset-worker",
      "description": "Disables the dev-mode editable install.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "REDIS_URL",
      "service": "superset-worker",
      "description": "Celery broker + result backend + cache URL, referenced inside the decoded config.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PYTHONPATH",
      "service": "superset-worker",
      "description": "Where the decoded superset_config.py gets placed and picked up.",
      "secret": false,
      "strategy": "default",
      "default": "/app/pythonpath"
    },
    {
      "key": "DATABASE_URL",
      "service": "superset-worker",
      "description": "Metadata DB connection string.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPERSET_ENV",
      "service": "superset-worker",
      "description": "Production mode flag.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "SUPERSET_PORT",
      "service": "superset-worker",
      "description": "Not used by the worker process — no HTTP server here — kept consistent with web/beat.",
      "secret": false,
      "strategy": "default",
      "default": "8088"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "superset-worker",
      "description": "Matches the web service's admin password — not independently generated.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "superset-worker",
      "description": "Runs the container as root — required for the runtime psycopg2-binary install in the start command to have write access.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "DATABASE_DIALECT",
      "service": "superset-worker",
      "description": "Triggers the psycopg2* install path — see §3 for why worker/beat needed an additional explicit fix beyond what this variable alone triggers.",
      "secret": false,
      "strategy": "default",
      "default": "postgresql"
    },
    {
      "key": "SUPERSET_CONFIG_B64",
      "service": "superset-worker",
      "description": "Same base64-encoded config as web — referenced, not duplicated, so one edit to the web service propagates everywhere.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPERSET_SECRET_KEY",
      "service": "superset-worker",
      "description": "Matches the web service's Flask session key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPERSET_LOAD_EXAMPLES",
      "service": "superset-worker",
      "description": "Skip loading example dashboards on init (not used by worker itself, kept consistent with web/beat).",
      "secret": false,
      "strategy": "default",
      "default": "no"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Data storage directory — a subdirectory of the mount, not the mount root.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "postgres",
      "description": "Internal Postgres host address.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "postgres",
      "description": "Postgres server listening port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "postgres",
      "description": "Default Postgres username, exposed under the conventional PG* naming.",
      "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 the Postgres user.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Initial database created on startup.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "postgres",
      "description": "Internal Postgres connection string — this is what all 3 Superset services reference for their metadata DB.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Default Postgres superuser name.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "postgres",
      "description": "Self-signed SSL certificate validity, specific to the postgres-ssl image this template uses instead of raw postgres:*.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Postgres database user password. Auto-generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "postgres",
      "description": "Graceful shutdown draining duration before the old instance is killed on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "superset-apache"
      }
    },
    "cli": "railway deploy --template superset-apache",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "89b8b946-0a27-417f-b100-4131b3e6c2d0",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "90ed0325-0ba1-4166-8630-c8f22063ff70": {
                  "icon": "https://raw.githubusercontent.com/ju-li/apache-superset-railway/main/logo.png",
                  "name": "superset-beat",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"mkdir -p /app/pythonpath && echo \\\"$SUPERSET_CONFIG_B64\\\" | base64 -d > /app/pythonpath/superset_config.py && (command -v uv >/dev/null 2>&1 && uv pip install --no-cache-dir psycopg2-binary || pip install --no-cache-dir psycopg2-binary) && rm -f /tmp/celerybeat.pid && /app/docker/docker-bootstrap.sh beat\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "apache/superset:latest"
                  },
                  "variables": {
                    "DEV_MODE": {
                      "isOptional": false,
                      "description": "Disables the dev-mode editable install.",
                      "defaultValue": "false"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Celery broker + result backend + cache URL, referenced inside the decoded config.",
                      "defaultValue": "${{redis.REDIS_URL}}"
                    },
                    "PYTHONPATH": {
                      "isOptional": false,
                      "description": "Where the decoded superset_config.py gets placed and picked up.",
                      "defaultValue": "/app/pythonpath"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Metadata DB connection string.",
                      "defaultValue": "${{postgres.DATABASE_URL}}"
                    },
                    "SUPERSET_ENV": {
                      "isOptional": false,
                      "description": "Production mode flag.",
                      "defaultValue": "production"
                    },
                    "SUPERSET_PORT": {
                      "isOptional": false,
                      "description": "Not used by the worker process — no HTTP server here — kept consistent with web/beat.",
                      "defaultValue": "8088"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Matches the web service's admin password — not independently generated.",
                      "defaultValue": "${{superset.ADMIN_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Runs the container as root — required for the runtime psycopg2-binary install in the start command to have write access.",
                      "defaultValue": "0"
                    },
                    "DATABASE_DIALECT": {
                      "isOptional": false,
                      "description": "Triggers the psycopg2* install path — see §3 for why worker/beat needed an additional explicit fix beyond what this variable alone triggers.",
                      "defaultValue": "postgresql"
                    },
                    "SUPERSET_CONFIG_B64": {
                      "isOptional": false,
                      "description": "Same base64-encoded config as web — referenced, not duplicated, so one edit to the web service propagates everywhere.",
                      "defaultValue": "${{superset.SUPERSET_CONFIG_B64}}"
                    },
                    "SUPERSET_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Matches the web service's Flask session key.",
                      "defaultValue": "${{superset.SUPERSET_SECRET_KEY}}"
                    },
                    "SUPERSET_LOAD_EXAMPLES": {
                      "isOptional": false,
                      "description": "Skip loading example dashboards on init (not used by worker itself, kept consistent with web/beat).",
                      "defaultValue": "no"
                    }
                  }
                },
                "a44f87ba-495c-4966-949d-3882ae91288b": {
                  "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.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Internal Redis service hostname.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Redis server listening port.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Redis default authentication user (plain --requirepass, not ACLs).",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Internal Redis connection string — used as the Celery broker/result backend AND the Superset cache backend (4 separate logical DB indices, see §3's decoded config).",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Same password under Railway's conventional Redis variable naming.",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password Redis is started with (--requirepass). Auto-generated.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "a44f87ba-495c-4966-949d-3882ae91288b": {
                      "mountPath": "/data"
                    }
                  }
                },
                "b4de9088-2cad-4e31-80c8-d7f1f34ae137": {
                  "icon": "https://raw.githubusercontent.com/ju-li/apache-superset-railway/main/logo.png",
                  "name": "superset",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"mkdir -p /app/pythonpath && echo \\\"$SUPERSET_CONFIG_B64\\\" | base64 -d > /app/pythonpath/superset_config.py && /app/docker/docker-init.sh && /app/docker/docker-bootstrap.sh app-gunicorn\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "apache/superset:latest"
                  },
                  "variables": {
                    "DEV_MODE": {
                      "isOptional": false,
                      "description": "Metadata DB connection string.",
                      "defaultValue": "false"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis broker + cache URL, referenced inside the decoded config.",
                      "defaultValue": "${{redis.REDIS_URL}}"
                    },
                    "PYTHONPATH": {
                      "isOptional": false,
                      "description": "Where the decoded superset_config.py gets placed and picked up.",
                      "defaultValue": "/app/pythonpath"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Metadata DB connection string.",
                      "defaultValue": "${{postgres.DATABASE_URL}}"
                    },
                    "SUPERSET_ENV": {
                      "isOptional": false,
                      "description": "Production mode flag.",
                      "defaultValue": "production"
                    },
                    "SUPERSET_PORT": {
                      "isOptional": false,
                      "description": "Internal gunicorn port — also what the service's public domain should target.",
                      "defaultValue": "8088"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Bootstrap admin password. Username is always admin. Save it — it's how you log in after deploying.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Runs the container as root — required for the runtime pip/uv pip install steps in the start commands to have write access.",
                      "defaultValue": "0"
                    },
                    "DATABASE_DIALECT": {
                      "isOptional": false,
                      "description": "Triggers psycopg2 install for the web process specifically (see §3 for why worker/beat needed a separate fix).",
                      "defaultValue": "postgresql"
                    },
                    "SUPERSET_CONFIG_B64": {
                      "isOptional": false,
                      "description": "Base64-encoded superset_config.py — wires DATABASE_URL/REDIS_URL into Superset's actual config format, sets Celery, cache, feature flags, and cookie security settings.",
                      "defaultValue": "superset"
                    },
                    "SUPERSET_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Flask session signing key. Auto-generate — do not reuse across deployments.",
                      "defaultValue": "{{SUPERSET_SECRET_KEY}}"
                    },
                    "SUPERSET_LOAD_EXAMPLES": {
                      "isOptional": false,
                      "description": "Skip loading example dashboards on init.",
                      "defaultValue": "no"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8088": {
                        "port": 8088
                      }
                    }
                  }
                },
                "bf36ba81-7bf0-4a72-89a9-c954de1859f4": {
                  "icon": "https://raw.githubusercontent.com/ju-li/apache-superset-railway/main/logo.png",
                  "name": "superset-worker",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"mkdir -p /app/pythonpath && echo \\\"$SUPERSET_CONFIG_B64\\\" | base64 -d > /app/pythonpath/superset_config.py && (command -v uv >/dev/null 2>&1 && uv pip install --no-cache-dir psycopg2-binary || pip install --no-cache-dir psycopg2-binary) && /app/docker/docker-bootstrap.sh worker\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "apache/superset:latest"
                  },
                  "variables": {
                    "DEV_MODE": {
                      "isOptional": false,
                      "description": "Disables the dev-mode editable install.",
                      "defaultValue": "false"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Celery broker + result backend + cache URL, referenced inside the decoded config.",
                      "defaultValue": "${{redis.REDIS_URL}}"
                    },
                    "PYTHONPATH": {
                      "isOptional": false,
                      "description": "Where the decoded superset_config.py gets placed and picked up.",
                      "defaultValue": "/app/pythonpath"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Metadata DB connection string.",
                      "defaultValue": "${{postgres.DATABASE_URL}}"
                    },
                    "SUPERSET_ENV": {
                      "isOptional": false,
                      "description": "Production mode flag.",
                      "defaultValue": "production"
                    },
                    "SUPERSET_PORT": {
                      "isOptional": false,
                      "description": "Not used by the worker process — no HTTP server here — kept consistent with web/beat.",
                      "defaultValue": "8088"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Matches the web service's admin password — not independently generated.",
                      "defaultValue": "${{superset.ADMIN_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Runs the container as root — required for the runtime psycopg2-binary install in the start command to have write access.",
                      "defaultValue": "0"
                    },
                    "DATABASE_DIALECT": {
                      "isOptional": false,
                      "description": "Triggers the psycopg2* install path — see §3 for why worker/beat needed an additional explicit fix beyond what this variable alone triggers.",
                      "defaultValue": "postgresql"
                    },
                    "SUPERSET_CONFIG_B64": {
                      "isOptional": false,
                      "description": "Same base64-encoded config as web — referenced, not duplicated, so one edit to the web service propagates everywhere.",
                      "defaultValue": "${{superset.SUPERSET_CONFIG_B64}}"
                    },
                    "SUPERSET_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Matches the web service's Flask session key.",
                      "defaultValue": "${{superset.SUPERSET_SECRET_KEY}}"
                    },
                    "SUPERSET_LOAD_EXAMPLES": {
                      "isOptional": false,
                      "description": "Skip loading example dashboards on init (not used by worker itself, kept consistent with web/beat).",
                      "defaultValue": "no"
                    }
                  }
                },
                "cc5a5d77-488e-4487-a08f-170df3780fbc": {
                  "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": "Data storage directory — a subdirectory of the mount, not the mount root.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal Postgres host address.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Postgres server listening port.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Default Postgres username, exposed under the conventional PG* naming.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Default database name.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password for the Postgres user.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Initial database created on startup.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal Postgres connection string — this is what all 3 Superset services reference for their metadata DB.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Default Postgres superuser name.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Self-signed SSL certificate validity, specific to the postgres-ssl image this template uses instead of raw postgres:*.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres database user password. Auto-generated.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Graceful shutdown draining duration before the old instance is killed on redeploy.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "cc5a5d77-488e-4487-a08f-170df3780fbc": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-08T21:59:40.747Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-08T22:02:40.265Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_0ebfea8b3a2843d0a884",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": false,
        "detail": "1 service(s) crashed within 30s"
      }
    ]
  }
}
