captainVersion: 4
services:
    $$cap_appname:
        image: hardware/rainloop:$$cap_rainloop_version
        restart: always
        volumes:
            - $$cap_appname-data:/rainloop/data
        caproverExtra:
            containerHttpPort: '8888'
caproverOneClickApp:
    variables:
        - id: $$cap_rainloop_version
          label: Rainloop Version
          description: Check out their Docker page for the valid tags https://hub.docker.com/r/hardware/rainloop/tags
          defaultValue: 1.12.0
          validRegex: /^([^\s^\/])+$/
    instructions:
        start: >-
            Rainloop is a simple, modern & fast web-based email client. 

             For initial configuration, see https://www.rainloop.net/docs/configuration/
        end: >-
            Rainloop is deployed and available as $$cap_appname. 

             It will take about a minute for Rainloop to be ready. Before that, you might see 502 error page.
    displayName: ''
    description: RainLoop Webmail - Simple, modern & fast web-based email client
    documentation: Taken from https://hub.docker.com/r/hardware/rainloop
