Replies: 1 comment 3 replies
-
Can you try this?
The important part is the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm absolutely new to mercure so maybe the question will seem silly for some of you.
I want to try mercure for the first time. I want to try it on docker and on a published port different from 80.
After googling [php mercure] I found here https://www.itdo.com/blog/php-y-symfony-una-breve-introduccion-a-mercure/ an introduction.
After trying multiple tests, the docker command ends up giving me this:
I then googled for [mercure docker Error: loading initial config: loading new config] and I found this github issue: api-platform/api-platform#1757 but when this comment api-platform/api-platform#1757 (comment) references a docker-compose yaml for other project I'm unable to understand what it refers to.
If I enter in the docker page here https://hub.docker.com/r/dunglas/mercure It does not show any examples, and only refers to the official page here https://mercure.rocks/ and if I click on documentation and search for [docker run] like this
I end up here: https://mercure.rocks/docs/hub/install#docker-image
Then. All examples I see here assume ports 80 and 443 being published.
Here I see that what it has mainly changed from the outdated tutorial I first found is that now you pass-in two JWT instead of only one. Okey... Let's try it: I'll take any of the official docker run examples and I'll fine tune them.
For example, I take this one:
and I remove 443 because I'm happy to use http without s for my first "hello world", and I'll change local 80 to 7999.
Okey it now seems the server does not complain. Time to test it. I've seen it seems to come with a UI for testing, doesn't it?
The documentation suggests:
I then modify it to suit my needs: Drop "s" and add port:
But unfortunately the browser does not connect: For some reason loading this redirects me to
https://localhost/.well-known/mercure/ui/
So, question:
What is the simplest
docker run
command to run the simplest server (ie: no SSL, anonymous, etc.) to make the simplest helloworld test using port 7999 and using the test ui?Beta Was this translation helpful? Give feedback.
All reactions