Added environment variables to configure in Docker environment

This commit is contained in:
Jim Martens 2023-08-20 19:49:57 +02:00
parent 3a9c70932d
commit a2b85f402d
3 changed files with 4 additions and 4 deletions

View File

@ -6,4 +6,4 @@ spring:
config: config:
import: import:
- "classpath:config/wahlrecht.yaml" - "classpath:config/wahlrecht.yaml"
- "optional:configserver:http://localhost:8888/config" - "optional:configserver:${CONFIGSERVER_SCHEME:http}://${CONFIGSERVER_HOST:configserver}:${CONFIGSERVER_PORT:8888}/${CONFIGSERVER_PREFIX:config}"

View File

@ -1,7 +1,7 @@
spring: spring:
config: config:
import: import:
- "configserver:http://configserver:8888/config" - "configserver:${CONFIGSERVER_SCHEME:http}://${CONFIGSERVER_HOST:configserver}:${CONFIGSERVER_PORT:8888}/${CONFIGSERVER_PREFIX:config}"
kafka: kafka:
bootstrap-servers: bootstrap-servers:
- kafka:9092 - ${KAFKA_HOST:kafka}:${KAFKA_PORT:9092}

View File

@ -38,7 +38,7 @@ spring:
oauth2: oauth2:
resourceserver: resourceserver:
jwt: jwt:
jwk-set-uri: https://id.2martens.de/realms/2martens/protocol/openid-connect/certs jwk-set-uri: ${KEYCLOAK_URL:https://id.2martens.de}/realms/${KEYCLOAK_REALM:2martens}/protocol/openid-connect/certs
application: application:
name: wahlrecht name: wahlrecht