Skip to content

Broken minimal keycloak installation and python app behind nginx in docker

Notifications You must be signed in to change notification settings

Rohit110789/broken-minimal-keycloak

Repository files navigation

DevOps assignment

Minimal environment with keycloak and a custom python app behind nginx, in docker, orchestrated with docker-compose.

Development

Start the environment: docker-compose up -d

Create a new user in the keycloak admin: http://localhost/keycloak/admin

Tip: add credentials for keycloak and postgres in a .env file.

Endpoints

  1. http://localhost/: "Hello world!" index page
  2. http://localhost/login: redirects to keycloak auth
  3. http://localhost/auth/callback: keycloak callback after login

Known issues

  1. The python app builds correctly but does not work in production mode only in development mode.
  2. The app's login is broken.
  3. Connections to the keycloak endpoints fail with "502 Bad Gateway".
  4. The python app's Dockerfile does not follow best practices.

Notes

  1. Any git commits should follow the conventional commits specifications.
  2. git formatted patches are preferred.

About

Broken minimal keycloak installation and python app behind nginx in docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published