File tree Expand file tree Collapse file tree 3 files changed +34
-5
lines changed Expand file tree Collapse file tree 3 files changed +34
-5
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,16 @@ There is currently one database implementations available.
3030
3131Run application with local postgresql database in development mode:
3232``` bash
33- docker run --rm -d --name compas-db -p 5432:5432 -e POSTGRES_USER=compas \
34- -e POSTGRES_PASSWORD=compas -e POSTGRES_DB=compas postgres:14 -d
33+ cd src/test/resources/docker-compose.yml
34+ docker-compose up keycloak
3535
36- mvn -DskipTests=true -Dquarkus.profile=dev-postgresql,local package io.quarkus:quarkus-maven-plugin::dev
36+ mvn -DskipTests=true -Dquarkus.profile=local package io.quarkus:quarkus-maven-plugin::dev
37+ ```
38+
39+ In case of issues enable full debug logging by uncommenting the enable ` ALL ` logs in the ` src/main/resources/application.properties ` file:
40+ ``` properties
41+ quarkus.log.level = ALL
42+ quarkus.log.category." org.lfenergy.compas.scl.data" .level = ALL
3743```
3844
3945## Common Environment variables
Original file line number Diff line number Diff line change 22#
33# SPDX-License-Identifier: Apache-2.0
44
5- quarkus.http.auth.permission.deny-default.paths =/*
6- quarkus.http.auth.permission.deny-default.policy =permit
5+ # Enable full logging for local development
6+ # quarkus.log.level = ALL
7+ # quarkus.log.category."org.lfenergy.compas.scl.data".level = ALL
8+
9+ quarkus.flyway.migrate-at-start = true
10+ quarkus.flyway.locations = classpath:org/lfenergy/compas/scl/data/repository/postgresql/db/migration
11+
12+ mp.jwt.verify.issuer = ${JWT_VERIFY_ISSUER:http://127.0.0.1:8089/auth/realms/compas}
Original file line number Diff line number Diff line change 1+ version : ' 3.8'
2+
3+ services :
4+ keycloak :
5+ image : ghcr.io/ase-compas/compas/compas-keycloak:main
6+ container_name : keycloak
7+ labels :
8+ compas : true
9+ ports :
10+ - " 8089:8080"
11+ environment :
12+ - KC_HOSTNAME=http://127.0.0.1:8089/auth/
13+ - KC_HTTP_RELATIVE_PATH=auth
14+ - KC_HTTP_ENABLED=true
15+ - KC_PROXY_HEADERS=xforwarded
16+ - KC_BOOTSTRAP_ADMIN_USERNAME=admin
17+ - KC_BOOTSTRAP_ADMIN_PASSWORD=admin
You can’t perform that action at this time.
0 commit comments