microscopic-answer-24504
02/21/2023, 9:29 PMdazzling-state-25140
02/21/2023, 9:38 PMcurved-oxygen-35290
02/22/2023, 8:22 AMkratos-selfservice-ui-node:
ports:
- "4455:4455"
and
kratos:
depends_on:
- kratos-migrate
image: oryd/kratos:v0.11.1
ports:
- '4433:4433' # public
- '4434:4434' # admin
as explained earlier, all configs have 127.0.0.1:4455
etc
so, 4455 is the selfservice UI.
Not when you then throw oathkeeper into the mix. This is the oathkeeper config
oathkeeper:
image: oryd/oathkeeper:v0.40
depends_on:
- kratos
ports:
- 4455:4455
- 4456:4456
port 4455 is now oathkeeper, not the ui
Yes, with hindsight this is obvious, change the port of the ui, drop oathkeeper in and everything else is plug and play
However, I wanted to put oathkeeper on port 8080, so did a search and replace for 4455 with 8080 ....
πmagnificent-energy-493
curved-oxygen-35290
02/22/2023, 9:52 AM/examples/tree/master/oathkeeper
and my observations and put together a doc detailing it all if you'd like ?magnificent-energy-493
curved-oxygen-35290
02/22/2023, 10:43 AMcurved-oxygen-35290
02/22/2023, 10:45 AMkratos-selfservice-ui-node:
image: oryd/kratos-selfservice-ui-node:v0.11.1
environment:
- KRATOS_PUBLIC_URL=<http://kratos:4433/>
- KRATOS_BROWSER_URL=<http://127.0.0.1:4433/>
is the PUBLIC_URL really kratos:4433
? isn't kratos
the docker container name and can only be referenced from a container in the same network as kratos ?
If so, then it isn't really "public". π
Also trying to understand the difference between PUBLIC_URL AND BROWSER_URL .. maybe it's the naming of PUBLIC that is confusingcurved-oxygen-35290
02/22/2023, 10:47 AMkratos:4433
meant for the ui container to redirect to (and therefore within the docker network)curved-oxygen-35290
02/22/2023, 10:51 AMmagnificent-energy-493
isnβtThat is correct yes. see the diagram for clarification. The public URL is the one you would expose to the general internet in a production setup. Its maybe a bit easier to understand in the guide without docker: https://www.ory.sh/docs/kratos/guides/deploy-kratos-examplethe docker container name and can only be referenced from a container in the same network as kratos ?kratos
magnificent-energy-493
<http://127.0.0.1:4433/>
PUBLIC URL is the one that docker uses to route the request in the docker intranet
KRATOS_PUBLIC_URL=<http://kratos:4433/>
magnificent-energy-493
few-nest-12788
02/22/2023, 2:47 PM