{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ee06e910-d3d5-4c1a-9dea-d0f531df9cef",
    "slug": "thelounge",
    "name": "The Lounge",
    "description": "Web IRC client that stays connected for you on every device",
    "url": "https://railway.com/deploy/thelounge",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/thelounge-railway"
    }
  },
  "services": [
    {
      "name": "thelounge",
      "source": {
        "repo": "https://github.com/gridalpha/thelounge-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/opt/thelounge",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "thelounge",
      "description": "HTTP listen port and health-check target",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "THELOUNGE_USER",
      "service": "thelounge",
      "description": "Account created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "THELOUNGE_DEBUG",
      "service": "thelounge",
      "description": "IRC protocol trace in the deploy log",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "THELOUNGE_THEME",
      "service": "thelounge",
      "description": "Built-in theme name",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "THELOUNGE_PUBLIC",
      "service": "thelounge",
      "description": "true removes accounts entirely",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "THELOUNGE_PASSWORD",
      "service": "thelounge",
      "description": "Password for that account",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "THELOUNGE_PREFETCH",
      "service": "thelounge",
      "description": "Fetch link previews for pasted URLs",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "THELOUNGE_FILE_UPLOAD",
      "service": "thelounge",
      "description": "Allow signed-in users to upload files",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "THELOUNGE_MAX_HISTORY",
      "service": "thelounge",
      "description": "In-memory lines kept per channel",
      "secret": false,
      "strategy": "default",
      "default": "10000"
    },
    {
      "key": "THELOUNGE_NETWORK_TLS",
      "service": "thelounge",
      "description": "Pre-filled TLS setting",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "THELOUNGE_LOCK_NETWORK",
      "service": "thelounge",
      "description": "Restrict users to the network below",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "THELOUNGE_NETWORK_HOST",
      "service": "thelounge",
      "description": "Pre-filled IRC server host",
      "secret": false,
      "strategy": "default",
      "default": "irc.oftc.net"
    },
    {
      "key": "THELOUNGE_NETWORK_NAME",
      "service": "thelounge",
      "description": "Pre-filled network name",
      "secret": false,
      "strategy": "default",
      "default": "OFTC"
    },
    {
      "key": "THELOUNGE_NETWORK_NICK",
      "service": "thelounge",
      "description": "Pre-filled nick, % becomes a digit",
      "secret": false,
      "strategy": "default",
      "default": "thelounge%%"
    },
    {
      "key": "THELOUNGE_NETWORK_PORT",
      "service": "thelounge",
      "description": "Pre-filled IRC server port",
      "secret": false,
      "strategy": "default",
      "default": "6697"
    },
    {
      "key": "THELOUNGE_STORAGE_POLICY",
      "service": "thelounge",
      "description": "Periodic cleanup of stored history",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "THELOUNGE_LOG_MAX_AGE_DAYS",
      "service": "thelounge",
      "description": "How long history is kept",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "THELOUNGE_MAX_FILE_SIZE_KB",
      "service": "thelounge",
      "description": "Upload size cap",
      "secret": false,
      "strategy": "default",
      "default": "10240"
    },
    {
      "key": "THELOUNGE_NETWORK_USERNAME",
      "service": "thelounge",
      "description": "Pre-filled IRC username",
      "secret": false,
      "strategy": "default",
      "default": "thelounge"
    },
    {
      "key": "THELOUNGE_PREFETCH_STORAGE",
      "service": "thelounge",
      "description": "Serve preview thumbnails from this origin",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "THELOUNGE_LOG_DELETION_POLICY",
      "service": "thelounge",
      "description": "statusOnly or everything",
      "secret": false,
      "strategy": "default",
      "default": "statusOnly"
    },
    {
      "key": "THELOUNGE_PREFETCH_MAX_IMAGE_SIZE_KB",
      "service": "thelounge",
      "description": "Preview image size cap",
      "secret": false,
      "strategy": "default",
      "default": "2048"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "thelounge"
      }
    },
    "cli": "railway deploy --template thelounge",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ee06e910-d3d5-4c1a-9dea-d0f531df9cef",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "8ff67f6e-cf5a-4267-97c4-f1eb8fb3ff80": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/thelounge.svg",
                  "name": "thelounge",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/thelounge-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listen port and health-check target",
                      "defaultValue": "9000"
                    },
                    "THELOUNGE_USER": {
                      "isOptional": false,
                      "description": "Account created on first boot",
                      "defaultValue": "admin"
                    },
                    "THELOUNGE_DEBUG": {
                      "isOptional": true,
                      "description": "IRC protocol trace in the deploy log",
                      "defaultValue": "false"
                    },
                    "THELOUNGE_THEME": {
                      "isOptional": true,
                      "description": "Built-in theme name",
                      "defaultValue": "default"
                    },
                    "THELOUNGE_PUBLIC": {
                      "isOptional": true,
                      "description": "true removes accounts entirely",
                      "defaultValue": "false"
                    },
                    "THELOUNGE_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for that account",
                      "defaultValue": "{{THELOUNGE_PASSWORD}}"
                    },
                    "THELOUNGE_PREFETCH": {
                      "isOptional": true,
                      "description": "Fetch link previews for pasted URLs",
                      "defaultValue": "false"
                    },
                    "THELOUNGE_FILE_UPLOAD": {
                      "isOptional": true,
                      "description": "Allow signed-in users to upload files",
                      "defaultValue": "true"
                    },
                    "THELOUNGE_MAX_HISTORY": {
                      "isOptional": true,
                      "description": "In-memory lines kept per channel",
                      "defaultValue": "10000"
                    },
                    "THELOUNGE_NETWORK_TLS": {
                      "isOptional": true,
                      "description": "Pre-filled TLS setting",
                      "defaultValue": "true"
                    },
                    "THELOUNGE_LOCK_NETWORK": {
                      "isOptional": true,
                      "description": "Restrict users to the network below",
                      "defaultValue": "false"
                    },
                    "THELOUNGE_NETWORK_HOST": {
                      "isOptional": true,
                      "description": "Pre-filled IRC server host",
                      "defaultValue": "irc.oftc.net"
                    },
                    "THELOUNGE_NETWORK_JOIN": {
                      "isOptional": true,
                      "description": "Channels joined on connect",
                      "defaultValue": ""
                    },
                    "THELOUNGE_NETWORK_NAME": {
                      "isOptional": true,
                      "description": "Pre-filled network name",
                      "defaultValue": "OFTC"
                    },
                    "THELOUNGE_NETWORK_NICK": {
                      "isOptional": true,
                      "description": "Pre-filled nick, % becomes a digit",
                      "defaultValue": "thelounge%%"
                    },
                    "THELOUNGE_NETWORK_PORT": {
                      "isOptional": true,
                      "description": "Pre-filled IRC server port",
                      "defaultValue": "6697"
                    },
                    "THELOUNGE_STORAGE_POLICY": {
                      "isOptional": true,
                      "description": "Periodic cleanup of stored history",
                      "defaultValue": "true"
                    },
                    "THELOUNGE_LOG_MAX_AGE_DAYS": {
                      "isOptional": true,
                      "description": "How long history is kept",
                      "defaultValue": "30"
                    },
                    "THELOUNGE_MAX_FILE_SIZE_KB": {
                      "isOptional": true,
                      "description": "Upload size cap",
                      "defaultValue": "10240"
                    },
                    "THELOUNGE_NETWORK_USERNAME": {
                      "isOptional": true,
                      "description": "Pre-filled IRC username",
                      "defaultValue": "thelounge"
                    },
                    "THELOUNGE_PREFETCH_STORAGE": {
                      "isOptional": true,
                      "description": "Serve preview thumbnails from this origin",
                      "defaultValue": "true"
                    },
                    "THELOUNGE_LOG_DELETION_POLICY": {
                      "isOptional": true,
                      "description": "statusOnly or everything",
                      "defaultValue": "statusOnly"
                    },
                    "THELOUNGE_NETWORK_SASL_ACCOUNT": {
                      "isOptional": true,
                      "description": "SASL account, required by Libera.Chat",
                      "defaultValue": ""
                    },
                    "THELOUNGE_NETWORK_SASL_PASSWORD": {
                      "isOptional": true,
                      "description": "SASL password",
                      "defaultValue": ""
                    },
                    "THELOUNGE_PREFETCH_MAX_IMAGE_SIZE_KB": {
                      "isOptional": true,
                      "description": "Preview image size cap",
                      "defaultValue": "2048"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9000": {
                        "port": 9000
                      }
                    }
                  },
                  "volumeMounts": {
                    "8ff67f6e-cf5a-4267-97c4-f1eb8fb3ff80": {
                      "mountPath": "/var/opt/thelounge"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "thelounge",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-15T10:14:39.124Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-15T07:21:02.186Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_be40be010ea44d9ab6b3",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 71,
    "typical_build_seconds": 20,
    "typical_start_seconds": 0,
    "slowest_service": "thelounge"
  }
}
