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.
This commit is contained in:
parent
b48a15cfa3
commit
e4d8286535
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk --no-cache add ca-certificates
|
RUN apk --no-cache add ca-certificates tzdata
|
||||||
WORKDIR /listmonk
|
WORKDIR /listmonk
|
||||||
COPY listmonk .
|
COPY listmonk .
|
||||||
COPY config.toml.sample config.toml
|
COPY config.toml.sample config.toml
|
||||||
|
|
|
@ -11,6 +11,8 @@ x-app-defaults: &app-defaults
|
||||||
- "9000:9000"
|
- "9000:9000"
|
||||||
networks:
|
networks:
|
||||||
- listmonk
|
- listmonk
|
||||||
|
environment:
|
||||||
|
- TZ=Etc/UTC
|
||||||
|
|
||||||
x-db-defaults: &db-defaults
|
x-db-defaults: &db-defaults
|
||||||
image: postgres:13
|
image: postgres:13
|
||||||
|
|
Loading…
Reference in a new issue