{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bf580867-5dd4-4482-8a37-c3cd01e0daf3",
    "slug": "postiz-v2-ai-social-media-scheduler",
    "name": "Postiz v2 AI Social Media Scheduler",
    "description": "Schedule posts to X, LinkedIn, Instagram and more. Full Temporal stack.",
    "url": "https://railway.com/deploy/postiz-v2-ai-social-media-scheduler",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/postiz-railway"
    }
  },
  "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": "Temporal",
      "source": {
        "repo": "https://github.com/baranberkay96/postiz-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Temporal UI",
      "source": {
        "repo": "https://github.com/baranberkay96/postiz-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Postiz",
      "source": {
        "image": "ghcr.io/gitroomhq/postiz-app:v2.25.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/uploads",
      "http": true
    },
    {
      "name": "Elasticsearch",
      "source": {
        "repo": "https://github.com/baranberkay96/postiz-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/share/elasticsearch/data",
      "http": false
    }
  ],
  "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 database.",
      "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": "DB",
      "service": "Temporal",
      "description": "Temporal SQL plugin for PostgreSQL 12 and newer.",
      "secret": false,
      "strategy": "default",
      "default": "postgres12"
    },
    {
      "key": "PORT",
      "service": "Temporal",
      "description": "Temporal frontend HTTP API port; tells Railway where to run the healthcheck (gRPC stays on 7233).",
      "secret": false,
      "strategy": "default",
      "default": "7243"
    },
    {
      "key": "DBNAME",
      "service": "Temporal",
      "description": "Database for Temporal persistence; created and migrated automatically on every boot.",
      "secret": false,
      "strategy": "default",
      "default": "temporal"
    },
    {
      "key": "ES_PWD",
      "service": "Temporal",
      "description": "Elasticsearch password.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "Temporal",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_PORT",
      "service": "Temporal",
      "description": "Elasticsearch HTTP port.",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "ES_USER",
      "service": "Temporal",
      "description": "Elasticsearch user.",
      "secret": false,
      "strategy": "default",
      "default": "elastic"
    },
    {
      "key": "ES_SEEDS",
      "service": "Temporal",
      "description": "Elasticsearch host on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENABLE_ES",
      "service": "Temporal",
      "description": "Use Elasticsearch as the visibility store, as in the upstream Postiz compose file.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ES_SCHEME",
      "service": "Temporal",
      "description": "Elasticsearch scheme (private network, no TLS).",
      "secret": false,
      "strategy": "default",
      "default": "http"
    },
    {
      "key": "LOG_LEVEL",
      "service": "Temporal",
      "description": "Temporal server log level (debug, info, warn, error).",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "BIND_ON_IP",
      "service": "Temporal",
      "description": "Listen on all IPv4 and IPv6 interfaces for Railway private networking.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "ES_VERSION",
      "service": "Temporal",
      "description": "Elasticsearch major version expected by Temporal.",
      "secret": false,
      "strategy": "default",
      "default": "v8"
    },
    {
      "key": "ES_VIS_INDEX",
      "service": "Temporal",
      "description": "Visibility index name; created and upgraded automatically on every boot.",
      "secret": false,
      "strategy": "default",
      "default": "temporal_visibility_v1"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "Temporal",
      "description": "Postgres password.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Temporal",
      "description": "Postgres user Temporal connects as.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SQL_MAX_CONNS",
      "service": "Temporal",
      "description": "Maximum Postgres connections opened by Temporal.",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "POSTGRES_SEEDS",
      "service": "Temporal",
      "description": "Postgres host on the private network (shared with Postiz, separate database).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DEFAULT_NAMESPACE",
      "service": "Temporal",
      "description": "Namespace created on boot and used by Postiz.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "NUM_HISTORY_SHARDS",
      "service": "Temporal",
      "description": "History shard count; fixed at first boot and cannot be changed later without a new database.",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "TEMPORAL_ALLOW_NO_AUTH",
      "service": "Temporal",
      "description": "No Temporal authorizer: the server has no public domain and is reachable only on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TEMPORAL_BROADCAST_ADDRESS",
      "service": "Temporal",
      "description": "Address this single-node cluster advertises to its own internal services.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1"
    },
    {
      "key": "DEFAULT_NAMESPACE_RETENTION",
      "service": "Temporal",
      "description": "How long closed workflow histories are kept (applies when the namespace is first created).",
      "secret": false,
      "strategy": "default",
      "default": "72h"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Temporal",
      "description": "Time allowed for a clean Temporal shutdown on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "PORT",
      "service": "Temporal UI",
      "description": "Public port served by Caddy with basic auth in front of the UI.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "Temporal UI",
      "description": "Temporal frontend (gRPC) on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_UI_PASSWORD",
      "service": "Temporal UI",
      "description": "Basic-auth password for the Temporal UI (generated; see this service's variables).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TEMPORAL_UI_USERNAME",
      "service": "Temporal UI",
      "description": "Basic-auth username for the Temporal UI.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "TEMPORAL_CORS_ORIGINS",
      "service": "Temporal UI",
      "description": "Origin allowed by the UI server; update if you add a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TEMPORAL_DEFAULT_NAMESPACE",
      "service": "Temporal UI",
      "description": "Namespace opened by default (the one Postiz uses).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TEMPORAL_DISABLE_WRITE_ACTIONS",
      "service": "Temporal UI",
      "description": "Set true to make the UI read-only (no cancel, terminate, reset or signal).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port that Redis listens on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username for authenticating with Redis",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to Redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Randomly generated password for authenticating with Redis",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Postiz",
      "description": "Port of the Postiz backend inside the container (nginx on 5000 proxies /api to it); Railway also runs the healthcheck on this port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "MAIN_URL",
      "service": "Postiz",
      "description": "Primary public URL of this Postiz instance (email links, metadata). Update if you add a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RUN_CRON",
      "service": "Postiz",
      "description": "Runs scheduled background work (missed-post recovery) in this instance.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "API_LIMIT",
      "service": "Postiz",
      "description": "Hourly limit of the public API post-creation endpoint (upstream compose value).",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "REDIS_URL",
      "service": "Postiz",
      "description": "Redis on the private network; family=0 lets ioredis resolve both IPv4 and IPv6.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IS_GENERAL",
      "service": "Postiz",
      "description": "Self-hosted product mode, as set in the upstream docker-compose.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "JWT_SECRET",
      "service": "Postiz",
      "description": "Signs session tokens; changing it logs every user out.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postiz",
      "description": "Postiz database (Prisma) on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRONTEND_URL",
      "service": "Postiz",
      "description": "Browser-facing URL; used for OAuth redirect URIs, cookies and public upload links. Update if you add a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MASTODON_URL",
      "service": "Postiz",
      "description": "Optional: Mastodon instance used for the Mastodon provider.",
      "secret": false,
      "strategy": "default",
      "default": "https://mastodon.social"
    },
    {
      "key": "STORAGE_PROVIDER",
      "service": "Postiz",
      "description": "Media storage: local volume served at /uploads (Railway Buckets are private and Postiz has no generic S3 option).",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "Postiz",
      "description": "Temporal frontend (gRPC) on the private network; required since Postiz v2.12.0.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UPLOAD_DIRECTORY",
      "service": "Postiz",
      "description": "Filesystem path for uploaded media; must match the volume mount and the image's nginx /uploads alias.",
      "secret": false,
      "strategy": "default",
      "default": "/uploads"
    },
    {
      "key": "TEMPORAL_NAMESPACE",
      "service": "Postiz",
      "description": "Temporal namespace for Postiz workflows (created by the Temporal service).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BACKEND_INTERNAL_URL",
      "service": "Postiz",
      "description": "URL the frontend server uses to reach the backend inside the same container.",
      "secret": false,
      "strategy": "default",
      "default": "http://localhost:3000"
    },
    {
      "key": "DISABLE_REGISTRATION",
      "service": "Postiz",
      "description": "When true only the first account can sign up (no organization exists yet); set false temporarily to let invited teammates register.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NEXT_PUBLIC_BACKEND_URL",
      "service": "Postiz",
      "description": "Browser-facing backend URL (served by the built-in nginx under /api).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_UPLOAD_STATIC_DIRECTORY",
      "service": "Postiz",
      "description": "Public URL prefix for uploaded media.",
      "secret": false,
      "strategy": "default",
      "default": "/uploads"
    },
    {
      "key": "PORT",
      "service": "Elasticsearch",
      "description": "Elasticsearch HTTP port; tells Railway where to run the healthcheck.",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "ES_JAVA_OPTS",
      "service": "Elasticsearch",
      "description": "JVM heap; keep it explicit, otherwise Elasticsearch sizes the heap from the container limit.",
      "secret": false,
      "strategy": "default",
      "default": "-Xms512m -Xmx512m"
    },
    {
      "key": "ELASTIC_PASSWORD",
      "service": "Elasticsearch",
      "description": "Password of the built-in elastic user (used by Temporal); set once, before the first deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Elasticsearch",
      "description": "Time allowed for a clean Elasticsearch shutdown on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "postiz-v2-ai-social-media-scheduler"
      }
    },
    "cli": "railway deploy --template postiz-v2-ai-social-media-scheduler",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bf580867-5dd4-4482-8a37-c3cd01e0daf3",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "00b81f5a-8ef5-560b-a462-1d9aff0c665a": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {},
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": true,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "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": true,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "18185d7c-f950-5e6c-afb7-c5315f5bead4": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "1f3cb268-9e3e-5003-aa58-7dc9bd732e8e": {
                  "icon": "https://avatars.githubusercontent.com/u/56493103?v=4",
                  "name": "Temporal",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/api/v1/system-info",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/postiz-railway",
                    "branch": "main",
                    "rootDirectory": "/services/temporal"
                  },
                  "variables": {
                    "DB": {
                      "isOptional": true,
                      "description": "Temporal SQL plugin for PostgreSQL 12 and newer.",
                      "defaultValue": "postgres12"
                    },
                    "PORT": {
                      "isOptional": true,
                      "description": "Temporal frontend HTTP API port; tells Railway where to run the healthcheck (gRPC stays on 7233).",
                      "defaultValue": "7243"
                    },
                    "DBNAME": {
                      "isOptional": true,
                      "description": "Database for Temporal persistence; created and migrated automatically on every boot.",
                      "defaultValue": "temporal"
                    },
                    "ES_PWD": {
                      "isOptional": true,
                      "description": "Elasticsearch password.",
                      "defaultValue": "${{Elasticsearch.ELASTIC_PASSWORD}}"
                    },
                    "DB_PORT": {
                      "isOptional": true,
                      "description": "Postgres port.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "ES_PORT": {
                      "isOptional": true,
                      "description": "Elasticsearch HTTP port.",
                      "defaultValue": "9200"
                    },
                    "ES_USER": {
                      "isOptional": true,
                      "description": "Elasticsearch user.",
                      "defaultValue": "elastic"
                    },
                    "ES_SEEDS": {
                      "isOptional": true,
                      "description": "Elasticsearch host on the private network.",
                      "defaultValue": "${{Elasticsearch.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ENABLE_ES": {
                      "isOptional": true,
                      "description": "Use Elasticsearch as the visibility store, as in the upstream Postiz compose file.",
                      "defaultValue": "true"
                    },
                    "ES_SCHEME": {
                      "isOptional": true,
                      "description": "Elasticsearch scheme (private network, no TLS).",
                      "defaultValue": "http"
                    },
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Temporal server log level (debug, info, warn, error).",
                      "defaultValue": "info"
                    },
                    "BIND_ON_IP": {
                      "isOptional": true,
                      "description": "Listen on all IPv4 and IPv6 interfaces for Railway private networking.",
                      "defaultValue": "::"
                    },
                    "ES_VERSION": {
                      "isOptional": true,
                      "description": "Elasticsearch major version expected by Temporal.",
                      "defaultValue": "v8"
                    },
                    "ES_VIS_INDEX": {
                      "isOptional": true,
                      "description": "Visibility index name; created and upgraded automatically on every boot.",
                      "defaultValue": "temporal_visibility_v1"
                    },
                    "POSTGRES_PWD": {
                      "isOptional": true,
                      "description": "Postgres password.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Postgres user Temporal connects as.",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "SQL_MAX_CONNS": {
                      "isOptional": true,
                      "description": "Maximum Postgres connections opened by Temporal.",
                      "defaultValue": "20"
                    },
                    "POSTGRES_SEEDS": {
                      "isOptional": true,
                      "description": "Postgres host on the private network (shared with Postiz, separate database).",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DEFAULT_NAMESPACE": {
                      "isOptional": true,
                      "description": "Namespace created on boot and used by Postiz.",
                      "defaultValue": "default"
                    },
                    "NUM_HISTORY_SHARDS": {
                      "isOptional": true,
                      "description": "History shard count; fixed at first boot and cannot be changed later without a new database.",
                      "defaultValue": "4"
                    },
                    "TEMPORAL_ALLOW_NO_AUTH": {
                      "isOptional": true,
                      "description": "No Temporal authorizer: the server has no public domain and is reachable only on the private network.",
                      "defaultValue": "true"
                    },
                    "TEMPORAL_BROADCAST_ADDRESS": {
                      "isOptional": true,
                      "description": "Address this single-node cluster advertises to its own internal services.",
                      "defaultValue": "127.0.0.1"
                    },
                    "DEFAULT_NAMESPACE_RETENTION": {
                      "isOptional": true,
                      "description": "How long closed workflow histories are kept (applies when the namespace is first created).",
                      "defaultValue": "72h"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Time allowed for a clean Temporal shutdown on redeploy.",
                      "defaultValue": "20"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "98e59e21-f98c-5210-8d4b-7dd25d921928": {
                  "icon": "https://avatars.githubusercontent.com/u/56493103?v=4",
                  "name": "Temporal UI",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/postiz-railway",
                    "branch": "main",
                    "rootDirectory": "/services/temporal-ui"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Public port served by Caddy with basic auth in front of the UI.",
                      "defaultValue": "8080"
                    },
                    "TEMPORAL_ADDRESS": {
                      "isOptional": true,
                      "description": "Temporal frontend (gRPC) on the private network.",
                      "defaultValue": "${{Temporal.RAILWAY_PRIVATE_DOMAIN}}:7233"
                    },
                    "TEMPORAL_UI_PASSWORD": {
                      "isOptional": true,
                      "description": "Basic-auth password for the Temporal UI (generated; see this service's variables).",
                      "defaultValue": "{{TEMPORAL_UI_PASSWORD}}"
                    },
                    "TEMPORAL_UI_USERNAME": {
                      "isOptional": true,
                      "description": "Basic-auth username for the Temporal UI.",
                      "defaultValue": "admin"
                    },
                    "TEMPORAL_CORS_ORIGINS": {
                      "isOptional": true,
                      "description": "Origin allowed by the UI server; update if you add a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TEMPORAL_DEFAULT_NAMESPACE": {
                      "isOptional": true,
                      "description": "Namespace opened by default (the one Postiz uses).",
                      "defaultValue": "${{Temporal.DEFAULT_NAMESPACE}}"
                    },
                    "TEMPORAL_DISABLE_WRITE_ACTIONS": {
                      "isOptional": true,
                      "description": "Set true to make the UI read-only (no cancel, terminate, reset or signal).",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "b53cb94b-e4a5-592f-ab14-b30c73f1be22": {
                  "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\""
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": true,
                      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": true,
                      "description": "Port that Redis listens on",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": true,
                      "description": "Username for authenticating with Redis",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "Connection string for connecting to Redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": true,
                      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Randomly generated password for authenticating with Redis",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "c14b36c5-4aff-54fc-94c8-de896ddff9af": {
                      "mountPath": "/data"
                    }
                  }
                },
                "c894fa68-8dd8-53c0-9760-1415ee2d0b36": {
                  "icon": "https://avatars.githubusercontent.com/u/128401275?v=4",
                  "name": "Postiz",
                  "deploy": {
                    "healthcheckPath": "/auth/can-register",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/gitroomhq/postiz-app:v2.25.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port of the Postiz backend inside the container (nginx on 5000 proxies /api to it); Railway also runs the healthcheck on this port.",
                      "defaultValue": "3000"
                    },
                    "MAIN_URL": {
                      "isOptional": true,
                      "description": "Primary public URL of this Postiz instance (email links, metadata). Update if you add a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RUN_CRON": {
                      "isOptional": true,
                      "description": "Runs scheduled background work (missed-post recovery) in this instance.",
                      "defaultValue": "true"
                    },
                    "API_LIMIT": {
                      "isOptional": true,
                      "description": "Hourly limit of the public API post-creation endpoint (upstream compose value).",
                      "defaultValue": "30"
                    },
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "Redis on the private network; family=0 lets ioredis resolve both IPv4 and IPv6.",
                      "defaultValue": "${{Redis.REDIS_URL}}?family=0"
                    },
                    "X_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: X (Twitter) app API key, needed to connect X accounts.",
                      "defaultValue": ""
                    },
                    "IS_GENERAL": {
                      "isOptional": true,
                      "description": "Self-hosted product mode, as set in the upstream docker-compose.",
                      "defaultValue": "true"
                    },
                    "JWT_SECRET": {
                      "isOptional": true,
                      "description": "Signs session tokens; changing it logs every user out.",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "Postiz database (Prisma) on the private network.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "FRONTEND_URL": {
                      "isOptional": true,
                      "description": "Browser-facing URL; used for OAuth redirect URIs, cookies and public upload links. Update if you add a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MASTODON_URL": {
                      "isOptional": true,
                      "description": "Optional: Mastodon instance used for the Mastodon provider.",
                      "defaultValue": "https://mastodon.social"
                    },
                    "X_API_SECRET": {
                      "isOptional": true,
                      "description": "Optional: X (Twitter) app API secret.",
                      "defaultValue": ""
                    },
                    "EMAIL_PROVIDER": {
                      "isOptional": true,
                      "description": "Optional: resend or nodemailer. Leave empty to auto-activate new accounts without email; setting it turns on email activation.",
                      "defaultValue": ""
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: enables the AI copilot and AI image generation.",
                      "defaultValue": ""
                    },
                    "RESEND_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: Resend API key, used when EMAIL_PROVIDER=resend.",
                      "defaultValue": ""
                    },
                    "THREADS_APP_ID": {
                      "isOptional": true,
                      "description": "Optional: Threads app ID.",
                      "defaultValue": ""
                    },
                    "EMAIL_FROM_NAME": {
                      "isOptional": true,
                      "description": "Optional: sender name for outgoing email.",
                      "defaultValue": ""
                    },
                    "FACEBOOK_APP_ID": {
                      "isOptional": true,
                      "description": "Optional: Meta app ID for Facebook pages and Instagram business accounts (via Facebook login).",
                      "defaultValue": ""
                    },
                    "INSTAGRAM_APP_ID": {
                      "isOptional": true,
                      "description": "Optional: Instagram app ID for the standalone Instagram login provider.",
                      "defaultValue": ""
                    },
                    "REDDIT_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Optional: Reddit app client ID.",
                      "defaultValue": ""
                    },
                    "STORAGE_PROVIDER": {
                      "isOptional": true,
                      "description": "Media storage: local volume served at /uploads (Railway Buckets are private and Postiz has no generic S3 option).",
                      "defaultValue": "local"
                    },
                    "TEMPORAL_ADDRESS": {
                      "isOptional": true,
                      "description": "Temporal frontend (gRPC) on the private network; required since Postiz v2.12.0.",
                      "defaultValue": "${{Temporal.RAILWAY_PRIVATE_DOMAIN}}:7233"
                    },
                    "TIKTOK_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Optional: TikTok app client key.",
                      "defaultValue": ""
                    },
                    "UPLOAD_DIRECTORY": {
                      "isOptional": true,
                      "description": "Filesystem path for uploaded media; must match the volume mount and the image's nginx /uploads alias.",
                      "defaultValue": "/uploads"
                    },
                    "YOUTUBE_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Optional: Google OAuth client ID for YouTube.",
                      "defaultValue": ""
                    },
                    "EMAIL_FROM_ADDRESS": {
                      "isOptional": true,
                      "description": "Optional: sender address for outgoing email.",
                      "defaultValue": ""
                    },
                    "LINKEDIN_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Optional: LinkedIn app client ID, needed to connect LinkedIn profiles and pages.",
                      "defaultValue": ""
                    },
                    "MASTODON_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Optional: Mastodon application client key.",
                      "defaultValue": ""
                    },
                    "TEMPORAL_NAMESPACE": {
                      "isOptional": true,
                      "description": "Temporal namespace for Postiz workflows (created by the Temporal service).",
                      "defaultValue": "${{Temporal.DEFAULT_NAMESPACE}}"
                    },
                    "THREADS_APP_SECRET": {
                      "isOptional": true,
                      "description": "Optional: Threads app secret.",
                      "defaultValue": ""
                    },
                    "FACEBOOK_APP_SECRET": {
                      "isOptional": true,
                      "description": "Optional: Meta app secret for Facebook and Instagram (via Facebook login).",
                      "defaultValue": ""
                    },
                    "PINTEREST_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Optional: Pinterest app ID.",
                      "defaultValue": ""
                    },
                    "BACKEND_INTERNAL_URL": {
                      "isOptional": true,
                      "description": "URL the frontend server uses to reach the backend inside the same container.",
                      "defaultValue": "http://localhost:3000"
                    },
                    "DISABLE_REGISTRATION": {
                      "isOptional": true,
                      "description": "When true only the first account can sign up (no organization exists yet); set false temporarily to let invited teammates register.",
                      "defaultValue": "true"
                    },
                    "INSTAGRAM_APP_SECRET": {
                      "isOptional": true,
                      "description": "Optional: Instagram app secret for the standalone Instagram login provider.",
                      "defaultValue": ""
                    },
                    "REDDIT_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Optional: Reddit app client secret.",
                      "defaultValue": ""
                    },
                    "TIKTOK_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Optional: TikTok app client secret.",
                      "defaultValue": ""
                    },
                    "YOUTUBE_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Optional: Google OAuth client secret for YouTube.",
                      "defaultValue": ""
                    },
                    "LINKEDIN_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Optional: LinkedIn app client secret.",
                      "defaultValue": ""
                    },
                    "MASTODON_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Optional: Mastodon application client secret.",
                      "defaultValue": ""
                    },
                    "NEXT_PUBLIC_BACKEND_URL": {
                      "isOptional": true,
                      "description": "Browser-facing backend URL (served by the built-in nginx under /api).",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/api"
                    },
                    "PINTEREST_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Optional: Pinterest app secret.",
                      "defaultValue": ""
                    },
                    "NEXT_PUBLIC_UPLOAD_STATIC_DIRECTORY": {
                      "isOptional": true,
                      "description": "Public URL prefix for uploaded media.",
                      "defaultValue": "/uploads"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:5000": {
                        "port": 5000
                      }
                    }
                  },
                  "volumeMounts": {
                    "ae4694ec-074d-5491-96bf-a52992139438": {
                      "mountPath": "/uploads"
                    }
                  }
                },
                "e82a3525-550a-5724-9571-b6cd8d339f1d": {
                  "icon": "https://avatars.githubusercontent.com/u/6764390?v=4",
                  "name": "Elasticsearch",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/_cluster/health?wait_for_status=yellow&timeout=5s",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/postiz-railway",
                    "branch": "main",
                    "rootDirectory": "/services/elasticsearch"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Elasticsearch HTTP port; tells Railway where to run the healthcheck.",
                      "defaultValue": "9200"
                    },
                    "ES_JAVA_OPTS": {
                      "isOptional": true,
                      "description": "JVM heap; keep it explicit, otherwise Elasticsearch sizes the heap from the container limit.",
                      "defaultValue": "-Xms512m -Xmx512m"
                    },
                    "ELASTIC_PASSWORD": {
                      "isOptional": true,
                      "description": "Password of the built-in elastic user (used by Temporal); set once, before the first deploy.",
                      "defaultValue": "{{ELASTIC_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Time allowed for a clean Elasticsearch shutdown on redeploy.",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "0bdf266f-3f36-5f33-949c-c85bb658816c": {
                      "mountPath": "/usr/share/elasticsearch/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Temporal UI",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 6,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T16:14:40.554Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-11T14:56:39.016Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_171a1d9f81574f77b73f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 312,
    "typical_build_seconds": 0,
    "typical_start_seconds": 101,
    "slowest_service": "Postiz"
  }
}
