From 9ab8a9d241da0aa1e1c32a17b0b2e7fe911e3ac2 Mon Sep 17 00:00:00 2001
From: migudel <miguel.moras@estudiantes.uva.es>
Date: Wed, 25 Dec 2024 13:47:26 +0100
Subject: [PATCH] =?UTF-8?q?Correcci=C3=B3n=20sobre=20puertos=20y=20fallos?=
 =?UTF-8?q?=20en=20el=20compose?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 docker-compose.yml | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/docker-compose.yml b/docker-compose.yml
index 57fc680..92124a4 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -15,7 +15,7 @@ services:
   # Postgres: The database used by Kong
   kong-database:
     image: postgres:9.6
-    container_DATABASE: kong-postgres
+    container_name: kong-postgres
     restart: on-failure
     networks:
       - kong-net
@@ -108,7 +108,7 @@ services:
       kong-database:
         condition: service_healthy
     ports:
-      - 1337:133
+      - 1337:1337
 
   #######################################
   # APIs
@@ -124,10 +124,10 @@ services:
     networks:
       - kong-net
     environment:
-      # TODO Meter kid y secret key
-      KID: ${JWT_KID}
-      SECRET_KEY: ${JWT_KID}
-      EXTERNAL_SERVICE_USERS_URL: ${API_USERS_URL}${API_USERS_ENDPOINT}
+      SECURITY_JWT_EXPIRATION: 3600000
+      SECURITY_JWT_KID: ${JWT_KID:-9L8RmLEKMFd54WrR06CE9zoRSAGpCWeu}
+      SECURITY_JWT_SECRET_KEY: ${JWT_KEY:-MiClaveDeSeguridadMuyLargaParaQueNoFalleSpringBoot}
+      EXTERNAL_SERVICES_USERS_URL: ${API_USERS_URL}
     depends_on:
       - Users-API
 
@@ -135,7 +135,7 @@ services:
     image: users-api-image
     hostname: ${API_USERS_HOSTNAME}
     build:
-      context: ./java/services/user
+      context: ./java/services/users
       dockerfile: Dockerfile
     restart: unless-stopped
     networks:
-- 
GitLab