Skip to content
8 changes: 3 additions & 5 deletions docker-compose-prod.yml → docker/docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ services:
image: fluent/fluent-bit:3.2
container_name: interview-fluent-bit
volumes:
- ./docker/fluent-bit/fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf:ro
- ./docker/fluent-bit/parsers.conf:/fluent-bit/etc/parsers.conf:ro
- ./fluent-bit/fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf:ro
- ./fluent-bit/parsers.conf:/fluent-bit/etc/parsers.conf:ro
Comment on lines +6 to +7
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

docker-compose.prod.yml 파일이 docker/ 디렉토리로 이동함에 따라 설정 파일들의 상대 경로를 확인해야 합니다. 만약 fluent-bit 설정 폴더가 프로젝트 루트에 위치한다면, 경로를 ../fluent-bit/...로 수정해야 합니다. 현재 설정된 ./fluent-bit/docker/fluent-bit/ 디렉토리를 가리키므로 파일을 찾지 못할 수 있습니다. 또한 폴더명이 fluentbit에서 fluent-bit으로 변경되었는지도 함께 확인해 주세요.

      - ../fluent-bit/fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf:ro
      - ../fluent-bit/parsers.conf:/fluent-bit/etc/parsers.conf:ro

ports:
- "24224:24224"
environment:
Expand All @@ -18,8 +18,6 @@ services:
postgres:
image: postgres:17
container_name: interview-postgres
ports:
- "${POSTGRES_PORT}:5432"
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
Expand All @@ -41,7 +39,7 @@ services:
ports:
- "7300:7300"
env_file:
- .env
- ../.env
environment:
- SPRING_PROFILES_ACTIVE=prod
- TZ=Asia/Seoul
Expand Down
Loading