Skip to content

Commit

Permalink
Timezone: step1
Browse files Browse the repository at this point in the history
  • Loading branch information
tchapi committed Sep 10, 2023
1 parent 7de7098 commit e2782db
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docker/.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# For the MariaDB container mainly
DB_ROOT_PASSWORD=notSoSecure

TIMEZONE="Europe/Paris"

# The Davis database, user and password
DB_DATABASE=davis
DB_USER=davis_user
Expand Down
3 changes: 0 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ RUN apk --update --virtual build-deps-imap add --no-cache imap-dev openssl-dev k
&& apk del build-deps-imap \
&& rm -rf /tmp/*

# Set timezone correctly
RUN echo 'date.timezone = "Europe/Paris"' > /usr/local/etc/php/conf.d/timezone.ini

# Davis installation
ADD . /var/www/davis
WORKDIR /var/www/davis
Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose-postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ services:
- WEBDAV_TMP_DIR=${WEBDAV_TMP_DIR}
- WEBDAV_PUBLIC_DIR=${WEBDAV_PUBLIC_DIR}
- INVITE_FROM_ADDRESS=${INVITE_FROM_ADDRESS}
- APP_TIMEZONE=${TIMEZONE}
depends_on:
- postgresql
volumes:
Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ services:
- WEBDAV_TMP_DIR=${WEBDAV_TMP_DIR}
- WEBDAV_PUBLIC_DIR=${WEBDAV_PUBLIC_DIR}
- INVITE_FROM_ADDRESS=${INVITE_FROM_ADDRESS}
- APP_TIMEZONE=${TIMEZONE}
volumes:
- davis_www:/var/www/davis
- davis_data:/data
Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ services:
- WEBDAV_TMP_DIR=${WEBDAV_TMP_DIR}
- WEBDAV_PUBLIC_DIR=${WEBDAV_PUBLIC_DIR}
- INVITE_FROM_ADDRESS=${INVITE_FROM_ADDRESS}
- APP_TIMEZONE=${TIMEZONE}
depends_on:
- mysql
volumes:
Expand Down

0 comments on commit e2782db

Please sign in to comment.