{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4df9b8b9-1949-4b10-80ed-dfff2e63e0d4",
    "slug": "flarum-forum",
    "name": "Flarum",
    "description": "Forum software for running a community discussion board",
    "url": "https://railway.com/deploy/flarum-forum",
    "upstream": {
      "image": "axllent/mailpit:latest"
    }
  },
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "flarum",
      "source": {
        "repo": "https://github.com/gridalpha/flarum-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "Data panel alias for the superuser",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Superuser password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TZ",
      "service": "mailpit",
      "description": "Container timezone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Port the web inbox listens on",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Username and password for the web inbox",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MP_WEBROOT",
      "service": "mailpit",
      "description": "Path the inbox is served from",
      "secret": false,
      "strategy": "default",
      "default": "/"
    },
    {
      "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 kept before the oldest are dropped",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "TZ",
      "service": "flarum",
      "description": "Container timezone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "flarum",
      "description": "Port nginx serves the forum on",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "DB_HOST",
      "service": "flarum",
      "description": "Private MySQL hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_NAME",
      "service": "flarum",
      "description": "Database created for the forum",
      "secret": false,
      "strategy": "default",
      "default": "flarum"
    },
    {
      "key": "DB_PORT",
      "service": "flarum",
      "description": "MySQL port",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "DB_USER",
      "service": "flarum",
      "description": "Scoped account created for the forum",
      "secret": false,
      "strategy": "default",
      "default": "flarum"
    },
    {
      "key": "SMTP_HOST",
      "service": "flarum",
      "description": "Mail host seeded into Flarum settings",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SMTP_PORT",
      "service": "flarum",
      "description": "Mail port seeded into Flarum settings",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "LOG_IP_VAR",
      "service": "flarum",
      "description": "nginx variable holding the real client address",
      "secret": false,
      "strategy": "default",
      "default": "real_client_ip"
    },
    {
      "key": "DB_PASSWORD",
      "service": "flarum",
      "description": "Password for that scoped account",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MEMORY_LIMIT",
      "service": "flarum",
      "description": "PHP memory limit per worker",
      "secret": false,
      "strategy": "default",
      "default": "512M"
    },
    {
      "key": "CRON_SCHEDULE",
      "service": "flarum",
      "description": "How often the Flarum scheduler runs",
      "secret": false,
      "strategy": "default",
      "default": "* * * * *"
    },
    {
      "key": "FLARUM_BASE_URL",
      "service": "flarum",
      "description": "Public URL for every generated link",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MYSQL_ROOT_USER",
      "service": "flarum",
      "description": "Superuser used only to create the role",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "UPLOAD_MAX_SIZE",
      "service": "flarum",
      "description": "Maximum upload and attachment size",
      "secret": false,
      "strategy": "default",
      "default": "32M"
    },
    {
      "key": "FLARUM_ADMIN_EMAIL",
      "service": "flarum",
      "description": "Address for password resets",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "FLARUM_FORUM_TITLE",
      "service": "flarum",
      "description": "Forum name set at install",
      "secret": false,
      "strategy": "default",
      "default": "My Forum"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "flarum",
      "description": "Superuser password for that step",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FLARUM_ADMIN_PASSWORD",
      "service": "flarum",
      "description": "Password for the first administrator",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "FLARUM_ADMIN_USERNAME",
      "service": "flarum",
      "description": "First administrator account",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "flarum",
      "description": "Dockerfile used to build the forum",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "flarum",
      "description": "Graceful shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "15"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "flarum-forum"
      }
    },
    "cli": "railway deploy --template flarum-forum",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4df9b8b9-1949-4b10-80ed-dfff2e63e0d4",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "053a4aaa-af9c-457a-907e-ad70eb764278": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mysql.svg",
                  "name": "MySQL",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "Data panel alias for the superuser",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:3306/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_ROOT_PASSWORD }}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, read by the server",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "053a4aaa-af9c-457a-907e-ad70eb764278": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "2707d249-d009-4ab5-aa7f-d34c4022f6b5": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Container timezone",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the web inbox listens on",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Username and password for the web inbox",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_WEBROOT": {
                      "isOptional": false,
                      "description": "Path the inbox is served from",
                      "defaultValue": "/"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": false,
                      "description": "Messages kept before the oldest are dropped",
                      "defaultValue": "5000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "2707d249-d009-4ab5-aa7f-d34c4022f6b5": {
                      "mountPath": "/data"
                    }
                  }
                },
                "ba7e7153-4dfd-4f22-adc5-65eda65a4e24": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/flarum.svg",
                  "name": "flarum",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/flarum-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Container timezone",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port nginx serves the forum on",
                      "defaultValue": "8000"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Private MySQL hostname",
                      "defaultValue": "${{MySQL.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_NAME": {
                      "isOptional": false,
                      "description": "Database created for the forum",
                      "defaultValue": "flarum"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "MySQL port",
                      "defaultValue": "3306"
                    },
                    "DB_USER": {
                      "isOptional": false,
                      "description": "Scoped account created for the forum",
                      "defaultValue": "flarum"
                    },
                    "SMTP_HOST": {
                      "isOptional": false,
                      "description": "Mail host seeded into Flarum settings",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SMTP_PORT": {
                      "isOptional": false,
                      "description": "Mail port seeded into Flarum settings",
                      "defaultValue": "1025"
                    },
                    "LOG_IP_VAR": {
                      "isOptional": false,
                      "description": "nginx variable holding the real client address",
                      "defaultValue": "real_client_ip"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for that scoped account",
                      "defaultValue": "{{DB_PASSWORD}}"
                    },
                    "MEMORY_LIMIT": {
                      "isOptional": false,
                      "description": "PHP memory limit per worker",
                      "defaultValue": "512M"
                    },
                    "CRON_SCHEDULE": {
                      "isOptional": false,
                      "description": "How often the Flarum scheduler runs",
                      "defaultValue": "* * * * *"
                    },
                    "FLARUM_BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL for every generated link",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MYSQL_ROOT_USER": {
                      "isOptional": false,
                      "description": "Superuser used only to create the role",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "UPLOAD_MAX_SIZE": {
                      "isOptional": false,
                      "description": "Maximum upload and attachment size",
                      "defaultValue": "32M"
                    },
                    "FLARUM_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Address for password resets",
                      "defaultValue": "admin@example.com"
                    },
                    "FLARUM_FORUM_TITLE": {
                      "isOptional": false,
                      "description": "Forum name set at install",
                      "defaultValue": "My Forum"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password for that step",
                      "defaultValue": "${{MySQL.MYSQL_ROOT_PASSWORD}}"
                    },
                    "FLARUM_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the first administrator",
                      "defaultValue": "{{FLARUM_ADMIN_PASSWORD}}"
                    },
                    "FLARUM_ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "First administrator account",
                      "defaultValue": "admin"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile used to build the forum",
                      "defaultValue": "Dockerfile"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Graceful shutdown window",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  },
                  "volumeMounts": {
                    "ba7e7153-4dfd-4f22-adc5-65eda65a4e24": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T13:52:52.180Z",
  "success_rate_30d": 0.3333,
  "validation": {
    "last_run_id": "run_77d7e316d0fd41cebe09",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,SUCCESS,SUCCESS"
      }
    ],
    "typical_ready_seconds": 65,
    "typical_build_seconds": 20,
    "typical_start_seconds": 10,
    "slowest_service": "flarum"
  }
}
