Hi, i'm trying to set up a dockercompose with the ...
# ory-selfhosting
b
Hi, i'm trying to set up a dockercompose with the latest container for kratos, but it's giving me a weird error when going to the self service ui registration Here is my docker-compose and kratos config: https://gist.github.com/dukesteen/fcdd9dfd2d9bf29261548ec555bde13c

https://i.gyazo.com/70ab947c6faed6c6bc8c280c4e059fa3.png

This is the error i'm getting
t
You can't use
127.0.0.1
within the containers, as that's localhost to itself. As example, you'll want;
Copy code
environment:
      - KRATOS_PUBLIC_URL=<http://kratos:4433>
      - KRATOS_ADMIN_URL=<http://kratos:4434>
      - PORT=4455
may need to update some other references too, but gives you an idea
b
I also tried this, but then when I click on sign up in the kratos selfservice ui node, it redirects me to kratos:4433/self-service/registration/whatever and it can't find it.
Does the name need to be this? @tall-angle-41306
since I'm running it in docker-compose
hmm, doesn't look like it works
t
here's a working docker-compose using kratos that one of the guys in our team uses - https://github.com/chandanjog/ory-suite-spike/blob/hydra-integration-2021/contrib/hydra/docker-compose.yml
might be a good starting point to base yours from
b
@tall-angle-41306 My dockercompose looks similar
I'm thinking it might be an issue with docker dns
Can't access any of the containers by their name
t
ah, that would make sense if others can't be accessed
b
@magnificent-energy-493 Is there an official docker-compose with the latest containers?
m
Seems the latest quickstart is this one: https://github.com/ory/kratos/blob/v0.10.1/quickstart.yml
b
Ah okay, I had to add the KRATOS_BROWSER_URL env variable for it to work in the browser
Thanks 🙂