Skip to content

Commit 0f0140d

Browse files
kiwoookCopilot
andauthored
[fix] Docker Promtail Unhealthy 문제 해결 (#1099)
* fix: sync container timezones in promtail for prod and dev environments * fix: update promtail comment to clarify timestamp configuration * Update backend/docker/prod/docker-compose.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update backend/docker/dev/docker-compose.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 68a9873 commit 0f0140d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

backend/docker/dev/conf/promtail.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ scrape_configs:
2727
- labels:
2828
level:
2929

30+
# promtail이 직접 자신의 시스템 시계를 보고 Loki에게 보내도록 설정
3031
# 타임스탬프 설정 (KST → UTC 변환)
31-
- timestamp:
32-
source: timestamp
33-
format: '2006-01-02 15:04:05.000'
34-
location: Asia/Seoul
32+
# - timestamp:
33+
# source: timestamp
34+
# format: '2006-01-02 15:04:05.000'
35+
# location: Asia/Seoul

backend/docker/dev/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ services:
190190
volumes:
191191
- dev-app-logs:/app/logs:ro
192192
- ./conf/promtail.yml:/etc/promtail/promtail.yml:ro
193+
- /etc/localtime:/etc/localtime:ro
193194
command: -config.file=/etc/promtail/promtail.yml
194195
networks:
195196
- dev-network

backend/docker/prod/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ services:
208208
volumes:
209209
- prod-app-logs:/app/logs:ro
210210
- ./conf/promtail.yml:/etc/promtail/promtail.yml:ro
211+
- /etc/localtime:/etc/localtime:ro
211212
command: -config.file=/etc/promtail/promtail.yml
212213
networks:
213214
- prod-network

0 commit comments

Comments
 (0)