deployer: TZ 환경변수 추가 + 로그 시간대 표기 개선

- docker-compose.yml: deployer에 TZ=Asia/Seoul 환경변수 추가
- deployer/app.py: 로그 datefmt에 %Z 추가하여 KST 시간대 명시
- deployer 재시작 필요: docker compose up -d --build deployer

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 22:17:27 +09:00
parent aee3937625
commit b0f12ba6c6
2 changed files with 6 additions and 1 deletions

View File

@@ -2,7 +2,11 @@ import os, hmac, hashlib, subprocess, threading
from fastapi import FastAPI, Request, HTTPException, BackgroundTasks from fastapi import FastAPI, Request, HTTPException, BackgroundTasks
import logging import logging
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(name)s] %(levelname)s %(message)s") logging.basicConfig(
level=logging.INFO,
format="%(asctime)s [%(name)s] %(levelname)s %(message)s",
datefmt="%Y-%m-%d %H:%M:%S %Z",
)
logger = logging.getLogger("deployer") logger = logging.getLogger("deployer")
app = FastAPI() app = FastAPI()

View File

@@ -162,6 +162,7 @@ services:
ports: ports:
- "127.0.0.1:19010:9000" - "127.0.0.1:19010:9000"
environment: environment:
- TZ=${TZ:-Asia/Seoul}
- WEBHOOK_SECRET=${WEBHOOK_SECRET} - WEBHOOK_SECRET=${WEBHOOK_SECRET}
volumes: volumes:
- ${REPO_PATH}:/repo:rw - ${REPO_PATH}:/repo:rw