Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ RUN apt-get update \
&& apt-get install --no-install-recommends -y \
postgresql-client-17

# Install tzdata and configure timezone
ARG SYSTEM_TIME_ZONE
RUN apt-get install -y tzdata && \
ln -fs /usr/share/zoneinfo/${SYSTEM_TIME_ZONE} /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata

# `builder-base` stage is used to build deps + create our virtual environment
FROM python-base AS builder-base
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ x-app: &default-app
SUPPORT_EMAIL: ${SUPPORT_EMAIL:?}
TOKEN_AUTHENTICATION_SALT: ${TOKEN_AUTHENTICATION_SALT:?}
USER_TIME_ZONE: ${USER_TIME_ZONE:?}
build:
args:
SYSTEM_TIME_ZONE: ${SYSTEM_TIME_ZONE:-Etc/UTC}

services:
# We have to to define the init servce in base (even if we don't use it
Expand Down
3 changes: 3 additions & 0 deletions example.env
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ SSL_CHAIN_FILE="./chain.pem"
# The timezone that the web interface uses.
USER_TIME_ZONE="Europe/Berlin"

# Optional system timezone (for example used in docker logging), defaults to UTC
SYSTEM_TIME_ZONE=

# An optional name of the stack (or compose project in development).
# When not set it defaults to the project name with suffix "_dev" resp. "_prod".
# For ADIT "adit_dev" and "adit_prod". For RADIS "radis_dev" and "radis_prod".
Expand Down
Loading