{
    "captainVersion": "2",
    "documentation": "Adapted from https://thelounge.chat/docs/install-and-upgrade#docker.",
    "description": "The Lounge is a self-hosted web IRC client with modern features, persistent connections, and multi-user support.",
    "displayName": "The Lounge",
    "isOfficial": true,
    "dockerCompose": {
        "version": "3.3",
        "services": {
            "$$cap_appname": {
                "image": "thelounge/thelounge:$$cap_lounge_version",
                "containerHttpPort": "9000",
                "restart": "always",
                "volumes": ["$$cap_appname-data:/var/opt/thelounge"]
            }
        }
    },
    "instructions": {
        "start": "The Lounge, a self-hosted web IRC client.",
        "end": "Your instance is now fully deployed.\n To create your user, run `docker exec --user node -it $(docker ps -f name=srv-captain--$$cap_appname --quiet) thelounge add [user]` on your host."
    },
    "variables": [
        {
            "id": "$$cap_lounge_version",
            "label": "The Lounge Version Tag",
            "defaultValue": "4.1.0",
            "description": "Check out their Docker page for the valid tags https://hub.docker.com/r/thelounge/thelounge/tags",
            "validRegex": "/^([^\\s^\\/])+$/"
        }
    ]
}
