From 1bac2873f6418016295680d577befff9820d6af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Sun, 28 Apr 2019 08:28:25 +0100 Subject: [PATCH] Add Docker support for the Mercure recipe --- symfony/mercure-bundle/0.1/manifest.json | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/symfony/mercure-bundle/0.1/manifest.json b/symfony/mercure-bundle/0.1/manifest.json index 469bbaf3..e7a4757d 100644 --- a/symfony/mercure-bundle/0.1/manifest.json +++ b/symfony/mercure-bundle/0.1/manifest.json @@ -10,8 +10,25 @@ "env(MERCURE_JWT_SECRET)": "" }, "env": { - "MERCURE_PUBLISH_URL": "https://demo.mercure.rocks/hub", - "MERCURE_JWT_SECRET": "#see https://mercure.rocks" + "#1": "See https://symfony.com/doc/current/mercure.html#configuration", + "MERCURE_PUBLISH_URL": "http://mercure/hub", + "MERCURE_JWT_SECRET": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOltdfX0.Oo0yg7y4yMa1vr_bziltxuTCqb8JVHKxp-f_FwwOim0" + }, + "docker-compose": { + "services": [ + "mercure:", + " # In production, you may want to use the managed version of Mercure, https://mercure.rocks", + " image: dunglas/mercure", + " environment:", + " # You should definitely change all these values in production", + " - JWT_KEY=!ChangeMe!", + " - ALLOW_ANONYMOUS=1", + " - CORS_ALLOWED_ORIGINS=*", + " - PUBLISH_ALLOWED_ORIGINS=http://localhost:1337", + " - DEMO=1", + " ports:", + " - \"1337:80\"" + ] }, "aliases": ["mercure"] }