Skip to content

[mercure-bundle] add support for Docker Compose #1007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions symfony/mercure-bundle/0.3/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,40 @@
"env": {
"#1": "See https://symfony.com/doc/current/mercure.html#configuration",
"#2": "The URL of the Mercure hub, used by the app to publish updates (can be a local URL)",
"MERCURE_URL": "https://127.0.0.1:8000/.well-known/mercure",
"MERCURE_URL": "https://example.com/.well-known/mercure",
"#3": "The public URL of the Mercure hub, used by the browser to connect",
"MERCURE_PUBLIC_URL": "https://127.0.0.1:8000/.well-known/mercure",
"MERCURE_PUBLIC_URL": "https://example.com/.well-known/mercure",
"#4": "The secret used to sign the JWTs",
"MERCURE_JWT_SECRET": "!ChangeMe!"
},
"docker-compose": {
"docker-compose.yml": {
"services": [
"mercure:",
" image: dunglas/mercure",
" restart: unless-stopped",
" environment:",
" SERVER_NAME: ':80'",
" MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!'",
" MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!'",
" # Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive",
" MERCURE_EXTRA_DIRECTIVES: |",
" cors_origins http://127.0.0.1:8000",
" # Comment the following line to disable the development mode",
" command: /usr/bin/caddy run -config /etc/caddy/Caddyfile.dev",
" volumes:",
" - mercure_data:/data",
" - mercure_config:/config"
],
"volumes": ["mercure_data:", "mercure_config:"]
},
"docker-compose.override.yml": {
"services": [
"mercure:",
" ports:",
" - \"80\""
]
}
},
"aliases": ["mercure"]
}