{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f5ce8c2d-07c4-4ada-903f-fd29ca2edf32",
    "slug": "emdash",
    "name": "EmDash",
    "description": "EmDash CMS with its admin behind a password and the database on a volume",
    "url": "https://railway.com/deploy/emdash",
    "upstream": {
      "repo_url": "https://github.com/dektionstudio/railway-template-images"
    }
  },
  "services": [
    {
      "name": "EmDash",
      "source": {
        "repo": "https://github.com/dektionstudio/railway-template-images"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "EmDash",
      "description": "Port Railway routes to",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "EMDASH_URL",
      "service": "EmDash",
      "description": "Your site",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ADMIN_GATE_USER",
      "service": "EmDash",
      "description": "Login for the admin pages and the first-run setup",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "EMDASH_SITE_URL",
      "service": "EmDash",
      "description": "Public URL; set it to your custom domain and redeploy if you add one",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "EMDASH_ADMIN_URL",
      "service": "EmDash",
      "description": "The admin: sign in with ADMIN_GATE_USER / ADMIN_GATE_PASSWORD, then run EmDash's setup",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ADMIN_GATE_PASSWORD",
      "service": "EmDash",
      "description": "Its password (generated). EmDash's own passkey login comes after it",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "EMDASH_ENCRYPTION_KEY",
      "service": "EmDash",
      "description": "Encrypts plugin secrets (generated; losing it loses those secrets)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "emdash"
      }
    },
    "cli": "railway deploy --template emdash",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f5ce8c2d-07c4-4ada-903f-fd29ca2edf32",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "fd762b4e-9bfb-4ab0-84d2-8a5ee527f7d9": {
                  "icon": "https://raw.githubusercontent.com/emdash-cms/emdash/1f2a36a03b6ffff2d9804918296e11100b66cfff/docs/public/favicon.svg",
                  "name": "EmDash",
                  "deploy": {
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "dektionstudio/railway-template-images",
                    "rootDirectory": "/emdash"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes to",
                      "defaultValue": "8080"
                    },
                    "EMDASH_URL": {
                      "isOptional": false,
                      "description": "Your site",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ADMIN_GATE_USER": {
                      "isOptional": false,
                      "description": "Login for the admin pages and the first-run setup",
                      "defaultValue": "admin"
                    },
                    "EMDASH_SITE_URL": {
                      "isOptional": false,
                      "description": "Public URL; set it to your custom domain and redeploy if you add one",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "EMDASH_ADMIN_URL": {
                      "isOptional": false,
                      "description": "The admin: sign in with ADMIN_GATE_USER / ADMIN_GATE_PASSWORD, then run EmDash's setup",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/_emdash/admin"
                    },
                    "ADMIN_GATE_PASSWORD": {
                      "isOptional": false,
                      "description": "Its password (generated). EmDash's own passkey login comes after it",
                      "defaultValue": "{{ADMIN_GATE_PASSWORD}}"
                    },
                    "EMDASH_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts plugin secrets (generated; losing it loses those secrets)",
                      "defaultValue": "{{EMDASH_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "c3ee5351-dfe2-44b4-85a9-ebe9b3fe760b": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "EmDash",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-18T10:14:45.913Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-18T09:31:36.101Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9a13a68be58945c3b653",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 102,
    "typical_build_seconds": 71,
    "typical_start_seconds": 10,
    "slowest_service": "EmDash"
  }
}
