{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5a0ebfdc-c089-4132-a73a-3e23ebbe22e9",
    "slug": "twenty-2",
    "name": "Twenty",
    "description": "Twenty CRM with worker, Postgres and file storage, admin set at deploy",
    "url": "https://railway.com/deploy/twenty-2",
    "upstream": {
      "repo_url": "https://github.com/dektionstudio/railway-template-images"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Twenty",
      "source": {
        "repo": "https://github.com/dektionstudio/railway-template-images"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Twenty Worker",
      "source": {
        "image": "twentycrm/twenty:v2.42.6"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:7.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory inside the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "twenty"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database superuser",
      "secret": false,
      "strategy": "default",
      "default": "twenty"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Database password (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Twenty",
      "description": "Port Railway routes to",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NODE_PORT",
      "service": "Twenty",
      "description": "Twenty's port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "REDIS_URL",
      "service": "Twenty",
      "description": "Redis over the private network (family=0 lets the client use IPv6)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "APP_SECRET",
      "service": "Twenty",
      "description": "Signs sessions and tokens (generated). Keep it",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SERVER_URL",
      "service": "Twenty",
      "description": "Public URL of Twenty. Change it when you add a custom domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TWENTY_URL",
      "service": "Twenty",
      "description": "Open this and sign in with TWENTY_ADMIN_EMAIL and TWENTY_ADMIN_PASSWORD",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "Twenty",
      "description": "Node heap limit. Twenty needs more than Node's default on a 1 GB service; raise it on bigger plans",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=640"
    },
    {
      "key": "STORAGE_TYPE",
      "service": "Twenty",
      "description": "Files go to the Railway Bucket",
      "secret": false,
      "strategy": "default",
      "default": "s3"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "Twenty",
      "description": "Encrypts stored secrets such as OAuth tokens (generated). Keep it; changing it needs Twenty's key rotation",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TWENTY_VERSION",
      "service": "Twenty",
      "description": "Image tag the server is built from. To upgrade, change it here and in the worker's image",
      "secret": false,
      "strategy": "default",
      "default": "v2.42.6"
    },
    {
      "key": "PG_DATABASE_URL",
      "service": "Twenty",
      "description": "Postgres over the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "STORAGE_S3_NAME",
      "service": "Twenty",
      "description": "Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_REGION",
      "service": "Twenty",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "Twenty",
      "description": "Usage telemetry to Twenty off",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TWENTY_ADMIN_EMAIL",
      "service": "Twenty",
      "description": "Email of the admin account, created with the workspace on first start. Sign in with it and TWENTY_ADMIN_PASSWORD",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "STORAGE_S3_ENDPOINT",
      "service": "Twenty",
      "description": "Bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TWENTY_ADMIN_PASSWORD",
      "service": "Twenty",
      "description": "Password of the admin account (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TWENTY_WORKSPACE_NAME",
      "service": "Twenty",
      "description": "Name of the workspace created on first start; you can rename it in the settings",
      "secret": false,
      "strategy": "default",
      "default": "My Workspace"
    },
    {
      "key": "STORAGE_S3_ACCESS_KEY_ID",
      "service": "Twenty",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_SECRET_ACCESS_KEY",
      "service": "Twenty",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "Twenty",
      "description": "Lets the Alpine-based image resolve Railway private domains",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDIS_URL",
      "service": "Twenty Worker",
      "description": "Redis over the private network (family=0 lets the client use IPv6)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_SECRET",
      "service": "Twenty Worker",
      "description": "Signs sessions and tokens (generated). Keep it",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_URL",
      "service": "Twenty Worker",
      "description": "Public URL of Twenty. Change it when you add a custom domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "Twenty Worker",
      "description": "Node heap limit. Twenty needs more than Node's default on a 1 GB service; raise it on bigger plans",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=640"
    },
    {
      "key": "STORAGE_TYPE",
      "service": "Twenty Worker",
      "description": "Files go to the Railway Bucket",
      "secret": false,
      "strategy": "default",
      "default": "s3"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "Twenty Worker",
      "description": "Encrypts stored secrets such as OAuth tokens (generated). Keep it; changing it needs Twenty's key rotation",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PG_DATABASE_URL",
      "service": "Twenty Worker",
      "description": "Postgres over the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_NAME",
      "service": "Twenty Worker",
      "description": "Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_REGION",
      "service": "Twenty Worker",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "Twenty Worker",
      "description": "Usage telemetry to Twenty off",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "STORAGE_S3_ENDPOINT",
      "service": "Twenty Worker",
      "description": "Bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DISABLE_DB_MIGRATIONS",
      "service": "Twenty Worker",
      "description": "The server runs the migrations",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "STORAGE_S3_ACCESS_KEY_ID",
      "service": "Twenty Worker",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_SECRET_ACCESS_KEY",
      "service": "Twenty Worker",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DISABLE_CRON_JOBS_REGISTRATION",
      "service": "Twenty Worker",
      "description": "The server registers the background jobs",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "Twenty Worker",
      "description": "Lets the Alpine-based image resolve Railway private domains",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Redis password (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "twenty-2"
      }
    },
    "cli": "railway deploy --template twenty-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5a0ebfdc-c089-4132-a73a-3e23ebbe22e9",
            "serializedConfig": {
              "buckets": {
                "2ba24b8f-af04-47c3-93f8-308bd67f683f": {
                  "name": "Files"
                }
              },
              "services": {
                "29fe4e7a-de69-4130-a659-6e5e7573add4": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:16"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory inside the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "twenty"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database superuser",
                      "defaultValue": "twenty"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password (generated)",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "2b4d51d4-e17e-4ddc-8dcb-6ed1f2b49cb1": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "68628b89-17cf-4a20-9c90-b686f8286529": {
                  "icon": "https://raw.githubusercontent.com/twentyhq/twenty/1e14eecba3a8ad8c72bb09da74f7c95d21f4cf04/packages/twenty-front/public/images/icons/android/android-launchericon-192-192.png",
                  "name": "Twenty",
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "dektionstudio/railway-template-images",
                    "rootDirectory": "/twenty"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes to",
                      "defaultValue": "3000"
                    },
                    "NODE_PORT": {
                      "isOptional": false,
                      "description": "Twenty's port",
                      "defaultValue": "3000"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis over the private network (family=0 lets the client use IPv6)",
                      "defaultValue": "redis://default:${{Redis.REDIS_PASSWORD}}@${{Redis.RAILWAY_PRIVATE_DOMAIN}}:6379?family=0"
                    },
                    "APP_SECRET": {
                      "isOptional": false,
                      "description": "Signs sessions and tokens (generated). Keep it",
                      "defaultValue": "{{APP_SECRET}}"
                    },
                    "SERVER_URL": {
                      "isOptional": false,
                      "description": "Public URL of Twenty. Change it when you add a custom domain",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TWENTY_URL": {
                      "isOptional": false,
                      "description": "Open this and sign in with TWENTY_ADMIN_EMAIL and TWENTY_ADMIN_PASSWORD",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node heap limit. Twenty needs more than Node's default on a 1 GB service; raise it on bigger plans",
                      "defaultValue": "--max-old-space-size=640"
                    },
                    "STORAGE_TYPE": {
                      "isOptional": false,
                      "description": "Files go to the Railway Bucket",
                      "defaultValue": "s3"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored secrets such as OAuth tokens (generated). Keep it; changing it needs Twenty's key rotation",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "TWENTY_VERSION": {
                      "isOptional": false,
                      "description": "Image tag the server is built from. To upgrade, change it here and in the worker's image",
                      "defaultValue": "v2.42.6"
                    },
                    "PG_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres over the private network",
                      "defaultValue": "postgres://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "STORAGE_S3_NAME": {
                      "isOptional": false,
                      "description": "Bucket name",
                      "defaultValue": "${{Files.BUCKET}}"
                    },
                    "STORAGE_S3_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{Files.REGION}}"
                    },
                    "TELEMETRY_ENABLED": {
                      "isOptional": false,
                      "description": "Usage telemetry to Twenty off",
                      "defaultValue": "false"
                    },
                    "TWENTY_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Email of the admin account, created with the workspace on first start. Sign in with it and TWENTY_ADMIN_PASSWORD",
                      "defaultValue": "{{TWENTY_ADMIN_EMAIL}}"
                    },
                    "STORAGE_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket endpoint",
                      "defaultValue": "${{Files.ENDPOINT}}"
                    },
                    "TWENTY_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password of the admin account (generated)",
                      "defaultValue": "{{TWENTY_ADMIN_PASSWORD}}"
                    },
                    "TWENTY_WORKSPACE_NAME": {
                      "isOptional": false,
                      "description": "Name of the workspace created on first start; you can rename it in the settings",
                      "defaultValue": "My Workspace"
                    },
                    "STORAGE_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{Files.ACCESS_KEY_ID}}"
                    },
                    "STORAGE_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{Files.SECRET_ACCESS_KEY}}"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "isOptional": false,
                      "description": "Lets the Alpine-based image resolve Railway private domains",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "6c7697cc-e07f-47df-bd73-0feee3daaffb": {
                  "icon": "https://raw.githubusercontent.com/twentyhq/twenty/1e14eecba3a8ad8c72bb09da74f7c95d21f4cf04/packages/twenty-front/public/images/icons/android/android-launchericon-192-192.png",
                  "name": "Twenty Worker",
                  "deploy": {
                    "startCommand": "node dist/queue-worker/queue-worker",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "twentycrm/twenty:v2.42.6"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis over the private network (family=0 lets the client use IPv6)",
                      "defaultValue": "${{Twenty.REDIS_URL}}"
                    },
                    "APP_SECRET": {
                      "isOptional": false,
                      "description": "Signs sessions and tokens (generated). Keep it",
                      "defaultValue": "${{Twenty.APP_SECRET}}"
                    },
                    "SERVER_URL": {
                      "isOptional": false,
                      "description": "Public URL of Twenty. Change it when you add a custom domain",
                      "defaultValue": "${{Twenty.SERVER_URL}}"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node heap limit. Twenty needs more than Node's default on a 1 GB service; raise it on bigger plans",
                      "defaultValue": "--max-old-space-size=640"
                    },
                    "STORAGE_TYPE": {
                      "isOptional": false,
                      "description": "Files go to the Railway Bucket",
                      "defaultValue": "s3"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored secrets such as OAuth tokens (generated). Keep it; changing it needs Twenty's key rotation",
                      "defaultValue": "${{Twenty.ENCRYPTION_KEY}}"
                    },
                    "PG_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres over the private network",
                      "defaultValue": "${{Twenty.PG_DATABASE_URL}}"
                    },
                    "STORAGE_S3_NAME": {
                      "isOptional": false,
                      "description": "Bucket name",
                      "defaultValue": "${{Twenty.STORAGE_S3_NAME}}"
                    },
                    "STORAGE_S3_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{Twenty.STORAGE_S3_REGION}}"
                    },
                    "TELEMETRY_ENABLED": {
                      "isOptional": false,
                      "description": "Usage telemetry to Twenty off",
                      "defaultValue": "false"
                    },
                    "STORAGE_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket endpoint",
                      "defaultValue": "${{Twenty.STORAGE_S3_ENDPOINT}}"
                    },
                    "DISABLE_DB_MIGRATIONS": {
                      "isOptional": false,
                      "description": "The server runs the migrations",
                      "defaultValue": "true"
                    },
                    "STORAGE_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{Twenty.STORAGE_S3_ACCESS_KEY_ID}}"
                    },
                    "STORAGE_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{Twenty.STORAGE_S3_SECRET_ACCESS_KEY}}"
                    },
                    "DISABLE_CRON_JOBS_REGISTRATION": {
                      "isOptional": false,
                      "description": "The server registers the background jobs",
                      "defaultValue": "true"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "isOptional": false,
                      "description": "Lets the Alpine-based image resolve Railway private domains",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "d72c2511-b283-46d4-a296-778b9ca5b8f2": {
                  "icon": "https://devicons.railway.com/i/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'exec redis-server --requirepass \"$REDIS_PASSWORD\" --maxmemory-policy noeviction --appendonly yes --dir /data'",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:7.4"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password (generated)",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "25d2f949-0857-4e2c-8795-343f982b2a96": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Twenty",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-26T16:14:55.683Z",
  "generator_version": "0.1.0"
}
