Skip to content

Commit

Permalink
feat: Add timezone config in app container
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mr-karan committed Dec 29, 2021
1 parent b48a15c commit e4d8286
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4d8286

Please sign in to comment.