Commit 8b8518b9 by Christophe Angeli

set timezone

parent bfd2803a
......@@ -7,7 +7,8 @@ ENV RESTYABOARD_VERSION=v0.4.2 \
SMTP_USERNAME=root \
SMTP_PASSWORD=root \
SMTP_SERVER=localhost \
SMTP_PORT=465
SMTP_PORT=465 \
TZ=Etc/UTC
# install packages
RUN apk add --update \
......@@ -30,6 +31,7 @@ RUN apk add --update \
postfix \
postgresql-client \
supervisor \
tzdata \
unzip && \
rm -rf /var/cache/apk/*
......
version: '2'
services:
restyaboard:
build: .
ports:
......@@ -18,10 +16,10 @@ services:
- SMTP_PASSWORD=pass
- SMTP_SERVER=server
- SMTP_PORT=465
- TZ=Etc/UTC
depends_on:
- postgres
restart: always
postgres:
image: kiasaki/alpine-postgres
ports:
......
......@@ -9,7 +9,9 @@ sed -i \
-e "s/^.*'R_DB_PASSWORD'.*$/define('R_DB_PASSWORD', '${POSTGRES_PASSWORD}');/g" \
-e "s/^.*'R_DB_NAME'.*$/define('R_DB_NAME', '${POSTGRES_DB}');/g" \
${ROOT_DIR}/server/php/config.inc.php
sed -i "$ a date.timezone = $(cat /etc/timezone)" /etc/php7/php.ini
echo $TZ > /etc/timezone
cp /usr/share/zoneinfo/$TZ /etc/localtime
sed -i "$ a date.timezone = $TZ" /etc/php7/php.ini
# postfix
postconf -e smtputf8_enable=no
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment