Skip to content

Commit

Permalink
chore: promtail ebextension 파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
5uhwann committed Sep 24, 2024
1 parent 9ab8231 commit 08d9fc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .ebextensions/02-install-promtail.config
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ container_commands:

03_setup_promtail:
command: |
set -e # 오류 발생 시 스크립트 종료
# Promtail Docker Compose 설정 파일 생성
set -ex # 명령 실행 시마다 출력
echo "version: '3'
services:
promtail:
image: grafana/promtail:2.5.0
volumes:
- /var/log:/var/log
- /tmp/positions.yaml:/tmp/positions.yaml
- /etc/app/current:/etc/app/current
command: -config.file=/etc/app/current/promtail-config.yml" > /var/app/current/promtail-docker-compose.yml

# Docker Compose로 Promtail 실행
# Docker Compose 실행
docker-compose -f /var/app/current/promtail-docker-compose.yml up -d

0 comments on commit 08d9fc0

Please sign in to comment.