소스 검색

feat: Add timezone config in app container

Adds `tzdata` in the `Dockerfile` of the app so that
user can pass a `TZ` env variable to the container to configure
their timezone information.
Karan Sharma 3 년 전
부모
커밋
e4d8286535
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Dockerfile
  2. 2 0
      docker-compose.yml

+ 1 - 1
Dockerfile

@@ -1,5 +1,5 @@
 FROM alpine:latest
-RUN apk --no-cache add ca-certificates
+RUN apk --no-cache add ca-certificates tzdata
 WORKDIR /listmonk
 COPY listmonk .
 COPY config.toml.sample config.toml

+ 2 - 0
docker-compose.yml

@@ -11,6 +11,8 @@ x-app-defaults: &app-defaults
     - "9000:9000"
   networks:
     - listmonk
+  environment:
+    - TZ=Etc/UTC
 
 x-db-defaults: &db-defaults
   image: postgres:13