|
| 1 | +{ |
| 2 | + "bundles": { |
| 3 | + "Symfony\\Bundle\\MercureBundle\\MercureBundle": ["all"] |
| 4 | + }, |
| 5 | + "copy-from-recipe": { |
| 6 | + "config/": "%CONFIG_DIR%/" |
| 7 | + }, |
| 8 | + "env": { |
| 9 | + "#1": "See https://symfony.com/doc/current/mercure.html#configuration", |
| 10 | + "#2": "The URL of the Mercure hub, used by the app to publish updates (can be a local URL)", |
| 11 | + "MERCURE_URL": "https://example.com/.well-known/mercure", |
| 12 | + "#3": "The public URL of the Mercure hub, used by the browser to connect", |
| 13 | + "MERCURE_PUBLIC_URL": "https://example.com/.well-known/mercure", |
| 14 | + "#4": "The secret used to sign the JWTs", |
| 15 | + "MERCURE_JWT_SECRET": "!MUST_CHANGE_THIS_SECRET_JWT_KEY!" |
| 16 | + }, |
| 17 | + "docker-compose": { |
| 18 | + "docker-compose.yml": { |
| 19 | + "services": [ |
| 20 | + "mercure:", |
| 21 | + " image: dunglas/mercure", |
| 22 | + " restart: unless-stopped", |
| 23 | + " environment:", |
| 24 | + " SERVER_NAME: ':80'", |
| 25 | + " MERCURE_PUBLISHER_JWT_KEY: '!MUST_CHANGE_THIS_SECRET_JWT_KEY!'", |
| 26 | + " MERCURE_SUBSCRIBER_JWT_KEY: '!MUST_CHANGE_THIS_SECRET_JWT_KEY!'", |
| 27 | + " # Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive", |
| 28 | + " MERCURE_EXTRA_DIRECTIVES: |", |
| 29 | + " cors_origins http://127.0.0.1:8000", |
| 30 | + " # Comment the following line to disable the development mode", |
| 31 | + " command: /usr/bin/caddy run -config /etc/caddy/Caddyfile.dev", |
| 32 | + " volumes:", |
| 33 | + " - mercure_data:/data", |
| 34 | + " - mercure_config:/config" |
| 35 | + ], |
| 36 | + "volumes": ["mercure_data:", "mercure_config:"] |
| 37 | + }, |
| 38 | + "docker-compose.override.yml": { |
| 39 | + "services": [ |
| 40 | + "mercure:", |
| 41 | + " ports:", |
| 42 | + " - \"80\"" |
| 43 | + ] |
| 44 | + } |
| 45 | + }, |
| 46 | + "aliases": ["mercure"] |
| 47 | +} |
0 commit comments