Skip to content

Commit

Permalink
dockerFIle
Browse files Browse the repository at this point in the history
  • Loading branch information
songhaechan committed Oct 28, 2023
1 parent 5d9182f commit e80e3ad
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Dockerfile

This file was deleted.

6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ services:
spring_app1:
container_name: Spring-Tomcat-1
image: haechansomg/simple-board
build:
context: .
dockerfile: dockerFile-was01
ports:
- 8080:8080
spring_app2:
container_name: Spring-Tomcat-2
image: haechansomg/simple-board
build:
context: .
dockerfile: dockerFile-was01
ports:
- 8081:8081
redis:
Expand Down
5 changes: 5 additions & 0 deletions dockerFile-was01
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM openjdk:17-jdk

ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-javaagent:/home/ubuntu/scouter/agent.java/scouter.agent.jar","-Dscouter.config=/home/ubuntu/scouter/agent.java/conf/was01.conf","-Dobj_name=WAS-01","-Duser.timezone=Asia/Seoul","-jar","app.jar"]
5 changes: 5 additions & 0 deletions dockerFile-was02
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM openjdk:17-jdk

ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-javaagent:/home/ubuntu/scouter/agent.java/scouter.agent.jar","-Dscouter.config=/home/ubuntu/scouter/agent.java/conf/was02.conf","-Dobj_name=WAS-02","-Duser.timezone=Asia/Seoul","-jar","app.jar"]

0 comments on commit e80e3ad

Please sign in to comment.