[NEW] Mercure one-click template (#592)

* [NEW] Mercure one-click template

* fixing file format check

Co-authored-by: Fernando Garioli <desenvolvimento5@arcoinformatica.com.br>
This commit is contained in:
Fernando Garioli 2021-12-27 15:08:09 -03:00 committed by GitHub
parent d815e0a498
commit 022955ceb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,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

BIN
public/v4/logos/mercure.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB