-
Notifications
You must be signed in to change notification settings - Fork 6
Add a sample docker-compose configuration #20
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
base: main
Are you sure you want to change the base?
Conversation
examples/keycloak/README.md
Outdated
| 127.0.0.1 keycloak | ||
| ``` | ||
|
|
||
| This allows your browser to resolve the `https://keycloak:8443` URLs used in the OAuth device flow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
URLs -> URL
|
|
||
| # Wait for services to be ready | ||
| # Optional: watch the logs while waiting | ||
| docker compose logs -f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally prefer to just run it without -d, then I can see the logs without having to run -f also and can kill everything with ^C. But maybe it is better this way so you do not need to explain you need two shells.
examples/keycloak/docker-compose.yml
Outdated
| - ../../test/import:/opt/keycloak/data/import | ||
| - ./certs:/keys | ||
| ports: | ||
| - "8443:8443" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to be explicit about it only listening to 127.0.0.1 since I believe 0.0.0.0 is the default listen but correct me if I am wrong. And we do not want to expose an open admin UI to everyone on the same LAN.
examples/keycloak/docker-compose.yml
Outdated
| volumes: | ||
| - ./certs/crt.pem:/usr/local/share/ca-certificates/keycloak-test.crt:ro | ||
| ports: | ||
| - "5432:5432" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably want to pick another port at the host since many run PG on 5432.
This is just a simple setup that users can try out without setting up anything manually, if they have docker installed.
This is just a simple setup that users can try out without setting up anything manually, if they have docker installed.