From 0959291fd8de7cdbf682ce78a3ca2084ecd1448a Mon Sep 17 00:00:00 2001 From: FerNagata Date: Sun, 10 Dec 2023 22:54:20 -0300 Subject: [PATCH] Fixing port in Dockerfile and update docker-compose --- Dockerfile | 2 +- docker/docker-compose.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index a4e61e8..8f73371 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ WORKDIR /usr/src/app COPY --from=build /usr/src/app/build/libs/coffeestock-0.0.1-SNAPSHOT.jar . # Expose the port on which your application will run (if applicable) -EXPOSE 8080 +EXPOSE 9000 # Define the command to run your application CMD ["java", "-jar", "coffeestock-0.0.1-SNAPSHOT.jar"] diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 329bc2a..6e2ff67 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -18,10 +18,10 @@ services: - ./scripts/schema.sql:/docker-entrypoint-initdb.d/schema.sql ports: # : - - '3306:3306' + - 3306:3306 expose: # Opens port 3306 on the container - - '3306' + - 3306 adminer: image: adminer @@ -29,9 +29,9 @@ services: ports: - 8080:8080 api_coffee: - image: coffee + image: fernagata/coffee:1.0 ports: - - '9000:9000' + - 9000:9000 depends_on: - db environment: