-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from dmstr/feature/v3
Feature/v3
- Loading branch information
Showing
9 changed files
with
6,047 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
version: '3.2' | ||
services: | ||
keycloakdb: | ||
image: postgres:10.17 | ||
environment: | ||
POSTGRES_DB: keycloak | ||
POSTGRES_USER: keycloak | ||
POSTGRES_PASSWORD: password | ||
healthcheck: | ||
test: "exit 0" | ||
# Example if you want to add some init data | ||
#volumes: | ||
# - ./keycloak/import/init.sql:/docker-entrypoint-initdb.d/init.sql | ||
ports: | ||
- "5432" | ||
|
||
# There is one example user in the init.sql file for the app realm with username: user and password: user1. For admin user, you can use the environment variables KEYCLOAK_ADMIN and KEYCLOAK_ADMIN_PASSWORD | ||
keycloak: | ||
image: quay.io/keycloak/keycloak:23.0.6 | ||
command: start-dev | ||
environment: | ||
KC_DB_URL: "jdbc:postgresql://keycloakdb:5432/keycloak" | ||
KC_DB: postgres | ||
KC_DB_USERNAME: keycloak | ||
KC_DB_PASSWORD: password | ||
KEYCLOAK_ADMIN: admin # This is maybe overwritten by the init.sql file | ||
KEYCLOAK_ADMIN_PASSWORD: admin1 # This is maybe overwritten by the init.sql file | ||
KC_HOSTNAME: keycloak-local | ||
KC_HTTP_ENABLED: true | ||
KC_HOSTNAME_STRICT_HTTPS: false | ||
# Example if you want some example providers e.g. themes | ||
#volumes: | ||
# - ./keycloak/extensions:/opt/keycloak/providers | ||
depends_on: | ||
keycloakdb: | ||
condition: service_healthy | ||
networks: | ||
default: | ||
aliases: | ||
- keycloak-local | ||
ports: | ||
- "8080:8080" |
Oops, something went wrong.