Skip to content

Commit

Permalink
chore: promtail-docker-compose.yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
5uhwann committed Sep 26, 2024
1 parent b8e0dfd commit 34d9ed3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ebextensions/02-install-docker-compose.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ container_commands:

02_install_docker_compose:
command: |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version

Expand Down
6 changes: 4 additions & 2 deletions promtail/promtail-docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
version: '3'

services:

promtail:
image: grafana/promtail:2.9.1
container_name: promtail
environment:
- LOKI_URL=${LOKI_URL} # .env 파일에서 Loki 서버 URL 참조
- LOKI_URL
volumes:
- /var/app/current/promtail/promtail-config.yml:/var/app/current/promtail/promtail-config.yml
- /var/app/current/logs:/var/logs # 로컬 로그 파일 경로를 Promtail에 마운트
- /var/app/current/logs:/var/logs #서버 로그 파일 경로를 Promtail에 마운트
command: -config.file=/var/app/current/promtail/promtail-config.yml
ports:
- "9080:9080" # Promtail의 웹 UI를 호스트와 매핑

0 comments on commit 34d9ed3

Please sign in to comment.