{
  "manifest_version": "1.0.0",
  "template": {
    "id": "02ced457-0fac-4090-9c3a-e9953218a3d6",
    "slug": "postiz-pro-stack-one-click-deploy",
    "name": "postiz Pro Stack One-click Deploy With S3",
    "description": "postiz, Temporal, Redis & S3 social media automation. Postiz",
    "url": "https://railway.com/deploy/postiz-pro-stack-one-click-deploy",
    "upstream": {
      "image": "temporalio/ui:2.34.0"
    }
  },
  "services": [
    {
      "name": "temporal-ui",
      "source": {
        "image": "temporalio/ui:2.34.0"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "temporal-es",
      "source": {
        "image": "elasticsearch:7.17.27"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/share/elasticsearch/data",
      "http": false
    },
    {
      "name": "media-proxy",
      "source": {
        "image": "ghcr.io/xavto/postiz-media-proxy:railway-s3-2026.07.2-rc.1"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "temporal-db",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "postiz",
      "source": {
        "image": "ghcr.io/xavto/postiz-railway:railway-s3-2026.07.2-rc.2"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "postiz-redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "temporal",
      "source": {
        "image": "ghcr.io/xavto/postiz-temporal:railway-s3-2026.07.2-rc.1"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "postiz-db",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "temporal-ui",
      "description": "Temporal server address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_CORS_ORIGINS",
      "service": "temporal-ui",
      "description": "Allowed Temporal UI origin",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ES_JAVA_OPTS",
      "service": "temporal-es",
      "description": "Elasticsearch JVM heap size",
      "secret": false,
      "strategy": "default",
      "default": "-Xms256m -Xmx256m"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "temporal-es",
      "description": "Run Elasticsearch as root",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "TAKE_FILE_OWNERSHIP",
      "service": "temporal-es",
      "description": "Fix volume ownership at startup",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ES_SETTING_DISCOVERY_TYPE",
      "service": "temporal-es",
      "description": "Run as a single-node cluster",
      "secret": false,
      "strategy": "default",
      "default": "single-node"
    },
    {
      "key": "ES_SETTING_XPACK_SECURITY_ENABLED",
      "service": "temporal-es",
      "description": "Disable Elasticsearch authentication",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ES_SETTING_CLUSTER_ROUTING_ALLOCATION_DISK_WATERMARK_LOW",
      "service": "temporal-es",
      "description": "Stop allocation below 512 MB free",
      "secret": false,
      "strategy": "default",
      "default": "512mb"
    },
    {
      "key": "ES_SETTING_CLUSTER_ROUTING_ALLOCATION_DISK_WATERMARK_HIGH",
      "service": "temporal-es",
      "description": "Relocate shards below 256 MB free",
      "secret": false,
      "strategy": "default",
      "default": "256mb"
    },
    {
      "key": "ES_SETTING_CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD__ENABLED",
      "service": "temporal-es",
      "description": "Enable disk space checks",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ES_SETTING_CLUSTER_ROUTING_ALLOCATION_DISK_WATERMARK_FLOOD__STAGE",
      "service": "temporal-es",
      "description": "Protect indices below 128 MB free",
      "secret": false,
      "strategy": "default",
      "default": "128mb"
    },
    {
      "key": "PORT",
      "service": "media-proxy",
      "description": "Media proxy HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "S3_BUCKET",
      "service": "media-proxy",
      "description": "S3 media bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "media-proxy",
      "description": "S3 bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "media-proxy",
      "description": "S3-compatible endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "media-proxy",
      "description": "S3 access key ID",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "media-proxy",
      "description": "S3 secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_FORCE_PATH_STYLE",
      "service": "media-proxy",
      "description": "Use virtual-hosted S3 URLs",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PRESIGNED_URL_EXPIRATION_SECONDS",
      "service": "media-proxy",
      "description": "Signed URL lifetime in seconds",
      "secret": false,
      "strategy": "default",
      "default": "3600"
    },
    {
      "key": "PGDATA",
      "service": "temporal-db",
      "description": "PostgreSQL data directory",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "temporal-db",
      "description": "Private PostgreSQL host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "temporal-db",
      "description": "PostgreSQL port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "temporal-db",
      "description": "Database username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "temporal-db",
      "description": "Default database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "temporal-db",
      "description": "Client database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "temporal-db",
      "description": "Database created at startup",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "temporal-db",
      "description": "Private PostgreSQL URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "temporal-db",
      "description": "PostgreSQL superuser",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "temporal-db",
      "description": "SSL certificate validity",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "temporal-db",
      "description": "Generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "temporal-db",
      "description": "Public URL through TCP proxy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "temporal-db",
      "description": "Graceful shutdown delay",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "postiz",
      "description": "Internal Postiz backend port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "MAIN_URL",
      "service": "postiz",
      "description": "Main public Postiz URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RUN_CRON",
      "service": "postiz",
      "description": "Run scheduled task workers",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDIS_URL",
      "service": "postiz",
      "description": "Redis connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET",
      "service": "postiz",
      "description": "S3 media bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "postiz",
      "description": "S3 bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IS_GENERAL",
      "service": "postiz",
      "description": "Enable self-hosted Postiz routes",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "JWT_SECRET",
      "service": "postiz",
      "description": "Secret used to sign sessions",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "postiz",
      "description": "S3-compatible bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "postiz",
      "description": "PostgreSQL connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRONTEND_URL",
      "service": "postiz",
      "description": "Public frontend URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "postiz",
      "description": "S3 access key ID",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET_URL",
      "service": "postiz",
      "description": "Public media base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "postiz",
      "description": "S3 secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_PROVIDER",
      "service": "postiz",
      "description": "Store uploaded media in S3",
      "secret": false,
      "strategy": "default",
      "default": "s3"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "postiz",
      "description": "Private Temporal server address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_NAMESPACE",
      "service": "postiz",
      "description": "Temporal workflow namespace",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "S3_FORCE_PATH_STYLE",
      "service": "postiz",
      "description": "Use virtual-hosted S3 URLs",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "BACKEND_INTERNAL_URL",
      "service": "postiz",
      "description": "Internal backend URL for SSR",
      "secret": false,
      "strategy": "default",
      "default": "http://127.0.0.1:3000"
    },
    {
      "key": "DISABLE_REGISTRATION",
      "service": "postiz",
      "description": "Set true after first signup",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NEXT_PUBLIC_BACKEND_URL",
      "service": "postiz",
      "description": "Public backend API URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REDISHOST",
      "service": "postiz-redis",
      "description": "Private Redis host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "postiz-redis",
      "description": "Redis server port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "postiz-redis",
      "description": "Redis ACL username",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "postiz-redis",
      "description": "Private Redis connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "postiz-redis",
      "description": "Client Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "postiz-redis",
      "description": "Generated Redis password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "postiz-redis",
      "description": "Public URL through TCP proxy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB",
      "service": "temporal",
      "description": "Temporal PostgreSQL driver",
      "secret": false,
      "strategy": "default",
      "default": "postgres12"
    },
    {
      "key": "DB_PORT",
      "service": "temporal",
      "description": "Temporal database port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "ES_PORT",
      "service": "temporal",
      "description": "Elasticsearch port",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "ES_SEEDS",
      "service": "temporal",
      "description": "Private Elasticsearch host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENABLE_ES",
      "service": "temporal",
      "description": "Enable Elasticsearch visibility",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ES_VERSION",
      "service": "temporal",
      "description": "Elasticsearch API version",
      "secret": false,
      "strategy": "default",
      "default": "v7"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "temporal",
      "description": "Temporal database password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "temporal",
      "description": "Temporal database username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_SEEDS",
      "service": "temporal",
      "description": "Private database host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_NAMESPACE",
      "service": "temporal",
      "description": "Default Temporal namespace",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "DYNAMIC_CONFIG_FILE_PATH",
      "service": "temporal",
      "description": "Temporal dynamic config file",
      "secret": false,
      "strategy": "default",
      "default": "config/dynamicconfig/development-sql.yaml"
    },
    {
      "key": "PGDATA",
      "service": "postiz-db",
      "description": "PostgreSQL data directory",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "postiz-db",
      "description": "Private PostgreSQL host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "postiz-db",
      "description": "PostgreSQL port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "postiz-db",
      "description": "Database username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "postiz-db",
      "description": "Default database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "postiz-db",
      "description": "Client database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postiz-db",
      "description": "Database created at startup",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "postiz-db",
      "description": "Private PostgreSQL URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postiz-db",
      "description": "PostgreSQL superuser",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "postiz-db",
      "description": "SSL certificate validity",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postiz-db",
      "description": "Generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "postiz-db",
      "description": "Public URL through TCP proxy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "postiz-db",
      "description": "Graceful shutdown delay",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "postiz-pro-stack-one-click-deploy"
      }
    },
    "cli": "railway deploy --template postiz-pro-stack-one-click-deploy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "02ced457-0fac-4090-9c3a-e9953218a3d6",
            "serializedConfig": {
              "buckets": {
                "8ddf4f48-7d30-4032-ab51-0930b784ec71": {
                  "name": "postiz-media"
                }
              },
              "services": {
                "0117bb1d-e025-495b-a08f-8395cf46a1af": {
                  "icon": "https://images.ctfassets.net/0uuz8ydxyd9p/5kHQtcFCSqkLDH4I6HFmyG/8e75bd66b57696eb0a7866b3cbf8ea30/Temporal_Symbol_light_1_2x.png",
                  "name": "temporal-ui",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "temporalio/ui:2.34.0"
                  },
                  "variables": {
                    "TEMPORAL_ADDRESS": {
                      "isOptional": false,
                      "description": "Temporal server address",
                      "defaultValue": "${{temporal.RAILWAY_PRIVATE_DOMAIN}}:7233"
                    },
                    "TEMPORAL_CORS_ORIGINS": {
                      "isOptional": false,
                      "description": "Allowed Temporal UI origin",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "3d3e3cbb-e808-4ec0-91fa-23ae6c27ef2b": {
                  "icon": "https://images.ctfassets.net/0uuz8ydxyd9p/5kHQtcFCSqkLDH4I6HFmyG/8e75bd66b57696eb0a7866b3cbf8ea30/Temporal_Symbol_light_1_2x.png",
                  "name": "temporal-es",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "elasticsearch:7.17.27"
                  },
                  "variables": {
                    "ES_JAVA_OPTS": {
                      "isOptional": false,
                      "description": "Elasticsearch JVM heap size",
                      "defaultValue": "-Xms256m -Xmx256m"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run Elasticsearch as root",
                      "defaultValue": "0"
                    },
                    "TAKE_FILE_OWNERSHIP": {
                      "isOptional": false,
                      "description": "Fix volume ownership at startup",
                      "defaultValue": "true"
                    },
                    "ES_SETTING_DISCOVERY_TYPE": {
                      "isOptional": false,
                      "description": "Run as a single-node cluster",
                      "defaultValue": "single-node"
                    },
                    "ES_SETTING_XPACK_SECURITY_ENABLED": {
                      "isOptional": false,
                      "description": "Disable Elasticsearch authentication",
                      "defaultValue": "false"
                    },
                    "ES_SETTING_CLUSTER_ROUTING_ALLOCATION_DISK_WATERMARK_LOW": {
                      "isOptional": false,
                      "description": "Stop allocation below 512 MB free",
                      "defaultValue": "512mb"
                    },
                    "ES_SETTING_CLUSTER_ROUTING_ALLOCATION_DISK_WATERMARK_HIGH": {
                      "isOptional": false,
                      "description": "Relocate shards below 256 MB free",
                      "defaultValue": "256mb"
                    },
                    "ES_SETTING_CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD__ENABLED": {
                      "isOptional": false,
                      "description": "Enable disk space checks",
                      "defaultValue": "true"
                    },
                    "ES_SETTING_CLUSTER_ROUTING_ALLOCATION_DISK_WATERMARK_FLOOD__STAGE": {
                      "isOptional": false,
                      "description": "Protect indices below 128 MB free",
                      "defaultValue": "128mb"
                    }
                  },
                  "volumeMounts": {
                    "3d3e3cbb-e808-4ec0-91fa-23ae6c27ef2b": {
                      "mountPath": "/usr/share/elasticsearch/data"
                    }
                  }
                },
                "6ef83dc1-b9a4-4cae-8db7-482e2c50ab40": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postiz.svg",
                  "name": "media-proxy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/xavto/postiz-media-proxy:railway-s3-2026.07.2-rc.1"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Media proxy HTTP port",
                      "defaultValue": "8080"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "S3 media bucket name",
                      "defaultValue": "${{postiz-media.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "S3 bucket region",
                      "defaultValue": "${{postiz-media.REGION}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint",
                      "defaultValue": "${{postiz-media.ENDPOINT}}"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "S3 access key ID",
                      "defaultValue": "${{postiz-media.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "S3 secret access key",
                      "defaultValue": "${{postiz-media.SECRET_ACCESS_KEY}}"
                    },
                    "S3_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Use virtual-hosted S3 URLs",
                      "defaultValue": "false"
                    },
                    "PRESIGNED_URL_EXPIRATION_SECONDS": {
                      "isOptional": false,
                      "description": "Signed URL lifetime in seconds",
                      "defaultValue": "3600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "8fb6b419-2935-4fbf-a8dc-102e2af1f9e9": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "temporal-db",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private PostgreSQL host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "PostgreSQL port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Database username",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Default database name",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Client database password",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created at startup",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL URL",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL superuser",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate validity",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL through TCP proxy",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Graceful shutdown delay",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "8fb6b419-2935-4fbf-a8dc-102e2af1f9e9": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "b7393e0e-dc7d-4a0f-9fec-3c04914bc8b9": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postiz.svg",
                  "name": "postiz",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/xavto/postiz-railway:railway-s3-2026.07.2-rc.2"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Internal Postiz backend port",
                      "defaultValue": "3000"
                    },
                    "MAIN_URL": {
                      "isOptional": false,
                      "description": "Main public Postiz URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RUN_CRON": {
                      "isOptional": false,
                      "description": "Run scheduled task workers",
                      "defaultValue": "true"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis connection URL",
                      "defaultValue": "${{postiz-redis.REDIS_URL}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "S3 media bucket name",
                      "defaultValue": "${{postiz-media.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "S3 bucket region",
                      "defaultValue": "${{postiz-media.REGION}}"
                    },
                    "IS_GENERAL": {
                      "isOptional": false,
                      "description": "Enable self-hosted Postiz routes",
                      "defaultValue": "true"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Secret used to sign sessions",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible bucket endpoint",
                      "defaultValue": "${{postiz-media.ENDPOINT}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection URL",
                      "defaultValue": "${{postiz-db.DATABASE_URL}}"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Public frontend URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "S3 access key ID",
                      "defaultValue": "${{postiz-media.ACCESS_KEY_ID}}"
                    },
                    "S3_BUCKET_URL": {
                      "isOptional": false,
                      "description": "Public media base URL",
                      "defaultValue": "https://${{media-proxy.RAILWAY_PUBLIC_DOMAIN}}/media"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "S3 secret access key",
                      "defaultValue": "${{postiz-media.SECRET_ACCESS_KEY}}"
                    },
                    "STORAGE_PROVIDER": {
                      "isOptional": false,
                      "description": "Store uploaded media in S3",
                      "defaultValue": "s3"
                    },
                    "TEMPORAL_ADDRESS": {
                      "isOptional": false,
                      "description": "Private Temporal server address",
                      "defaultValue": "${{temporal.RAILWAY_PRIVATE_DOMAIN}}:7233"
                    },
                    "TEMPORAL_NAMESPACE": {
                      "isOptional": false,
                      "description": "Temporal workflow namespace",
                      "defaultValue": "default"
                    },
                    "S3_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Use virtual-hosted S3 URLs",
                      "defaultValue": "false"
                    },
                    "BACKEND_INTERNAL_URL": {
                      "isOptional": false,
                      "description": "Internal backend URL for SSR",
                      "defaultValue": "http://127.0.0.1:3000"
                    },
                    "DISABLE_REGISTRATION": {
                      "isOptional": false,
                      "description": "Set true after first signup",
                      "defaultValue": "false"
                    },
                    "NEXT_PUBLIC_BACKEND_URL": {
                      "isOptional": false,
                      "description": "Public backend API URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/api"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5000": {
                        "port": 5000
                      }
                    }
                  }
                },
                "cac968d0-358a-4e8f-8d2c-f3f551fa1b74": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "postiz-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": "Private Redis host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Redis server port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Redis ACL username",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private Redis connection URL",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Client Redis password",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated Redis password",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL through TCP proxy",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "volumeMounts": {
                    "cac968d0-358a-4e8f-8d2c-f3f551fa1b74": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "d4393040-41bb-47f2-80d6-a77c260e0116": {
                  "icon": "https://images.ctfassets.net/0uuz8ydxyd9p/5kHQtcFCSqkLDH4I6HFmyG/8e75bd66b57696eb0a7866b3cbf8ea30/Temporal_Symbol_light_1_2x.png",
                  "name": "temporal",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/xavto/postiz-temporal:railway-s3-2026.07.2-rc.1"
                  },
                  "variables": {
                    "DB": {
                      "isOptional": false,
                      "description": "Temporal PostgreSQL driver",
                      "defaultValue": "postgres12"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Temporal database port",
                      "defaultValue": "5432"
                    },
                    "ES_PORT": {
                      "isOptional": false,
                      "description": "Elasticsearch port",
                      "defaultValue": "9200"
                    },
                    "ES_SEEDS": {
                      "isOptional": false,
                      "description": "Private Elasticsearch host",
                      "defaultValue": "${{temporal-es.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ENABLE_ES": {
                      "isOptional": false,
                      "description": "Enable Elasticsearch visibility",
                      "defaultValue": "true"
                    },
                    "ES_VERSION": {
                      "isOptional": false,
                      "description": "Elasticsearch API version",
                      "defaultValue": "v7"
                    },
                    "POSTGRES_PWD": {
                      "isOptional": false,
                      "description": "Temporal database password",
                      "defaultValue": "${{temporal-db.PGPASSWORD}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Temporal database username",
                      "defaultValue": "${{temporal-db.PGUSER}}"
                    },
                    "POSTGRES_SEEDS": {
                      "isOptional": false,
                      "description": "Private database host",
                      "defaultValue": "${{temporal-db.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "TEMPORAL_NAMESPACE": {
                      "isOptional": false,
                      "description": "Default Temporal namespace",
                      "defaultValue": "default"
                    },
                    "DYNAMIC_CONFIG_FILE_PATH": {
                      "isOptional": false,
                      "description": "Temporal dynamic config file",
                      "defaultValue": "config/dynamicconfig/development-sql.yaml"
                    }
                  }
                },
                "f0ef0ff0-8dc8-4200-bcb4-5efef9636823": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "postiz-db",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private PostgreSQL host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "PostgreSQL port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Database username",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Default database name",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Client database password",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created at startup",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL URL",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL superuser",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate validity",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL through TCP proxy",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Graceful shutdown delay",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "f0ef0ff0-8dc8-4200-bcb4-5efef9636823": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 8,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T22:14:43.398Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T19:28:46.713Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_585408149c454686b810",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 265,
    "typical_build_seconds": 0,
    "typical_start_seconds": 112,
    "slowest_service": "postiz"
  }
}
