diff --git a/account-service/src/main/resources/application.properties b/account-service/src/main/resources/application.properties index 42df8b3..af3a9a5 100644 --- a/account-service/src/main/resources/application.properties +++ b/account-service/src/main/resources/application.properties @@ -2,7 +2,7 @@ quarkus.datasource.db-kind=postgresql quarkus.datasource.username=postgres quarkus.datasource.password=password -quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/postgres +quarkus.datasource.jdbc.url=jdbc:postgresql://host.docker.internal:5432/postgres quarkus.hibernate-orm.database.generation=update @@ -16,7 +16,7 @@ quarkus.container-image.builder=docker quarkus.container-image.additional-tags=latest # Redis -quarkus.redis.hosts=redis://localhost:6379 +quarkus.redis.hosts=redis://${REDIS_SERVICE_SERVICE_HOST:localhost}:${REDIS_SERVICE_SERVICE_PORT:6379} # Dependency diff --git a/k8s.yaml b/k8s.yaml index a309332..919c421 100644 --- a/k8s.yaml +++ b/k8s.yaml @@ -20,7 +20,7 @@ spec: ports: - containerPort: 8080 env: - - name: QUARKUS_REDIS_HOST + - name: REDIS_SERVICE value: "redis-service" - name: QUARKUS_DATASOURCE_PASSWORD valueFrom: