{
    "captainVersion": "2",
    "documentation": "https://github.com/Leantime/docker-leantime/blob/master/docker-compose.yml",
    "displayName": "Leantime",
    "description": "Open source project management for small teams",
    "isOfficial": true,
    "dockerCompose": {
        "services": {
            "$$cap_appname-mysql": {
                "dockerfileLines": [
                    "FROM mysql:5.7",
                    "CMD [\"--character-set-server=utf8\", \"--collation-server=utf8_unicode_ci\"]"
                ],
                "volumes": ["$$cap_appname-mysql-data:/var/lib/mysql"],
                "environment": {
                    "MYSQL_DATABASE": "leantime",
                    "MYSQL_ROOT_PASSWORD": "$$cap_mysql_passwd",
                    "MYSQL_USER": "leantimeuser",
                    "MYSQL_PASSWORD": "$$cap_mysql_passwd"
                }
            },
            "$$cap_appname": {
                "image": "leantime/leantime:$$cap_leantime_ver",
                "container_name": "leantime",
                "environment": {
                    "LEAN_APP_URL": "https://$$cap_appname.$$cap_root_domain",
                    "LEAN_DB_HOST": "srv-captain--$$cap_appname-mysql",
                    "LEAN_DB_USER": "leantimeuser",
                    "LEAN_DB_PASSWORD": "$$cap_mysql_passwd",
                    "LEAN_DB_DATABASE": "leantime"
                }
            }
        },
        "version": "2",
        "volumes": {
            "$$cap_appname-data": {}
        }
    },
    "instructions": {
        "start": "Leantime is a lean project management system for innovators. Designed to help you manage your projects from ideation to delivery.\n See more details here: https://leantime.io",
        "end": "Leantime is deployed as available as $$cap_appname! You MUST ENABLE HTTPS before accessing the panel."
    },
    "variables": [
        {
            "description": "User password for the database instance.",
            "defaultValue": "N2cQ4J9VzsfvXwzM",
            "id": "$$cap_mysql_passwd",
            "label": "MySQL User Password",
            "validRegex": "/^(?=.*\\d).{10,}$/"
        },
        {
            "defaultValue": "2.1.4",
            "id": "$$cap_leantime_ver",
            "label": "Leantime Version",
            "validRegex": "/.+/"
        }
    ]
}
