{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c6f76a7e-923c-4817-b9ae-ad88b869ffb7",
    "slug": "infisical-open-source",
    "name": "Infisical Open Source [Updated Sep '26]",
    "description": "Infisical [Sep '26] (Open-Source Secrets Management) Self Host",
    "url": "https://railway.com/deploy/infisical-open-source",
    "upstream": {
      "repo_url": "https://github.com/shruti060701/infisical-railway"
    }
  },
  "services": [
    {
      "name": "infisical-railway",
      "source": {
        "repo": "https://github.com/shruti060701/infisical-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "SITE_URL",
      "service": "infisical-railway",
      "description": "Public URL this instance is reachable at. Used for building links in emails and OAuth redirects.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REDIS_URL",
      "service": "infisical-railway",
      "description": "Redis connection string, referenced from Railway's native Redis plugin.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTH_SECRET",
      "service": "infisical-railway",
      "description": "Session and authentication signing secret. Infisical's own docs specify a 32-byte base64 string (`openssl rand -base64 32`). ",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "infisical-railway",
      "description": "Master key encrypting every secret stored in this instance. Infisical's own docs specify a 16-byte hex string (`openssl rand -hex 16`), verify the composer's `${{secret()}}` output format matches this length requirement once live, since a mismatched length could fail app startup.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DB_CONNECTION_URI",
      "service": "infisical-railway",
      "description": "Postgres connection string, referenced from Railway's native Postgres plugin.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Directory where Postgres stores its data files.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private-network hostname for this service. Confirmed exactly via the live composer UI, this field is prefilled automatically, don't overwrite it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port Postgres listens on.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "libpq-style alias of `POSTGRES_USER`, some Postgres client tools read this name instead.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "libpq-style alias of `POSTGRES_DB`",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "libpq-style alias of `POSTGRES_PASSWORD`.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database name created on startup.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Full private-network connection string. This is what `infisical-railway`'s `DB_CONNECTION_URI` references. Confirmed live, matches the real resolved shape (`postgresql://postgres:[password]@postgres.railway.internal:5432/railway`).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser username for the database",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity period (in days) for the self-signed SSL certificate this image generates. Not required for Infisical's own connection since SSL is optional there (see section 5), but part of this plugin image's own setup.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password, auto-generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public connection string. Only resolves to a real, usable host/port once a TCP Proxy is enabled under this service's Settings → Networking, confirmed live it's an empty/unusable host:port until then.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private-network hostname for this service. Confirmed live as `redis.railway.internal`.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port Redis listens on.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default Redis ACL username.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Full private-network connection string. This is what `infisical-railway`'s `REDIS_URL` references. Confirmed live, matches the real resolved shape (`redis://default:[password]@redis.railway.internal:6379`).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of `REDIS_PASSWORD`, some Redis client libraries read this name instead.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Password securing this Redis instance, auto-generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Public connection string. Only resolves to a real host once a TCP Proxy is enabled under this service's Settings → Networking.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "infisical-open-source"
      }
    },
    "cli": "railway deploy --template infisical-open-source",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c6f76a7e-923c-4817-b9ae-ad88b869ffb7",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2e23b9d1-d411-4248-9469-e27f931eee40": {
                  "icon": "https://res.cloudinary.com/dojdzamvk/image/upload/Image_10_wy3tse.jpg",
                  "name": "infisical-railway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/status",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/shruti060701/infisical-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "SITE_URL": {
                      "isOptional": false,
                      "description": "Public URL this instance is reachable at. Used for building links in emails and OAuth redirects.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis connection string, referenced from Railway's native Redis plugin.",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Session and authentication signing secret. Infisical's own docs specify a 32-byte base64 string (`openssl rand -base64 32`). ",
                      "defaultValue": "{{AUTH_SECRET}}"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Master key encrypting every secret stored in this instance. Infisical's own docs specify a 16-byte hex string (`openssl rand -hex 16`), verify the composer's `${{secret()}}` output format matches this length requirement once live, since a mismatched length could fail app startup.",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "DB_CONNECTION_URI": {
                      "isOptional": false,
                      "description": "Postgres connection string, referenced from Railway's native Postgres plugin.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "955b2ad7-3842-464c-bb27-f6187236eb19": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "Directory where Postgres stores its data files.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "Private-network hostname for this service. Confirmed exactly via the live composer UI, this field is prefilled automatically, don't overwrite it.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "Port Postgres listens on.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "description": "libpq-style alias of `POSTGRES_USER`, some Postgres client tools read this name instead.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": true,
                      "description": "libpq-style alias of `POSTGRES_DB`",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "libpq-style alias of `POSTGRES_PASSWORD`.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database name created on startup.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Full private-network connection string. This is what `infisical-railway`'s `DB_CONNECTION_URI` references. Confirmed live, matches the real resolved shape (`postgresql://postgres:[password]@postgres.railway.internal:5432/railway`).",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Superuser username for the database",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "Validity period (in days) for the self-signed SSL certificate this image generates. Not required for Infisical's own connection since SSL is optional there (see section 5), but part of this plugin image's own setup.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, auto-generated per deploy.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": true,
                      "description": "Public connection string. Only resolves to a real, usable host/port once a TCP Proxy is enabled under this service's Settings → Networking, confirmed live it's an empty/unusable host:port until then.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Railway platform setting controlling deployment shutdown grace period. Not specific to this template, safe to leave unset.",
                      "defaultValue": ""
                    }
                  },
                  "volumeMounts": {
                    "955b2ad7-3842-464c-bb27-f6187236eb19": {
                      "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."
                  }
                },
                "fd36b814-253d-450d-aef5-a2611bec6181": {
                  "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\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": true,
                      "description": "Private-network hostname for this service. Confirmed live as `redis.railway.internal`.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": true,
                      "description": "Port Redis listens on.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": true,
                      "description": "Default Redis ACL username.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Full private-network connection string. This is what `infisical-railway`'s `REDIS_URL` references. Confirmed live, matches the real resolved shape (`redis://default:[password]@redis.railway.internal:6379`).",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": true,
                      "description": "Alias of `REDIS_PASSWORD`, some Redis client libraries read this name instead.",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Password securing this Redis instance, auto-generated per deploy.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": true,
                      "description": "Public connection string. Only resolves to a real host once a TCP Proxy is enabled under this service's Settings → Networking.",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "volumeMounts": {
                    "fd36b814-253d-450d-aef5-a2611bec6181": {
                      "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."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "infisical-railway",
      "method": "GET",
      "path": "/api/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-23T04:14:45.320Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-22T09:29:00.302Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_80e04a196c07432f9262",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 142,
    "typical_build_seconds": 33,
    "typical_start_seconds": 40,
    "slowest_service": "infisical-railway"
  }
}
