-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: promtail-docker-compose.yml 수정
- Loading branch information
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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를 호스트와 매핑 |