https://github.com/shopware/local-mercure-sample
https://github.com/shopware/local-mercure-sample
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shopware/local-mercure-sample
- Owner: shopware
- Created: 2024-12-12T03:27:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-12T07:54:25.000Z (over 1 year ago)
- Last Synced: 2025-07-13T04:41:14.421Z (11 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Local Mercure Example with Docker
## Introduction
This is the local mercure example with docker.
## How to run
Just run this:
```
docker-compose up
```
## Basic information
Default Hub information:
- Hub URL: `http://localhost:8081/.well-known/mercure`
- Hub subscriber secret: `MySecret`
- Hub publisher secret: `MySecret`
- Anonymous mode is enabled, will allow all the origins.
### Port
- Default is `8081`.
- Change: navigate to `docker-compose.yml`, find `services => mercure => ports` and replace with new port number (e.g: `9091:80`)
### Secret Key
- Default is `MySecret`.
- Change: navigate to `Caddyfile` and update `publisher_jwt` or `subscriber_jwt` to any value you want.
## Production
For security reason, please follow:
- complicate the secret key.
- turn off anonymous mode.
- Specify cors_origins & publish_origins.