|
8 | 8 | "env": {
|
9 | 9 | "#1": "See https://symfony.com/doc/current/mercure.html#configuration",
|
10 | 10 | "#2": "The URL of the Mercure hub, used by the app to publish updates (can be a local URL)",
|
11 |
| - "MERCURE_URL": "https://127.0.0.1:8000/.well-known/mercure", |
| 11 | + "MERCURE_URL": "https://example.com/.well-known/mercure", |
12 | 12 | "#3": "The public URL of the Mercure hub, used by the browser to connect",
|
13 |
| - "MERCURE_PUBLIC_URL": "https://127.0.0.1:8000/.well-known/mercure", |
| 13 | + "MERCURE_PUBLIC_URL": "https://example.com/.well-known/mercure", |
14 | 14 | "#4": "The secret used to sign the JWTs",
|
15 | 15 | "MERCURE_JWT_SECRET": "!ChangeMe!"
|
16 | 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: '!ChangeMe!'", |
| 26 | + " MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!'", |
| 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 | + }, |
17 | 46 | "aliases": ["mercure"]
|
18 | 47 | }
|
0 commit comments