summaryrefslogtreecommitdiffhomepage
path: root/public/v4/apps/mercure.yml
blob: cdb2e44951732872274986dc9d5f28909d1b39cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
captainVersion: 4
services:
    # Mercure
    $$cap_appname:
        image: dunglas/mercure:$$cap_mercure_version
        restart: unless-stopped
        environment:
            # Uncomment the following line to disable HTTPS
            SERVER_NAME: ':80'
            MERCURE_PUBLISHER_JWT_KEY: $$cap_mercure_publisher_jwt_key
            MERCURE_SUBSCRIBER_JWT_KEY: $$cap_mercure_subscriber_jwt_key
            MERCURE_EXTRA_DIRECTIVES: $$cap_mercure_extra_directives
        volumes:
            - $$cap_appname-mercure-data:/data
            - $$cap_appname-mercure-config:/config
        # Uncomment the following line to enable the development mode
        caproverExtra:
            containerHttpPort: '80'
caproverOneClickApp:
    variables:
        - id: $$cap_mercure_version
          label: Mercure Version
          defaultValue: 'v0.13'
          description: Check out their Docker page for the valid tags https://hub.docker.com/r/dunglas/mercure/tags
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_mercure_publisher_jwt_key
          label: Mercure Publisher JWT Key
          defaultValue: '!ChangeMe!'
          description: 'The JWT key to use for publishers'
        - id: $$cap_mercure_subscriber_jwt_key
          label: Mercure Subscriber JWT Key
          defaultValue: '!ChangeMe!'
          description: 'The JWT key to use for subscribers'
        - id: $$cap_mercure_extra_directives
          label: Extra Directives
          defaultValue: 'subscriptions demo anonymous cors_origins * publish_origins *'
          description: 'A list of extra Mercure directives inject in the Caddy file, one per line'
    instructions:
        start: >-
            Mercure is a protocol allowing to push data updates to web browsers and other HTTP clients in a convenient, fast, reliable and battery-efficient way. It is especially useful to publish real-time updates of resources served through web APIs, to reactive web and mobile apps.

            For documentation, see: https://mercure.rocks/docs

            Enter your Mercure Configuration parameters and click on next. It will take about a minute for the process to finish.
        end: >-
            Aaaand you're done! 😄
            Your service is available at http://$$cap_appname.$$cap_root_domain
    displayName: 'Mercure'
    isOfficial: true
    description: Mercure is a protocol allowing to push data updates to web browsers and other HTTP clients.
    documentation: Taken from https://mercure.rocks/docs/hub/install