Skip to content

Commit 8a4cf06

Browse files
committed
[mercure-bundle] add support for Docker Compose
1 parent 1e717c8 commit 8a4cf06

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

symfony/mercure-bundle/0.3/manifest.json

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,40 @@
88
"env": {
99
"#1": "See https://symfony.com/doc/current/mercure.html#configuration",
1010
"#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",
1212
"#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",
1414
"#4": "The secret used to sign the JWTs",
1515
"MERCURE_JWT_SECRET": "!ChangeMe!"
1616
},
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+
},
1746
"aliases": ["mercure"]
1847
}

0 commit comments

Comments
 (0)