Skip to content

Commit

Permalink
Fix: properties kafka servers properties
Browse files Browse the repository at this point in the history
  • Loading branch information
su-hwani committed May 2, 2024
1 parent e62bf1c commit 902c929
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 3 additions & 2 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ COPY build.gradle .
COPY settings.gradle .
COPY src src

# 프로젝트를 빌드합니다.
RUN gradle build
# 테스트를 생략하고 JAR 파일을 빌드합니다.
RUN gradle assemble

# 두 번째 단계: 빌드된 JAR 파일을 사용하여 최종 이미지를 만듭니다.
FROM bellsoft/liberica-openjdk-alpine:17
Expand All @@ -26,3 +26,4 @@ EXPOSE 8080

# 컨테이너가 시작되었을 때 실행할 명령을 지정합니다.
CMD ["java", "-jar", "app.jar"]

9 changes: 7 additions & 2 deletions server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ services:
kafka:
image: wurstmeister/kafka
container_name: kafka
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: localhost # TODO : 환경에 맞게 ip 변경 ex) 127.0.0.1
KAFKA_LISTENERS: PLAINTEXT://:9092
# KAFKA_ADVERTISED_HOST_NAME: localhost # TODO : 환경에 맞게 ip 변경 ex) 127.0.0.1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 # kafka가 zookeeper에 커넥션하기 위한 대상을 지정
KAFKA_CREATE_TOPICS: "start-searching"
volumes:
- /var/run/docker.sock:/var/run/docker.sock

Expand All @@ -24,4 +28,5 @@ services:
- kafka
image: suhwani/capstone:latest
ports:
- "80:8080"
- "8080:8080"
build: .

0 comments on commit 902c929

Please sign in to comment.