{
  "manifest_version": "1.0.0",
  "template": {
    "id": "50685c8b-1669-460a-ba88-b6105d28ed89",
    "slug": "remark42-comments",
    "name": "Remark42",
    "description": "Comment engine you embed on any web page with one script tag",
    "url": "https://railway.com/deploy/remark42-comments",
    "upstream": {
      "image": "axllent/mailpit:latest"
    }
  },
  "services": [
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "remark42",
      "source": {
        "image": "umputun/remark42:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/srv/var",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Inbox UI and health-check port",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "user:password for the inbox UI",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MP_DATABASE",
      "service": "mailpit",
      "description": "Message store on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/mailpit.db"
    },
    {
      "key": "MP_MAX_MESSAGES",
      "service": "mailpit",
      "description": "Messages retained before rotation",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "PORT",
      "service": "remark42",
      "description": "Health-check port; app reads REMARK_PORT",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SITE",
      "service": "remark42",
      "description": "Site id the widget reports",
      "secret": false,
      "strategy": "default",
      "default": "remark"
    },
    {
      "key": "EMOJI",
      "service": "remark42",
      "description": "Emoji support in comments",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SECRET",
      "service": "remark42",
      "description": "Signs auth tokens; must stay stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SMTP_TLS",
      "service": "remark42",
      "description": "Plain listener, no implicit TLS",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AUTH_ANON",
      "service": "remark42",
      "description": "Anonymous commenting, off by default",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SMTP_HOST",
      "service": "remark42",
      "description": "Private mail host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SMTP_PORT",
      "service": "remark42",
      "description": "Private SMTP port",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "TIME_ZONE",
      "service": "remark42",
      "description": "Container timezone for stored timestamps",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "REMARK_URL",
      "service": "remark42",
      "description": "Public URL baked into the widget",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NOTIFY_USERS",
      "service": "remark42",
      "description": "Reply notifications for readers",
      "secret": false,
      "strategy": "default",
      "default": "email"
    },
    {
      "key": "NOTIFY_ADMINS",
      "service": "remark42",
      "description": "New-comment notifications for moderators",
      "secret": false,
      "strategy": "default",
      "default": "email"
    },
    {
      "key": "SMTP_STARTTLS",
      "service": "remark42",
      "description": "Plain listener advertises no STARTTLS",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TRUSTED_PROXY",
      "service": "remark42",
      "description": "Railway edge networks allowed to set client IP",
      "secret": false,
      "strategy": "default",
      "default": "100.64.0.0/10,fd00::/8"
    },
    {
      "key": "AUTH_EMAIL_FROM",
      "service": "remark42",
      "description": "From address on sign-in mail",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AUTH_EMAIL_ENABLE",
      "service": "remark42",
      "description": "One-time-token email sign-in",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NOTIFY_EMAIL_FROM",
      "service": "remark42",
      "description": "From address on notifications",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ADMIN_SHARED_EMAIL",
      "service": "remark42",
      "description": "Where admin notifications go",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AUTH_SEND_JWT_HEADER",
      "service": "remark42",
      "description": "Keeps cross-domain embeds signed in",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "IMAGE_PROXY_HTTP2HTTPS",
      "service": "remark42",
      "description": "Proxies http images to avoid mixed content",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "remark42-comments"
      }
    },
    "cli": "railway deploy --template remark42-comments",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "50685c8b-1669-460a-ba88-b6105d28ed89",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "c5139b2f-dff6-44d0-b36a-28a745cbaf23": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Inbox UI and health-check port",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "user:password for the inbox UI",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": true,
                      "description": "Messages retained before rotation",
                      "defaultValue": "5000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "c5139b2f-dff6-44d0-b36a-28a745cbaf23": {
                      "mountPath": "/data"
                    }
                  }
                },
                "c677a8fc-dcdd-4572-851c-1a46283a89b9": {
                  "icon": "https://cdn.jsdelivr.net/gh/umputun/remark42@v1.17.1/site/static/android-chrome-512x512.png",
                  "name": "remark42",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/ping",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "umputun/remark42:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Health-check port; app reads REMARK_PORT",
                      "defaultValue": "8080"
                    },
                    "SITE": {
                      "isOptional": true,
                      "description": "Site id the widget reports",
                      "defaultValue": "remark"
                    },
                    "EMOJI": {
                      "isOptional": true,
                      "description": "Emoji support in comments",
                      "defaultValue": "true"
                    },
                    "SECRET": {
                      "isOptional": false,
                      "description": "Signs auth tokens; must stay stable",
                      "defaultValue": "{{SECRET}}"
                    },
                    "SMTP_TLS": {
                      "isOptional": false,
                      "description": "Plain listener, no implicit TLS",
                      "defaultValue": "false"
                    },
                    "AUTH_ANON": {
                      "isOptional": true,
                      "description": "Anonymous commenting, off by default",
                      "defaultValue": "false"
                    },
                    "SMTP_HOST": {
                      "isOptional": false,
                      "description": "Private mail host",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SMTP_PORT": {
                      "isOptional": false,
                      "description": "Private SMTP port",
                      "defaultValue": "1025"
                    },
                    "TIME_ZONE": {
                      "isOptional": true,
                      "description": "Container timezone for stored timestamps",
                      "defaultValue": "Etc/UTC"
                    },
                    "REMARK_URL": {
                      "isOptional": false,
                      "description": "Public URL baked into the widget",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NOTIFY_USERS": {
                      "isOptional": false,
                      "description": "Reply notifications for readers",
                      "defaultValue": "email"
                    },
                    "NOTIFY_ADMINS": {
                      "isOptional": false,
                      "description": "New-comment notifications for moderators",
                      "defaultValue": "email"
                    },
                    "SMTP_STARTTLS": {
                      "isOptional": false,
                      "description": "Plain listener advertises no STARTTLS",
                      "defaultValue": "false"
                    },
                    "TRUSTED_PROXY": {
                      "isOptional": false,
                      "description": "Railway edge networks allowed to set client IP",
                      "defaultValue": "100.64.0.0/10,fd00::/8"
                    },
                    "ADMIN_SHARED_ID": {
                      "isOptional": true,
                      "description": "Comma-separated moderator user ids",
                      "defaultValue": ""
                    },
                    "AUTH_EMAIL_FROM": {
                      "isOptional": false,
                      "description": "From address on sign-in mail",
                      "defaultValue": "remark42@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AUTH_EMAIL_ENABLE": {
                      "isOptional": false,
                      "description": "One-time-token email sign-in",
                      "defaultValue": "true"
                    },
                    "NOTIFY_EMAIL_FROM": {
                      "isOptional": false,
                      "description": "From address on notifications",
                      "defaultValue": "remark42@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ADMIN_SHARED_EMAIL": {
                      "isOptional": true,
                      "description": "Where admin notifications go",
                      "defaultValue": "admin@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AUTH_SEND_JWT_HEADER": {
                      "isOptional": false,
                      "description": "Keeps cross-domain embeds signed in",
                      "defaultValue": "true"
                    },
                    "IMAGE_PROXY_HTTP2HTTPS": {
                      "isOptional": true,
                      "description": "Proxies http images to avoid mixed content",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "c677a8fc-dcdd-4572-851c-1a46283a89b9": {
                      "mountPath": "/srv/var"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "mailpit",
      "method": "GET",
      "path": "/livez",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-15T22:14:40.394Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-15T19:07:36.285Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9ad0b968c6a24500a9f4",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 197,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "remark42"
  }
}
