From 6160f0ee9357a687a40c0e0585ccf6cf81cec793 Mon Sep 17 00:00:00 2001 From: kalsteve Date: Tue, 30 Jul 2024 05:09:23 +0900 Subject: [PATCH] =?UTF-8?q?set:=20Timezone=20=EC=84=9C=EC=9A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Dockerfile | 3 +++ docker-compose-deploy.yml | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/app/Dockerfile b/app/Dockerfile index 52b036e..6e15b52 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -4,6 +4,9 @@ FROM python:3.10 # 작업 디렉토리 설정 WORKDIR /app +# Timezone 설정 +ENV TZ="Asia/Seoul" + # AWS CLI 설치 RUN apt-get install -y curl unzip && \ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ diff --git a/docker-compose-deploy.yml b/docker-compose-deploy.yml index 2b1b109..74f7c9f 100644 --- a/docker-compose-deploy.yml +++ b/docker-compose-deploy.yml @@ -45,6 +45,8 @@ services: - '--config.file=/etc/prometheus/prometheus.yml' ports: - "9090:9090" + environment: + - TZ=Asia/Seoul networks: - teamhnet @@ -57,6 +59,8 @@ services: - ./monitoring/grafana/dashboards:/etc/grafana/provisioning/dashboards/ ports: - "3000:3000" + environment: + - TZ=Asia/Seoul networks: - teamhnet @@ -72,6 +76,8 @@ services: - /sys:/sys:ro - /var/lib/docker/:/var/lib/docker:ro privileged: true + environment: + - TZ=Asia/Seoul networks: - teamhnet @@ -131,6 +137,8 @@ services: ports: - "80:80" restart: always + environment: + - TZ=Asia/Seoul networks: - teamhnet @@ -139,6 +147,7 @@ services: image: nginx/nginx-prometheus-exporter:1.3 environment: - SCRAPE_URI=http://nginx:9110/metrics + - TZ=Asia/Seoul ports: - "9113:9113" networks: