{
  "manifest_version": "1.0.0",
  "template": {
    "id": "135dda29-3479-4ccb-8623-e743fa72de4c",
    "slug": "mattermost-v11-team-chat",
    "name": "Mattermost v11 Team Chat",
    "description": "Secure team messaging with channels, threads and file storage on S3.",
    "url": "https://railway.com/deploy/mattermost-v11-team-chat",
    "upstream": {
      "image": "mattermost/mattermost-team-edition:11.11.1"
    }
  },
  "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": "S3 Gateway",
      "source": {
        "repo": "https://github.com/baranberkay96/mattermost-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Mattermost",
      "source": {
        "image": "mattermost/mattermost-team-edition:11.11.1"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "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": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "S3 Gateway",
      "description": "Port of the S3 API on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "BUCKET_NAME",
      "service": "S3 Gateway",
      "description": "Railway Bucket name (S3 API name).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BUCKET_REGION",
      "service": "S3 Gateway",
      "description": "Railway Bucket region.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BUCKET_ENDPOINT",
      "service": "S3 Gateway",
      "description": "Railway Bucket S3 endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GATEWAY_BUCKETS",
      "service": "S3 Gateway",
      "description": "Space-separated logical buckets created as folders at start.",
      "secret": false,
      "strategy": "default",
      "default": "mattermost"
    },
    {
      "key": "GATEWAY_LOG_LEVEL",
      "service": "S3 Gateway",
      "description": "rclone log level (ERROR, NOTICE, INFO, DEBUG).",
      "secret": false,
      "strategy": "default",
      "default": "NOTICE"
    },
    {
      "key": "GATEWAY_ACCESS_KEY",
      "service": "S3 Gateway",
      "description": "Access key Mattermost signs with (generated).",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GATEWAY_SECRET_KEY",
      "service": "S3 Gateway",
      "description": "Secret key Mattermost signs with (generated).",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BUCKET_ACCESS_KEY_ID",
      "service": "S3 Gateway",
      "description": "Railway Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BUCKET_FORCE_PATH_STYLE",
      "service": "S3 Gateway",
      "description": "Railway Buckets use virtual-hosted URLs; set true only if the Bucket's Credentials tab says path-style.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "BUCKET_SECRET_ACCESS_KEY",
      "service": "S3 Gateway",
      "description": "Railway Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TZ",
      "service": "Mattermost",
      "description": "Container time zone.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Mattermost",
      "description": "Port Mattermost listens on (domain and healthcheck).",
      "secret": false,
      "strategy": "default",
      "default": "8065"
    },
    {
      "key": "MM_CONFIG",
      "service": "Mattermost",
      "description": "Store the server configuration in Postgres so System Console changes survive redeploys.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MM_LOGSETTINGS_ENABLEFILE",
      "service": "Mattermost",
      "description": "Log to Railway's log viewer only (no log files on the ephemeral disk).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "MM_SQLSETTINGS_DATASOURCE",
      "service": "Mattermost",
      "description": "Postgres connection string (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MM_SQLSETTINGS_DRIVERNAME",
      "service": "Mattermost",
      "description": "Database driver.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "MM_FILESETTINGS_DRIVERNAME",
      "service": "Mattermost",
      "description": "Store uploads, avatars and plugins in S3 (the Railway Bucket via S3 Gateway).",
      "secret": false,
      "strategy": "default",
      "default": "amazons3"
    },
    {
      "key": "MM_LOGSETTINGS_CONSOLEJSON",
      "service": "Mattermost",
      "description": "Human-readable console logs.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "MM_SERVICESETTINGS_SITEURL",
      "service": "Mattermost",
      "description": "Public URL of the server. Change it when you add a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MM_FILESETTINGS_AMAZONS3SSL",
      "service": "Mattermost",
      "description": "Plain HTTP to the gateway (private network); the gateway uses HTTPS to the Bucket.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "MM_FILESETTINGS_MAXFILESIZE",
      "service": "Mattermost",
      "description": "Maximum upload size in bytes (100 MB).",
      "secret": false,
      "strategy": "default",
      "default": "104857600"
    },
    {
      "key": "MM_SQLSETTINGS_MAXIDLECONNS",
      "service": "Mattermost",
      "description": "Max idle DB connections.",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "MM_SQLSETTINGS_MAXOPENCONNS",
      "service": "Mattermost",
      "description": "Max open DB connections (Railway Postgres allows 100).",
      "secret": false,
      "strategy": "default",
      "default": "50"
    },
    {
      "key": "MM_FILESETTINGS_AMAZONS3BUCKET",
      "service": "Mattermost",
      "description": "Logical bucket = folder inside the Railway Bucket. Must be listed in the gateway's GATEWAY_BUCKETS.",
      "secret": false,
      "strategy": "default",
      "default": "mattermost"
    },
    {
      "key": "MM_FILESETTINGS_AMAZONS3REGION",
      "service": "Mattermost",
      "description": "Region used to sign requests to the gateway.",
      "secret": false,
      "strategy": "default",
      "default": "us-east-1"
    },
    {
      "key": "MM_FILESETTINGS_PUBLICLINKSALT",
      "service": "Mattermost",
      "description": "Salt for public file links. Changing it invalidates existing links.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MM_SQLSETTINGS_ATRESTENCRYPTKEY",
      "service": "Mattermost",
      "description": "Key for encrypting sensitive data at rest. Never change after first boot.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MM_TEAMSETTINGS_MAXUSERSPERTEAM",
      "service": "Mattermost",
      "description": "Max members per team (Team Edition servers are limited to 250 active users).",
      "secret": false,
      "strategy": "default",
      "default": "250"
    },
    {
      "key": "MM_FILESETTINGS_AMAZONS3ENDPOINT",
      "service": "Mattermost",
      "description": "S3 Gateway address on the private network (host:port, no scheme).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MM_SERVICESETTINGS_LISTENADDRESS",
      "service": "Mattermost",
      "description": "Listen on all IPv4 and IPv6 interfaces.",
      "secret": false,
      "strategy": "default",
      "default": ":8065"
    },
    {
      "key": "MM_FILESETTINGS_AMAZONS3ACCESSKEYID",
      "service": "Mattermost",
      "description": "Gateway access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Mattermost",
      "description": "Time for open requests and websockets to close on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "MM_NOTIFICATIONLOGSETTINGS_ENABLEFILE",
      "service": "Mattermost",
      "description": "No notification log file on the ephemeral disk.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "MM_FILESETTINGS_AMAZONS3SECRETACCESSKEY",
      "service": "Mattermost",
      "description": "Gateway secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MM_SERVICESETTINGS_TRUSTEDPROXYIPHEADER",
      "service": "Mattermost",
      "description": "Headers carrying the client IP behind Railway's proxy (audit logs, rate limits).",
      "secret": false,
      "strategy": "default",
      "default": "X-Forwarded-For X-Real-IP"
    },
    {
      "key": "MM_EMAILSETTINGS_PUSHNOTIFICATIONCONTENTS",
      "service": "Mattermost",
      "description": "Mobile push shows sender and channel, not message text (pushes travel through Mattermost's push service).",
      "secret": false,
      "strategy": "default",
      "default": "generic"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mattermost-v11-team-chat"
      }
    },
    "cli": "railway deploy --template mattermost-v11-team-chat",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "135dda29-3479-4ccb-8623-e743fa72de4c",
            "serializedConfig": {
              "buckets": {
                "b77ff6e9-f736-524c-a656-f6778c50fa89": {
                  "name": "Bucket"
                }
              },
              "services": {
                "c3012111-102d-5918-81ad-30aac9b9ffb2": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres (private network).",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "46b1b5c7-1fed-55eb-96b3-8b75624e3637": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "c9de5bdb-5dd9-5c4c-ba17-a13d63aba225": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/rclone.svg",
                  "name": "S3 Gateway",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "repo": "baranberkay96/mattermost-railway",
                    "branch": "main",
                    "rootDirectory": "/services/s3-gateway"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port of the S3 API on the private network.",
                      "defaultValue": "9000"
                    },
                    "BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Railway Bucket name (S3 API name).",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "BUCKET_PREFIX": {
                      "isOptional": true,
                      "description": "Optional folder inside the Bucket for all gateway data (empty = Bucket root).",
                      "defaultValue": ""
                    },
                    "BUCKET_REGION": {
                      "isOptional": false,
                      "description": "Railway Bucket region.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "BUCKET_ENDPOINT": {
                      "isOptional": false,
                      "description": "Railway Bucket S3 endpoint.",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "GATEWAY_BUCKETS": {
                      "isOptional": false,
                      "description": "Space-separated logical buckets created as folders at start.",
                      "defaultValue": "mattermost"
                    },
                    "GATEWAY_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "rclone log level (ERROR, NOTICE, INFO, DEBUG).",
                      "defaultValue": "NOTICE"
                    },
                    "GATEWAY_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Access key Mattermost signs with (generated).",
                      "defaultValue": "{{GATEWAY_ACCESS_KEY}}"
                    },
                    "GATEWAY_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Secret key Mattermost signs with (generated).",
                      "defaultValue": "{{GATEWAY_SECRET_KEY}}"
                    },
                    "BUCKET_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Railway Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "BUCKET_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Railway Buckets use virtual-hosted URLs; set true only if the Bucket's Credentials tab says path-style.",
                      "defaultValue": "false"
                    },
                    "BUCKET_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Railway Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "d3280f9b-8890-5e59-bba1-2cd11ceb80d1": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mattermost.svg",
                  "name": "Mattermost",
                  "deploy": {
                    "healthcheckPath": "/api/v4/system/ping",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 600
                  },
                  "source": {
                    "image": "mattermost/mattermost-team-edition:11.11.1"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": true,
                      "description": "Container time zone.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": true,
                      "description": "Port Mattermost listens on (domain and healthcheck).",
                      "defaultValue": "8065"
                    },
                    "MM_CONFIG": {
                      "isOptional": false,
                      "description": "Store the server configuration in Postgres so System Console changes survive redeploys.",
                      "defaultValue": "${{MM_SQLSETTINGS_DATASOURCE}}"
                    },
                    "MM_LOGSETTINGS_ENABLEFILE": {
                      "isOptional": true,
                      "description": "Log to Railway's log viewer only (no log files on the ephemeral disk).",
                      "defaultValue": "false"
                    },
                    "MM_SQLSETTINGS_DATASOURCE": {
                      "isOptional": false,
                      "description": "Postgres connection string (private network).",
                      "defaultValue": "postgres://${{Postgres.PGUSER}}:${{Postgres.PGPASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.PGDATABASE}}?sslmode=disable&connect_timeout=10"
                    },
                    "MM_SQLSETTINGS_DRIVERNAME": {
                      "isOptional": false,
                      "description": "Database driver.",
                      "defaultValue": "postgres"
                    },
                    "MM_FILESETTINGS_DRIVERNAME": {
                      "isOptional": false,
                      "description": "Store uploads, avatars and plugins in S3 (the Railway Bucket via S3 Gateway).",
                      "defaultValue": "amazons3"
                    },
                    "MM_LOGSETTINGS_CONSOLEJSON": {
                      "isOptional": true,
                      "description": "Human-readable console logs.",
                      "defaultValue": "false"
                    },
                    "MM_SERVICESETTINGS_SITEURL": {
                      "isOptional": false,
                      "description": "Public URL of the server. Change it when you add a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MM_FILESETTINGS_AMAZONS3SSL": {
                      "isOptional": true,
                      "description": "Plain HTTP to the gateway (private network); the gateway uses HTTPS to the Bucket.",
                      "defaultValue": "false"
                    },
                    "MM_FILESETTINGS_MAXFILESIZE": {
                      "isOptional": true,
                      "description": "Maximum upload size in bytes (100 MB).",
                      "defaultValue": "104857600"
                    },
                    "MM_SQLSETTINGS_MAXIDLECONNS": {
                      "isOptional": true,
                      "description": "Max idle DB connections.",
                      "defaultValue": "20"
                    },
                    "MM_SQLSETTINGS_MAXOPENCONNS": {
                      "isOptional": true,
                      "description": "Max open DB connections (Railway Postgres allows 100).",
                      "defaultValue": "50"
                    },
                    "MM_FILESETTINGS_AMAZONS3BUCKET": {
                      "isOptional": false,
                      "description": "Logical bucket = folder inside the Railway Bucket. Must be listed in the gateway's GATEWAY_BUCKETS.",
                      "defaultValue": "mattermost"
                    },
                    "MM_FILESETTINGS_AMAZONS3REGION": {
                      "isOptional": true,
                      "description": "Region used to sign requests to the gateway.",
                      "defaultValue": "us-east-1"
                    },
                    "MM_FILESETTINGS_PUBLICLINKSALT": {
                      "isOptional": true,
                      "description": "Salt for public file links. Changing it invalidates existing links.",
                      "defaultValue": "{{MM_FILESETTINGS_PUBLICLINKSALT}}"
                    },
                    "MM_SQLSETTINGS_ATRESTENCRYPTKEY": {
                      "isOptional": false,
                      "description": "Key for encrypting sensitive data at rest. Never change after first boot.",
                      "defaultValue": "{{MM_SQLSETTINGS_ATRESTENCRYPTKEY}}"
                    },
                    "MM_TEAMSETTINGS_MAXUSERSPERTEAM": {
                      "isOptional": true,
                      "description": "Max members per team (Team Edition servers are limited to 250 active users).",
                      "defaultValue": "250"
                    },
                    "MM_FILESETTINGS_AMAZONS3ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 Gateway address on the private network (host:port, no scheme).",
                      "defaultValue": "${{S3 Gateway.RAILWAY_PRIVATE_DOMAIN}}:${{S3 Gateway.PORT}}"
                    },
                    "MM_SERVICESETTINGS_LISTENADDRESS": {
                      "isOptional": true,
                      "description": "Listen on all IPv4 and IPv6 interfaces.",
                      "defaultValue": ":8065"
                    },
                    "MM_FILESETTINGS_AMAZONS3ACCESSKEYID": {
                      "isOptional": false,
                      "description": "Gateway access key.",
                      "defaultValue": "${{S3 Gateway.GATEWAY_ACCESS_KEY}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Time for open requests and websockets to close on redeploy.",
                      "defaultValue": "30"
                    },
                    "MM_NOTIFICATIONLOGSETTINGS_ENABLEFILE": {
                      "isOptional": true,
                      "description": "No notification log file on the ephemeral disk.",
                      "defaultValue": "false"
                    },
                    "MM_FILESETTINGS_AMAZONS3SECRETACCESSKEY": {
                      "isOptional": false,
                      "description": "Gateway secret key.",
                      "defaultValue": "${{S3 Gateway.GATEWAY_SECRET_KEY}}"
                    },
                    "MM_SERVICESETTINGS_TRUSTEDPROXYIPHEADER": {
                      "isOptional": true,
                      "description": "Headers carrying the client IP behind Railway's proxy (audit logs, rate limits).",
                      "defaultValue": "X-Forwarded-For X-Real-IP"
                    },
                    "MM_EMAILSETTINGS_PUSHNOTIFICATIONCONTENTS": {
                      "isOptional": true,
                      "description": "Mobile push shows sender and channel, not message text (pushes travel through Mattermost's push service).",
                      "defaultValue": "generic"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8065": {
                        "port": 8065
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Mattermost",
      "method": "GET",
      "path": "/api/v4/system/ping",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T22:14:38.939Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-11T19:11:38.552Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_ab940181d04f46f9b1bd",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
