Skip to content

Commit

Permalink
by default run keycloak
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schmittner <sebastian.schmittner@eecc.de>
  • Loading branch information
Echsecutor committed Apr 24, 2024
1 parent 5e295f9 commit f17e2a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Keycloak config

## Keycloak settings
KEYCLOAK_ADMIN=admin
KEYCLOAK_ADMIN_PASSWORD=admin_password_keycloak
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ Instead of building a framework for wallets in one programming language, this re
## Running

- Copy the `.env.example` file to `.env` and optionally modify the values.
- Run `docker compose --profile keycloak up` to start a database and the issuer/holder/verifier/backend services as well as a keycloak instance.
- If you have already have a keycloak instance, set `KEYCLOAK_AUTH_URL` accordingly and just run `docker compose up -d`.
- Run `docker compose up` to start a database and the issuer/holder/verifier/backend services as well as a keycloak instance.
- If you have already have a keycloak instance, set `KEYCLOAK_AUTH_URL` accordingly and run
`docker compose up --scale postgres-keycloak=0 --scale keycloak=0`.


## Development
Expand Down
7 changes: 2 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ services:
POSTGRES_PASSWORD: $KC_POSTGRES_PASSWORD
POSTGRES_DB: $KC_POSTGRES_DB
POSTGRES_HOST: $KC_POSTGRES_HOST
profiles:
- keycloak



keycloak:
restart: unless-stopped
Expand Down Expand Up @@ -47,9 +47,6 @@ services:
KEYCLOAK_ADMIN_PASSWORD: $KEYCLOAK_ADMIN_PASSWORD
ports:
- '8080:8080'
profiles:
- keycloak


db:
image: 'postgres:14.4'
Expand Down

0 comments on commit f17e2a8

Please sign in to comment.