{
  "manifest_version": "1.0.0",
  "template": {
    "id": "cc633253-bbf8-467b-9423-dde343255f4f",
    "slug": "zammad-help-desk",
    "name": "Zammad: Help desk, Zendesk alternative",
    "description": "Helpdesk ticketing, shared inbox, SLAs. Zendesk/Freshdesk alternative.",
    "url": "https://railway.com/deploy/zammad-help-desk",
    "upstream": {
      "image": "ghcr.io/zammad/zammad:7.2.0"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:17.11-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Zammad Nginx",
      "source": {
        "image": "ghcr.io/zammad/zammad:7.2.0"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Memcached",
      "source": {
        "image": "memcached:1.6.45-alpine"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Zammad Scheduler",
      "source": {
        "image": "ghcr.io/zammad/zammad:7.2.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.8-alpine"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Zammad Rails",
      "source": {
        "image": "ghcr.io/zammad/zammad:7.2.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Zammad Websocket",
      "source": {
        "image": "ghcr.io/zammad/zammad:7.2.0"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "[Do not change] Data directory, a subfolder of the volume mount.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "[Do not change] Database Zammad uses.",
      "secret": false,
      "strategy": "default",
      "default": "zammad_production"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "[Do not change] Database user Zammad connects as.",
      "secret": false,
      "strategy": "default",
      "default": "zammad"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "[Do not change] Database password. Zammad reads it by reference.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Zammad Nginx",
      "description": "[Do not change] Port nginx listens on; the public domain targets it.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "REDIS_URL",
      "service": "Zammad Nginx",
      "description": "[Do not change] Redis address for sessions and live updates.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_DB",
      "service": "Zammad Nginx",
      "description": "[Do not change] Database name.",
      "secret": false,
      "strategy": "default",
      "default": "zammad_production"
    },
    {
      "key": "POSTGRESQL_HOST",
      "service": "Zammad Nginx",
      "description": "[Do not change] Postgres private address.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_PASS",
      "service": "Zammad Nginx",
      "description": "[Do not change] Database password, read from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRESQL_PORT",
      "service": "Zammad Nginx",
      "description": "[Do not change] Postgres port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRESQL_USER",
      "service": "Zammad Nginx",
      "description": "[Do not change] Database user, read from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEMCACHE_SERVERS",
      "service": "Zammad Nginx",
      "description": "[Do not change] Memcached address for the Rails cache.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_OPTIONS",
      "service": "Zammad Nginx",
      "description": "Database connection options (pool of 50 connections).",
      "secret": false,
      "strategy": "default",
      "default": "?pool=50"
    },
    {
      "key": "NGINX_SERVER_SCHEME",
      "service": "Zammad Nginx",
      "description": "[Do not change] Scheme nginx reports to Zammad. Railway serves the app over HTTPS.",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "POSTGRESQL_DB_CREATE",
      "service": "Zammad Nginx",
      "description": "[Do not change] The database already exists, so Zammad does not create it.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ELASTICSEARCH_ENABLED",
      "service": "Zammad Nginx",
      "description": "[Do not change] Search runs in PostgreSQL; this template has no Elasticsearch.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILS_TRUSTED_PROXIES",
      "service": "Zammad Nginx",
      "description": "[Do not change] Proxy addresses Zammad trusts, including Railway's private network.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1,::1,100.64.0.0/10"
    },
    {
      "key": "REDIS_URL",
      "service": "Zammad Scheduler",
      "description": "[Do not change] Redis address for sessions and live updates.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_DB",
      "service": "Zammad Scheduler",
      "description": "[Do not change] Database name.",
      "secret": false,
      "strategy": "default",
      "default": "zammad_production"
    },
    {
      "key": "POSTGRESQL_HOST",
      "service": "Zammad Scheduler",
      "description": "[Do not change] Postgres private address.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_PASS",
      "service": "Zammad Scheduler",
      "description": "[Do not change] Database password, read from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRESQL_PORT",
      "service": "Zammad Scheduler",
      "description": "[Do not change] Postgres port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRESQL_USER",
      "service": "Zammad Scheduler",
      "description": "[Do not change] Database user, read from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEMCACHE_SERVERS",
      "service": "Zammad Scheduler",
      "description": "[Do not change] Memcached address for the Rails cache.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_OPTIONS",
      "service": "Zammad Scheduler",
      "description": "Database connection options (pool of 50 connections).",
      "secret": false,
      "strategy": "default",
      "default": "?pool=50"
    },
    {
      "key": "POSTGRESQL_DB_CREATE",
      "service": "Zammad Scheduler",
      "description": "[Do not change] The database already exists, so Zammad does not create it.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ELASTICSEARCH_ENABLED",
      "service": "Zammad Scheduler",
      "description": "[Do not change] Search runs in PostgreSQL; this template has no Elasticsearch.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILS_TRUSTED_PROXIES",
      "service": "Zammad Scheduler",
      "description": "[Do not change] Proxy addresses Zammad trusts, including Railway's private network.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1,::1,100.64.0.0/10"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Redis",
      "description": "[Do not change] Runs the Redis container as root.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_URL",
      "service": "Zammad Rails",
      "description": "[Do not change] Redis address for sessions and live updates.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_DB",
      "service": "Zammad Rails",
      "description": "[Do not change] Database name.",
      "secret": false,
      "strategy": "default",
      "default": "zammad_production"
    },
    {
      "key": "POSTGRESQL_HOST",
      "service": "Zammad Rails",
      "description": "[Do not change] Postgres private address.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_PASS",
      "service": "Zammad Rails",
      "description": "[Do not change] Database password, read from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRESQL_PORT",
      "service": "Zammad Rails",
      "description": "[Do not change] Postgres port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRESQL_USER",
      "service": "Zammad Rails",
      "description": "[Do not change] Database user, read from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEMCACHE_SERVERS",
      "service": "Zammad Rails",
      "description": "[Do not change] Memcached address for the Rails cache.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_OPTIONS",
      "service": "Zammad Rails",
      "description": "Database connection options (pool of 50 connections).",
      "secret": false,
      "strategy": "default",
      "default": "?pool=50"
    },
    {
      "key": "POSTGRESQL_DB_CREATE",
      "service": "Zammad Rails",
      "description": "[Do not change] The database already exists, so Zammad does not create it.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ELASTICSEARCH_ENABLED",
      "service": "Zammad Rails",
      "description": "[Do not change] Search runs in PostgreSQL; this template has no Elasticsearch.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILS_TRUSTED_PROXIES",
      "service": "Zammad Rails",
      "description": "[Do not change] Proxy addresses Zammad trusts, including Railway's private network.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1,::1,100.64.0.0/10"
    },
    {
      "key": "REDIS_URL",
      "service": "Zammad Websocket",
      "description": "[Do not change] Redis address for sessions and live updates.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_DB",
      "service": "Zammad Websocket",
      "description": "[Do not change] Database name.",
      "secret": false,
      "strategy": "default",
      "default": "zammad_production"
    },
    {
      "key": "POSTGRESQL_HOST",
      "service": "Zammad Websocket",
      "description": "[Do not change] Postgres private address.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_PASS",
      "service": "Zammad Websocket",
      "description": "[Do not change] Database password, read from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRESQL_PORT",
      "service": "Zammad Websocket",
      "description": "[Do not change] Postgres port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRESQL_USER",
      "service": "Zammad Websocket",
      "description": "[Do not change] Database user, read from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEMCACHE_SERVERS",
      "service": "Zammad Websocket",
      "description": "[Do not change] Memcached address for the Rails cache.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_OPTIONS",
      "service": "Zammad Websocket",
      "description": "Database connection options (pool of 50 connections).",
      "secret": false,
      "strategy": "default",
      "default": "?pool=50"
    },
    {
      "key": "POSTGRESQL_DB_CREATE",
      "service": "Zammad Websocket",
      "description": "[Do not change] The database already exists, so Zammad does not create it.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ELASTICSEARCH_ENABLED",
      "service": "Zammad Websocket",
      "description": "[Do not change] Search runs in PostgreSQL; this template has no Elasticsearch.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILS_TRUSTED_PROXIES",
      "service": "Zammad Websocket",
      "description": "[Do not change] Proxy addresses Zammad trusts, including Railway's private network.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1,::1,100.64.0.0/10"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "zammad-help-desk"
      }
    },
    "cli": "railway deploy --template zammad-help-desk",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "cc633253-bbf8-467b-9423-dde343255f4f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3ee314a4-c8ad-4c46-97a5-712c560a65cc": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.11-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "[Do not change] Data directory, a subfolder of the volume mount.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "[Do not change] Database Zammad uses.",
                      "defaultValue": "zammad_production"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "[Do not change] Database user Zammad connects as.",
                      "defaultValue": "zammad"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "[Do not change] Database password. Zammad reads it by reference.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "3ee314a4-c8ad-4c46-97a5-712c560a65cc": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "617e5ffb-c54a-45d7-ad68-92ab6990baf8": {
                  "icon": "https://github.com/zammad.png",
                  "name": "Zammad Nginx",
                  "deploy": {
                    "startCommand": "bash -c 'set -e; cd /opt/zammad; : \"${NGINX_PORT:=8080}\"; : \"${NGINX_SERVER_NAME:=_}\"; : \"${NGINX_SERVER_SCHEME:=\\$scheme}\"; : \"${NGINX_CLIENT_MAX_BODY_SIZE:=50M}\"; : \"${ZAMMAD_RAILSSERVER_HOST:=zammad-rails.railway.internal}\"; : \"${ZAMMAD_RAILSSERVER_PORT:=3000}\"; : \"${ZAMMAD_WEBSOCKET_HOST:=zammad-websocket.railway.internal}\"; : \"${ZAMMAD_WEBSOCKET_PORT:=6042}\"; NS=$(grep \"^nameserver\" --max-count 1 < /etc/resolv.conf | awk \"{print \\$2}\"); case \"$NS\" in *:*) [ \"${NS#[}\" = \"$NS\" ] && NS=\"[$NS]\";; esac; echo \"resolver $NS valid=5s;\" > /etc/nginx/conf.d/resolver.conf; sed -e \"s#\\(listen\\)\\(.*\\)80#\\1\\2${NGINX_PORT}#g\" -e \"s#proxy_set_header X-Forwarded-Proto .*;#proxy_set_header X-Forwarded-Proto ${NGINX_SERVER_SCHEME};#g\" -e \"s#proxy_pass http://zammad-railsserver;#set \\$zammad_railsserver_url http://${ZAMMAD_RAILSSERVER_HOST}:${ZAMMAD_RAILSSERVER_PORT}; proxy_pass \\$zammad_railsserver_url;#g\" -e \"s#proxy_pass http://zammad-websocket;#set \\$zammad_websocket_url http://${ZAMMAD_WEBSOCKET_HOST}:${ZAMMAD_WEBSOCKET_PORT}; proxy_pass \\$zammad_websocket_url;#g\" -e \"s#server_name .*#server_name ${NGINX_SERVER_NAME};#g\" -e \"s#client_max_body_size .*#client_max_body_size ${NGINX_CLIENT_MAX_BODY_SIZE};#g\" -e \"s#/var/log/nginx/zammad.\\(access\\|error\\).log#/dev/stdout#g\" < contrib/nginx/zammad.conf > /etc/nginx/sites-enabled/default; exec /usr/sbin/nginx -g \"daemon off;\"'",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/zammad/zammad:7.2.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "[Do not change] Port nginx listens on; the public domain targets it.",
                      "defaultValue": "8080"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "[Do not change] Redis address for sessions and live updates.",
                      "defaultValue": "redis://${{Redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "POSTGRESQL_DB": {
                      "isOptional": false,
                      "description": "[Do not change] Database name.",
                      "defaultValue": "zammad_production"
                    },
                    "POSTGRESQL_HOST": {
                      "isOptional": false,
                      "description": "[Do not change] Postgres private address.",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRESQL_PASS": {
                      "isOptional": false,
                      "description": "[Do not change] Database password, read from the Postgres service.",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "POSTGRESQL_PORT": {
                      "isOptional": false,
                      "description": "[Do not change] Postgres port.",
                      "defaultValue": "5432"
                    },
                    "POSTGRESQL_USER": {
                      "isOptional": false,
                      "description": "[Do not change] Database user, read from the Postgres service.",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "MEMCACHE_SERVERS": {
                      "isOptional": false,
                      "description": "[Do not change] Memcached address for the Rails cache.",
                      "defaultValue": "${{Memcached.RAILWAY_PRIVATE_DOMAIN}}:11211"
                    },
                    "POSTGRESQL_OPTIONS": {
                      "isOptional": false,
                      "description": "Database connection options (pool of 50 connections).",
                      "defaultValue": "?pool=50"
                    },
                    "NGINX_SERVER_SCHEME": {
                      "description": "[Do not change] Scheme nginx reports to Zammad. Railway serves the app over HTTPS.",
                      "defaultValue": "https"
                    },
                    "POSTGRESQL_DB_CREATE": {
                      "isOptional": false,
                      "description": "[Do not change] The database already exists, so Zammad does not create it.",
                      "defaultValue": "false"
                    },
                    "ELASTICSEARCH_ENABLED": {
                      "isOptional": false,
                      "description": "[Do not change] Search runs in PostgreSQL; this template has no Elasticsearch.",
                      "defaultValue": "false"
                    },
                    "RAILS_TRUSTED_PROXIES": {
                      "isOptional": false,
                      "description": "[Do not change] Proxy addresses Zammad trusts, including Railway's private network.",
                      "defaultValue": "127.0.0.1,::1,100.64.0.0/10"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "7939cef5-ac5e-409e-b26b-101605616442": {
                  "icon": "https://github.com/memcached.png",
                  "name": "Memcached",
                  "deploy": {
                    "startCommand": "memcached -m 256M",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "memcached:1.6.45-alpine"
                  },
                  "variables": {}
                },
                "8e044fcd-806d-4be8-ad76-8a548f378008": {
                  "icon": "https://github.com/zammad.png",
                  "name": "Zammad Scheduler",
                  "deploy": {
                    "startCommand": "bash -c \"cd /opt/zammad && exec /opt/zammad/bin/docker-entrypoint zammad-scheduler\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/zammad/zammad:7.2.0"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "[Do not change] Redis address for sessions and live updates.",
                      "defaultValue": "redis://${{Redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "POSTGRESQL_DB": {
                      "isOptional": false,
                      "description": "[Do not change] Database name.",
                      "defaultValue": "zammad_production"
                    },
                    "POSTGRESQL_HOST": {
                      "isOptional": false,
                      "description": "[Do not change] Postgres private address.",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRESQL_PASS": {
                      "isOptional": false,
                      "description": "[Do not change] Database password, read from the Postgres service.",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "POSTGRESQL_PORT": {
                      "isOptional": false,
                      "description": "[Do not change] Postgres port.",
                      "defaultValue": "5432"
                    },
                    "POSTGRESQL_USER": {
                      "isOptional": false,
                      "description": "[Do not change] Database user, read from the Postgres service.",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "MEMCACHE_SERVERS": {
                      "isOptional": false,
                      "description": "[Do not change] Memcached address for the Rails cache.",
                      "defaultValue": "${{Memcached.RAILWAY_PRIVATE_DOMAIN}}:11211"
                    },
                    "POSTGRESQL_OPTIONS": {
                      "isOptional": false,
                      "description": "Database connection options (pool of 50 connections).",
                      "defaultValue": "?pool=50"
                    },
                    "POSTGRESQL_DB_CREATE": {
                      "isOptional": false,
                      "description": "[Do not change] The database already exists, so Zammad does not create it.",
                      "defaultValue": "false"
                    },
                    "ELASTICSEARCH_ENABLED": {
                      "isOptional": false,
                      "description": "[Do not change] Search runs in PostgreSQL; this template has no Elasticsearch.",
                      "defaultValue": "false"
                    },
                    "RAILS_TRUSTED_PROXIES": {
                      "isOptional": false,
                      "description": "[Do not change] Proxy addresses Zammad trusts, including Railway's private network.",
                      "defaultValue": "127.0.0.1,::1,100.64.0.0/10"
                    }
                  }
                },
                "b8dd67e1-58ba-4a43-8089-ece15b3ee004": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.8-alpine"
                  },
                  "variables": {
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "[Do not change] Runs the Redis container as root.",
                      "defaultValue": "0"
                    }
                  },
                  "volumeMounts": {},
                  "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."
                  }
                },
                "c55a8aef-fb1d-4bd8-973a-6cd91eb2fc56": {
                  "icon": "https://github.com/zammad.png",
                  "name": "Zammad Rails",
                  "deploy": {
                    "startCommand": "bash -c \"cd /opt/zammad && /opt/zammad/bin/docker-entrypoint zammad-init && exec /opt/zammad/bin/docker-entrypoint zammad-railsserver\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/zammad/zammad:7.2.0"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "[Do not change] Redis address for sessions and live updates.",
                      "defaultValue": "redis://${{Redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "POSTGRESQL_DB": {
                      "isOptional": false,
                      "description": "[Do not change] Database name.",
                      "defaultValue": "zammad_production"
                    },
                    "POSTGRESQL_HOST": {
                      "isOptional": false,
                      "description": "[Do not change] Postgres private address.",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRESQL_PASS": {
                      "isOptional": false,
                      "description": "[Do not change] Database password, read from the Postgres service.",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "POSTGRESQL_PORT": {
                      "isOptional": false,
                      "description": "[Do not change] Postgres port.",
                      "defaultValue": "5432"
                    },
                    "POSTGRESQL_USER": {
                      "isOptional": false,
                      "description": "[Do not change] Database user, read from the Postgres service.",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "MEMCACHE_SERVERS": {
                      "isOptional": false,
                      "description": "[Do not change] Memcached address for the Rails cache.",
                      "defaultValue": "${{Memcached.RAILWAY_PRIVATE_DOMAIN}}:11211"
                    },
                    "POSTGRESQL_OPTIONS": {
                      "isOptional": false,
                      "description": "Database connection options (pool of 50 connections).",
                      "defaultValue": "?pool=50"
                    },
                    "POSTGRESQL_DB_CREATE": {
                      "isOptional": false,
                      "description": "[Do not change] The database already exists, so Zammad does not create it.",
                      "defaultValue": "false"
                    },
                    "ELASTICSEARCH_ENABLED": {
                      "isOptional": false,
                      "description": "[Do not change] Search runs in PostgreSQL; this template has no Elasticsearch.",
                      "defaultValue": "false"
                    },
                    "RAILS_TRUSTED_PROXIES": {
                      "isOptional": false,
                      "description": "[Do not change] Proxy addresses Zammad trusts, including Railway's private network.",
                      "defaultValue": "127.0.0.1,::1,100.64.0.0/10"
                    }
                  }
                },
                "e7677009-d468-4692-9af5-22592e93de8f": {
                  "icon": "https://github.com/zammad.png",
                  "name": "Zammad Websocket",
                  "deploy": {
                    "startCommand": "bash -c \"cd /opt/zammad && exec /opt/zammad/bin/docker-entrypoint zammad-websocket\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/zammad/zammad:7.2.0"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "[Do not change] Redis address for sessions and live updates.",
                      "defaultValue": "redis://${{Redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "POSTGRESQL_DB": {
                      "isOptional": false,
                      "description": "[Do not change] Database name.",
                      "defaultValue": "zammad_production"
                    },
                    "POSTGRESQL_HOST": {
                      "isOptional": false,
                      "description": "[Do not change] Postgres private address.",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRESQL_PASS": {
                      "isOptional": false,
                      "description": "[Do not change] Database password, read from the Postgres service.",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "POSTGRESQL_PORT": {
                      "isOptional": false,
                      "description": "[Do not change] Postgres port.",
                      "defaultValue": "5432"
                    },
                    "POSTGRESQL_USER": {
                      "isOptional": false,
                      "description": "[Do not change] Database user, read from the Postgres service.",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "MEMCACHE_SERVERS": {
                      "isOptional": false,
                      "description": "[Do not change] Memcached address for the Rails cache.",
                      "defaultValue": "${{Memcached.RAILWAY_PRIVATE_DOMAIN}}:11211"
                    },
                    "POSTGRESQL_OPTIONS": {
                      "isOptional": false,
                      "description": "Database connection options (pool of 50 connections).",
                      "defaultValue": "?pool=50"
                    },
                    "POSTGRESQL_DB_CREATE": {
                      "isOptional": false,
                      "description": "[Do not change] The database already exists, so Zammad does not create it.",
                      "defaultValue": "false"
                    },
                    "ELASTICSEARCH_ENABLED": {
                      "isOptional": false,
                      "description": "[Do not change] Search runs in PostgreSQL; this template has no Elasticsearch.",
                      "defaultValue": "false"
                    },
                    "RAILS_TRUSTED_PROXIES": {
                      "isOptional": false,
                      "description": "[Do not change] Proxy addresses Zammad trusts, including Railway's private network.",
                      "defaultValue": "127.0.0.1,::1,100.64.0.0/10"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Zammad Nginx",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 7,
    "needs_volume": true
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-05T11:50:54.971Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_955a3eb3f2fc4c8dafcf",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 166,
    "typical_build_seconds": 0,
    "typical_start_seconds": 132,
    "slowest_service": "Zammad Nginx"
  }
}
