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:
import:
- "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:
config:
import:
- "configserver:http://configserver:8888/config"
- "configserver:${CONFIGSERVER_SCHEME:http}://${CONFIGSERVER_HOST:configserver}:${CONFIGSERVER_PORT:8888}/${CONFIGSERVER_PREFIX:config}"
kafka:
bootstrap-servers:
- kafka:9092
- ${KAFKA_HOST:kafka}:${KAFKA_PORT:9092}

View File

@ -38,7 +38,7 @@ spring:
oauth2:
resourceserver:
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:
name: wahlrecht