{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3be863fe-0a3f-4a3c-9693-f6dea5cafd2a",
    "slug": "dokuwiki-wiki",
    "name": "DokuWiki",
    "description": "Wiki that keeps every page as a plain text file, no database",
    "url": "https://railway.com/deploy/dokuwiki-wiki",
    "upstream": {
      "image": "axllent/mailpit:latest"
    }
  },
  "services": [
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "dokuwiki",
      "source": {
        "repo": "https://github.com/gridalpha/dokuwiki-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Web inbox listening port",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Basic auth for the web inbox",
      "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_SMTP_AUTH",
      "service": "mailpit",
      "description": "Required SMTP credentials",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_PASSWORD",
      "service": "mailpit",
      "description": "SMTP password the wiki uses",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SMTP_USERNAME",
      "service": "mailpit",
      "description": "SMTP account the wiki uses",
      "secret": false,
      "strategy": "default",
      "default": "dokuwiki"
    },
    {
      "key": "MP_MAX_MESSAGES",
      "service": "mailpit",
      "description": "Messages kept before rotation",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "MP_UI_BIND_ADDR",
      "service": "mailpit",
      "description": "Web inbox bind address",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:8025"
    },
    {
      "key": "MP_SMTP_BIND_ADDR",
      "service": "mailpit",
      "description": "SMTP bind address, dual stack",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1025"
    },
    {
      "key": "SMTP_PRIVATE_HOST",
      "service": "mailpit",
      "description": "Private hostname for the wiki",
      "secret": false,
      "strategy": "default",
      "default": "mailpit.railway.internal"
    },
    {
      "key": "MP_SMTP_AUTH_ALLOW_INSECURE",
      "service": "mailpit",
      "description": "Allow SMTP auth without TLS",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "mailpit",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "PORT",
      "service": "dokuwiki",
      "description": "Apache listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "DOKUWIKI_LANG",
      "service": "dokuwiki",
      "description": "Interface language code",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "DOKUWIKI_TITLE",
      "service": "dokuwiki",
      "description": "Wiki name in the header",
      "secret": false,
      "strategy": "default",
      "default": "DokuWiki"
    },
    {
      "key": "DOKUWIKI_LICENSE",
      "service": "dokuwiki",
      "description": "Content license shown in the footer",
      "secret": false,
      "strategy": "default",
      "default": "cc-by-sa"
    },
    {
      "key": "DOKUWIKI_MAIL_FROM",
      "service": "dokuwiki",
      "description": "Sender on outgoing mail",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DOKUWIKI_SMTP_HOST",
      "service": "dokuwiki",
      "description": "SMTP server hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOKUWIKI_SMTP_PORT",
      "service": "dokuwiki",
      "description": "SMTP server port",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "DOKUWIKI_SMTP_USER",
      "service": "dokuwiki",
      "description": "SMTP account name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOKUWIKI_ACL_POLICY",
      "service": "dokuwiki",
      "description": "closed, public or open",
      "secret": false,
      "strategy": "default",
      "default": "closed"
    },
    {
      "key": "DOKUWIKI_ADMIN_NAME",
      "service": "dokuwiki",
      "description": "Superuser display name",
      "secret": false,
      "strategy": "default",
      "default": "Administrator"
    },
    {
      "key": "DOKUWIKI_ADMIN_USER",
      "service": "dokuwiki",
      "description": "Superuser login, first boot only",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "DOKUWIKI_ADMIN_EMAIL",
      "service": "dokuwiki",
      "description": "Superuser notification address",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "DOKUWIKI_SUBSCRIBERS",
      "service": "dokuwiki",
      "description": "Enable page-change e-mail subscriptions",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DOKUWIKI_SMTP_PASSWORD",
      "service": "dokuwiki",
      "description": "SMTP account password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOKUWIKI_ADMIN_PASSWORD",
      "service": "dokuwiki",
      "description": "Superuser password, first boot only",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DOKUWIKI_ALLOW_REGISTER",
      "service": "dokuwiki",
      "description": "Let visitors register themselves",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "dokuwiki",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "15"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "dokuwiki-wiki"
      }
    },
    "cli": "railway deploy --template dokuwiki-wiki",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3be863fe-0a3f-4a3c-9693-f6dea5cafd2a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "7f7d6ac4-939c-46e6-8511-99e5c70bef41": {
                  "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": "Web inbox listening port",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Basic auth for the web inbox",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_SMTP_AUTH": {
                      "isOptional": false,
                      "description": "Required SMTP credentials",
                      "defaultValue": "${{SMTP_USERNAME}}:${{SMTP_PASSWORD}}"
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": false,
                      "description": "SMTP password the wiki uses",
                      "defaultValue": "{{SMTP_PASSWORD}}"
                    },
                    "SMTP_USERNAME": {
                      "isOptional": false,
                      "description": "SMTP account the wiki uses",
                      "defaultValue": "dokuwiki"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": false,
                      "description": "Messages kept before rotation",
                      "defaultValue": "5000"
                    },
                    "MP_UI_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Web inbox bind address",
                      "defaultValue": "0.0.0.0:8025"
                    },
                    "MP_SMTP_BIND_ADDR": {
                      "isOptional": false,
                      "description": "SMTP bind address, dual stack",
                      "defaultValue": "[::]:1025"
                    },
                    "SMTP_PRIVATE_HOST": {
                      "isOptional": false,
                      "description": "Private hostname for the wiki",
                      "defaultValue": "mailpit.railway.internal"
                    },
                    "MP_SMTP_AUTH_ALLOW_INSECURE": {
                      "isOptional": false,
                      "description": "Allow SMTP auth without TLS",
                      "defaultValue": "true"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "7f7d6ac4-939c-46e6-8511-99e5c70bef41": {
                      "mountPath": "/data"
                    }
                  }
                },
                "b9f3e3b2-f2b3-422e-8b3d-a4caf0ec01a7": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/dokuwiki.svg",
                  "name": "dokuwiki",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/dokuwiki-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Apache listening port",
                      "defaultValue": "8080"
                    },
                    "DOKUWIKI_LANG": {
                      "isOptional": true,
                      "description": "Interface language code",
                      "defaultValue": "en"
                    },
                    "DOKUWIKI_TITLE": {
                      "isOptional": true,
                      "description": "Wiki name in the header",
                      "defaultValue": "DokuWiki"
                    },
                    "DOKUWIKI_LICENSE": {
                      "isOptional": true,
                      "description": "Content license shown in the footer",
                      "defaultValue": "cc-by-sa"
                    },
                    "DOKUWIKI_MAIL_FROM": {
                      "isOptional": false,
                      "description": "Sender on outgoing mail",
                      "defaultValue": "DokuWiki <wiki@${{RAILWAY_PUBLIC_DOMAIN}}>"
                    },
                    "DOKUWIKI_SMTP_HOST": {
                      "isOptional": false,
                      "description": "SMTP server hostname",
                      "defaultValue": "${{mailpit.SMTP_PRIVATE_HOST}}"
                    },
                    "DOKUWIKI_SMTP_PORT": {
                      "isOptional": false,
                      "description": "SMTP server port",
                      "defaultValue": "1025"
                    },
                    "DOKUWIKI_SMTP_USER": {
                      "isOptional": false,
                      "description": "SMTP account name",
                      "defaultValue": "${{mailpit.SMTP_USERNAME}}"
                    },
                    "DOKUWIKI_ACL_POLICY": {
                      "isOptional": true,
                      "description": "closed, public or open",
                      "defaultValue": "closed"
                    },
                    "DOKUWIKI_ADMIN_NAME": {
                      "isOptional": true,
                      "description": "Superuser display name",
                      "defaultValue": "Administrator"
                    },
                    "DOKUWIKI_ADMIN_USER": {
                      "isOptional": true,
                      "description": "Superuser login, first boot only",
                      "defaultValue": "admin"
                    },
                    "DOKUWIKI_ADMIN_EMAIL": {
                      "isOptional": true,
                      "description": "Superuser notification address",
                      "defaultValue": "admin@example.com"
                    },
                    "DOKUWIKI_SUBSCRIBERS": {
                      "isOptional": true,
                      "description": "Enable page-change e-mail subscriptions",
                      "defaultValue": "true"
                    },
                    "DOKUWIKI_SMTP_PASSWORD": {
                      "isOptional": false,
                      "description": "SMTP account password",
                      "defaultValue": "${{mailpit.SMTP_PASSWORD}}"
                    },
                    "DOKUWIKI_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, first boot only",
                      "defaultValue": "{{DOKUWIKI_ADMIN_PASSWORD}}"
                    },
                    "DOKUWIKI_ALLOW_REGISTER": {
                      "isOptional": true,
                      "description": "Let visitors register themselves",
                      "defaultValue": "false"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "b9f3e3b2-f2b3-422e-8b3d-a4caf0ec01a7": {
                      "mountPath": "/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "mailpit",
      "method": "GET",
      "path": "/livez",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-16T22:14:52.145Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-16T19:52:16.878Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_25db6d79cb014d2eae13",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 257,
    "typical_build_seconds": 135,
    "typical_start_seconds": 11,
    "slowest_service": "dokuwiki"
  }
}
