{
  "manifest_version": "1.0.0",
  "template": {
    "id": "124848a8-f9f7-48b0-91a1-672c28a22967",
    "slug": "infisical-v0166-secrets-manager",
    "name": "Infisical v0.166 Secrets Manager",
    "description": "Store, sync and rotate secrets for your apps and teams. Self-hosted.",
    "url": "https://railway.com/deploy/infisical-v0166-secrets-manager",
    "upstream": {
      "image": "infisical/infisical:v0.166.3"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "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": "Infisical Bootstrap",
      "source": {
        "repo": "https://github.com/baranberkay96/infisical-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Infisical",
      "source": {
        "image": "infisical/infisical:v0.166.3"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "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": "INFISICAL_ADMIN_EMAIL",
      "service": "Infisical Bootstrap",
      "description": "E-mail of the super-admin account this job creates right after the first boot (closes the 'first visitor becomes admin' window).",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "BOOTSTRAP_WAIT_SECONDS",
      "service": "Infisical Bootstrap",
      "description": "How long the job waits for Infisical to come up.",
      "secret": false,
      "strategy": "default",
      "default": "1200"
    },
    {
      "key": "INFISICAL_INTERNAL_URL",
      "service": "Infisical Bootstrap",
      "description": "Infisical's private address.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "INFISICAL_ADMIN_PASSWORD",
      "service": "Infisical Bootstrap",
      "description": "Password of the super-admin (letters and digits). Read it here for the first sign-in, then change it in Infisical.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "INFISICAL_ORGANIZATION_NAME",
      "service": "Infisical Bootstrap",
      "description": "Name of the first organization.",
      "secret": false,
      "strategy": "default",
      "default": "My Organization"
    },
    {
      "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": "HOST",
      "service": "Infisical",
      "description": "Bind address. :: is dual-stack, so the bootstrap job reaches Infisical in IPv6-only private networks too.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "PORT",
      "service": "Infisical",
      "description": "Port Infisical listens on; Railway routes traffic and healthchecks here.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "NODE_ENV",
      "service": "Infisical",
      "description": "Runtime mode.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "SITE_URL",
      "service": "Infisical",
      "description": "Absolute public URL (links in e-mails, OAuth/SAML callbacks). Change it when you add a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REDIS_URL",
      "service": "Infisical",
      "description": "Redis for cache and job queues. family=0 lets ioredis use IPv4 or IPv6 on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_PORT",
      "service": "Infisical",
      "description": "SMTP port (587 STARTTLS, 465 TLS).",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "AUTH_SECRET",
      "service": "Infisical",
      "description": "Signs JWT sessions: 44 base64 characters (~32 bytes, upstream: openssl rand -base64 32). Changing it signs everyone out.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "Infisical",
      "description": "Root key for platform encryption: 16 random bytes as 32 hex characters (upstream: openssl rand -hex 16). Back it up; without it stored secrets cannot be decrypted. Never change it without Infisical's key-rotation procedure.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SMTP_FROM_NAME",
      "service": "Infisical",
      "description": "Sender display name.",
      "secret": false,
      "strategy": "default",
      "default": "Infisical"
    },
    {
      "key": "DB_CONNECTION_URI",
      "service": "Infisical",
      "description": "Postgres connection string (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "Infisical",
      "description": "Anonymous usage telemetry to Infisical. Off by default in this template; set true to share it.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "infisical-v0166-secrets-manager"
      }
    },
    "cli": "railway deploy --template infisical-v0166-secrets-manager",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "124848a8-f9f7-48b0-91a1-672c28a22967",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4ff4ea8e-9b55-5019-96b9-f9aa36ab0622": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "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": {
                    "481ed9a5-cc43-5c67-b45f-d01c01b7e50d": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "58ece541-dfd8-5c14-9abf-d8aa70122eec": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/infisical.svg",
                  "name": "Infisical Bootstrap",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/infisical-railway",
                    "branch": "main",
                    "rootDirectory": "/services/bootstrap"
                  },
                  "variables": {
                    "INFISICAL_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "E-mail of the super-admin account this job creates right after the first boot (closes the 'first visitor becomes admin' window).",
                      "defaultValue": "{{INFISICAL_ADMIN_EMAIL}}"
                    },
                    "BOOTSTRAP_WAIT_SECONDS": {
                      "isOptional": true,
                      "description": "How long the job waits for Infisical to come up.",
                      "defaultValue": "1200"
                    },
                    "INFISICAL_INTERNAL_URL": {
                      "isOptional": true,
                      "description": "Infisical's private address.",
                      "defaultValue": "http://${{Infisical.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "INFISICAL_ADMIN_PASSWORD": {
                      "isOptional": true,
                      "description": "Password of the super-admin (letters and digits). Read it here for the first sign-in, then change it in Infisical.",
                      "defaultValue": "{{INFISICAL_ADMIN_PASSWORD}}"
                    },
                    "INFISICAL_ORGANIZATION_NAME": {
                      "isOptional": true,
                      "description": "Name of the first organization.",
                      "defaultValue": "My Organization"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "7f08f02d-f828-5563-b756-8de7037f9bab": {
                  "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 --maxmemory-policy noeviction\"",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "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": {
                    "9d7c58ba-6f15-596e-9f0d-b19e4d790a5a": {
                      "mountPath": "/data"
                    }
                  }
                },
                "80aba03b-b19c-5851-a96f-d983078c5837": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/infisical.svg",
                  "name": "Infisical",
                  "deploy": {
                    "healthcheckPath": "/api/status",
                    "preDeployCommand": [
                      "/bin/sh -c \"i=1; until npm run migration:latest; do if [ $i -ge 30 ]; then echo 'migrations failed 30 times'; exit 1; fi; i=$((i+1)); echo 'retrying migrations in 10s'; sleep 10; done\""
                    ],
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "preDeployTimeoutSeconds": 900,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "infisical/infisical:v0.166.3"
                  },
                  "variables": {
                    "HOST": {
                      "isOptional": true,
                      "description": "Bind address. :: is dual-stack, so the bootstrap job reaches Infisical in IPv6-only private networks too.",
                      "defaultValue": "::"
                    },
                    "PORT": {
                      "isOptional": true,
                      "description": "Port Infisical listens on; Railway routes traffic and healthchecks here.",
                      "defaultValue": "8080"
                    },
                    "NODE_ENV": {
                      "isOptional": true,
                      "description": "Runtime mode.",
                      "defaultValue": "production"
                    },
                    "SITE_URL": {
                      "isOptional": true,
                      "description": "Absolute public URL (links in e-mails, OAuth/SAML callbacks). Change it when you add a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "Redis for cache and job queues. family=0 lets ioredis use IPv4 or IPv6 on the private network.",
                      "defaultValue": "${{Redis.REDIS_URL}}?family=0"
                    },
                    "SMTP_HOST": {
                      "isOptional": true,
                      "description": "SMTP host for invitations, MFA codes and alerts (Infisical supports SMTP only; outbound SMTP needs Railway Pro). Optional.",
                      "defaultValue": ""
                    },
                    "SMTP_PORT": {
                      "isOptional": true,
                      "description": "SMTP port (587 STARTTLS, 465 TLS).",
                      "defaultValue": "587"
                    },
                    "AUTH_SECRET": {
                      "isOptional": true,
                      "description": "Signs JWT sessions: 44 base64 characters (~32 bytes, upstream: openssl rand -base64 32). Changing it signs everyone out.",
                      "defaultValue": "{{AUTH_SECRET}}"
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password. Optional.",
                      "defaultValue": ""
                    },
                    "SMTP_USERNAME": {
                      "isOptional": true,
                      "description": "SMTP username. Optional.",
                      "defaultValue": ""
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": true,
                      "description": "Root key for platform encryption: 16 random bytes as 32 hex characters (upstream: openssl rand -hex 16). Back it up; without it stored secrets cannot be decrypted. Never change it without Infisical's key-rotation procedure.",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "SMTP_FROM_NAME": {
                      "isOptional": true,
                      "description": "Sender display name.",
                      "defaultValue": "Infisical"
                    },
                    "DB_CONNECTION_URI": {
                      "isOptional": true,
                      "description": "Postgres connection string (private network).",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "SMTP_FROM_ADDRESS": {
                      "isOptional": true,
                      "description": "Sender address, e.g. infisical@yourcompany.com. Optional.",
                      "defaultValue": ""
                    },
                    "TELEMETRY_ENABLED": {
                      "isOptional": true,
                      "description": "Anonymous usage telemetry to Infisical. Off by default in this template; set true to share it.",
                      "defaultValue": "false"
                    },
                    "CLIENT_ID_GITHUB_LOGIN": {
                      "isOptional": true,
                      "description": "Optional GitHub OAuth app client ID for 'Continue with GitHub' (callback: SITE_URL/api/v1/sso/github).",
                      "defaultValue": ""
                    },
                    "CLIENT_ID_GOOGLE_LOGIN": {
                      "isOptional": true,
                      "description": "Optional Google OAuth client ID for 'Continue with Google' (redirect: SITE_URL/api/v1/sso/google).",
                      "defaultValue": ""
                    },
                    "CLIENT_SECRET_GITHUB_LOGIN": {
                      "isOptional": true,
                      "description": "Optional GitHub OAuth app client secret.",
                      "defaultValue": ""
                    },
                    "CLIENT_SECRET_GOOGLE_LOGIN": {
                      "isOptional": true,
                      "description": "Optional Google OAuth client secret.",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Infisical",
      "method": "GET",
      "path": "/api/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T22:14:38.939Z",
  "generator_version": "0.1.0"
}
