From e4d8286535b45cbe3d80b87cde19ebc40cc4d78f Mon Sep 17 00:00:00 2001 From: Karan Sharma Date: Wed, 29 Dec 2021 11:42:04 +0530 Subject: [PATCH] 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. --- Dockerfile | 2 +- docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9077201c..fe95f307 100644 --- a/Dockerfile +++ b/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 diff --git a/docker-compose.yml b/docker-compose.yml index 8f09d3a1..2a22c431 100644 --- a/docker-compose.yml +++ b/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