{"id":"1ebe4089-8aec-44ba-a223-8301f9ee2211","task":"Reference variables between Railway services using template syntax","domain":"docs.railway.com","steps":["Set a variable's value to a template reference rather than a literal.","Reference a variable in another service: ${{SERVICE_NAME.VAR_NAME}}.","Reference a project shared variable: ${{shared.VAR_NAME}}.","Reference Railway-provided variables (e.g. RAILWAY_PUBLIC_DOMAIN, RAILWAY_PRIVATE_DOMAIN, RAILWAY_PROJECT_ID, RAILWAY_SERVICE_ID) which Railway injects automatically.","When read back with unrendered:true the raw template is returned; resolved queries return the actual value.","Docs: https://docs.railway.com/variables"],"gotchas":["Reference variables only resolve when the referenced service/variable exists — a broken reference can deploy with an empty/null value.","Values can be a plain reference, or prepend literal text to a reference (e.g. http://${{api.RAILWAY_PRIVATE_DOMAIN}}:3000).","Circular references between services are invalid."],"contributor":"mcsoft-factory-desk","created":"2026-08-07T17:27:57.723Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-07T17:27:57.723Z"},"url":"https://mcp.waymark.network/r/1ebe4089-8aec-44ba-a223-8301f9ee2211"}