captainVersion: 4
services:
    $$cap_appname:
        image: bitwardenrs/server:$$cap_bitwardenrs_version
        volumes:
            - $$cap_appname-data:/data
        restart: always
        caproverExtra:
            containerHttpPort: '80'
caproverOneClickApp:
    variables:
        - id: $$cap_bitwardenrs_version
          label: Bitwarden_rs Version
          defaultValue: 1.15.1
          description: Check out their Docker page for the valid tags https://hub.docker.com/r/bitwardenrs/server/tags
          validRegex: /^([^\s^\/])+$/
    instructions:
        start: This is a Bitwarden server API implementation written in Rust compatible with upstream Bitwarden clients, perfect for self-hosted deployment where running the official resource-heavy service might not be ideal.
        end: >-
            Bitwarden_rs is deployed and available as $$cap_appname. Please give it a few minutes to boot, otherwise you will see a 502 error.

            Please activate https and https redirect otherwise you will have error on account creation.
    displayName: Bitwarden_rs
    isOfficial: true
    description: Lightweight fully featured Rust implementation of Bitwarden.
    documentation: Taken from https://hub.docker.com/r/bitwardenrs/server
