Skip to content

Commit

Permalink
Fixing port in Dockerfile and update docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
FerNagata committed Dec 11, 2023
1 parent b888fb9 commit 0959291
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
8 changes: 4 additions & 4 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ services:
- ./scripts/schema.sql:/docker-entrypoint-initdb.d/schema.sql
ports:
# <Port exposed> : <MySQL Port running inside container>
- '3306:3306'
- 3306:3306
expose:
# Opens port 3306 on the container
- '3306'
- 3306

adminer:
image: adminer
restart: always
ports:
- 8080:8080
api_coffee:
image: coffee
image: fernagata/coffee:1.0
ports:
- '9000:9000'
- 9000:9000
depends_on:
- db
environment:
Expand Down

0 comments on commit 0959291

Please sign in to comment.